am created simple website and publis it. then published folder was make it as virtual directory, and finally upload to my ftp server but its getting following error
server error in '/' application
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:
Code |
please help me






Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 15, 2010, 7:04 PM EST
This error appears usually either you have not configured your IIS authentication or you have multiple web.config configuration file.
Check both options.
Here is the article for set up and IIS server for asp.net:
http://www.beansoftware.com/ASP.NET-Tutorials/Set-Up-IIS-ASP.NET.aspx
Please mark the answer if it helps you.
rajiv9 reputationPosted Feb 15, 2010, 9:03 PM EST
thank for reply,
my published webappliaction was coming output properly through localhost. but when i uploading this published webapplication then i run it, will getting that error. you said no multiple webconfig. so can i delete webconfig in published folder or in the ftp server?
thanks
Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 15, 2010, 10:10 PM EST
i thought you are uploading your complete project on the remote IIS server and thats why there is two web.config files are there one is for published and other is for your Development project.
so do one thing just upload only published folder. and hopefully your problem will be solved.
And Don't forget to mark the answer if it helps.
rajiv9 reputationPosted Feb 16, 2010, 4:08 PM EST
i uploaded only published folder in ftp server but its getting error :
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.
see details of error in my first posted msg
Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 16, 2010, 7:20 PM EST
Please take care of following Cases:
1. You cannot keep the web.config only in the sub-directory. You need to have a web.config in the root directory. If at all you want to have a web.config in the sub-directory, then the only settings you can specify are authorization, appsettings etc.,
Unless you configure the sub-directory also as an application in the IIS Virtual directory settings, you cannot have any other settings such as authentication, session-state etc., in the web.config that you have in the sub-directory.
2.this error may caused by having two web.config files in different locations within the project folders by accident.
These are the main reasons by which the error raises.
Please mark the answer if it solved your problem.
rajiv9 reputationPosted Feb 17, 2010, 5:13 PM EST
when i put into only published folder content file in root directory of ftp server then output is coming but published folder was put into root directory or under any other folder put it then same error coming. what is problem?
please help me
High Security11 reputationPosted Feb 17, 2010, 5:30 PM EST
rajiv9 reputationPosted Feb 17, 2010, 5:47 PM EST
thank you for reply,
iis was installed on my ftp server, problem was when i put content file in root directory of ftp server then is working but when i put whole published folder into root directory then error will arising,