简体   繁体   中英

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level

HI guys i am having a problem uploading my website to a server. i get the following 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 14: 
    Line 15: 
    Line 16:     <profile>
    Line 17:       <properties>
    Line 18:         <add name="FirstName" />

    Source File: D:\Year1415\courseworks\CC6001\cc6001taz0051\site\web.config    Line: 16 

Can someone please help me. I need to upload my assignment to the webserver before tuesday. any help would be grateful. Thanks

Config files in .NET stack one on top of the other, with the lowest level being machine.config which applies to all .NET applications on a machine. Some settings cannot be overridden, and attempting to do so gives this error.

This particular error (given the section mentioned) can be caused by not setting an IIS virtual directory up as an application. See the response in this post:

http://forums.iis.net/t/1197180.aspx

In IIS 7 a virtual directory is not set up as an application by default.

In IIS right click the folder and select "Convert to application".

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