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.



Configuration Error is describe here:


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.



Welcome to this ASP.NET Tutorial, currently consisting of posts, these are covering all the most important ASP.NET concepts. This tutorial is primarily for new users of this great technology, and we recommend you to go through all the post, to get the most out of it as possible. While each post can be used without reading the previous posts, some of them may reference things done in earlier post.


Comments

Popular posts from this blog