Error occurred during the processing of a configuration file required to service this request
Error occurred during the processing of a configuration file required to service this request:
Some time when we want to run our application on local IIS
then we got the fallowing error.
Description: An error occurred during the processing of a
configuration file required to service this request. Please review the specific
error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section
registered as allowDefinition='MachineToApplication' beyond application level.
This error can be caused by a virtual directory not being configured as an
application in IIS.
Source Error:
Line 32:
<compilation debug="true" targetFramework="4.0"
/>
Line 33:
<authentication mode="Forms">
Line 34:
<forms loginUrl="~/Default.aspx" timeout="2880"
/>
Line 35:
</authentication>
Some time we searching this on web and got a solution form
stackoverflow site. I think this help you.
Go to your IIS management
console, find the directory called site under the Default Web Site (which is
under the Sites node), right click on site and choose Convert to Application.
Comments
Post a Comment