简体   繁体   中英

Configuration error

Configuration 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 24:             ASP.NET to identify an incoming user. 
Line 25:         -->
Line 26:        <authentication mode="Windows"/>
Line 27:     
Line 28:        <!--

The ASP.NET engine is suggesting a solution to this problem and it is the most common cause for this error:

In the IIS Snap-in (Inetmgr.msc), right click your website, go to the properties dialog and on the Virtual directory tab, under "Application Settings", click "Create" to create an application for the web app.

It seems that there are multiple web.config files lying around in a single virtual directory. Just search the virtual directory, and see if that is the case; if yes, then remove the unnecessary web.config file or make the directory containing that web.config as a virtual directory too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM