Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Dear Experts,

I have an web application running fine in live server, when i opened the same project in my machine in the VS 2010 iam getting the error. i opened the file by file->open->website


Error 1 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.

Can u pls help me out,but the web application developed in my machine is running fine pls help me out. i searched all over the net i could find any solution.
Posted
Comments
[no name] 12-Mar-13 10:24am    
Did you read the error message? "This error can be caused by a virtual directory not being configured as an application in IIS" Did you configure the web server? And your narrative is contradictory. It's running fine in live server and running fine on your local machine?
ashok_89 13-Mar-13 15:16pm    
i configured the virtual directory if this is the case the other web applications are running fine except the one i had specified,it has been developed in another machine
JasonMacD 12-Mar-13 10:26am    
When you use the file>open>website are you selecting the entire folder containing the website files and solution file (this is the correct way), or are you only trying to open the solution file?
ashok_89 13-Mar-13 15:17pm    
no iam opening the website and trying to rebuild the sln file

1 solution

Generally this happens when you have more than one Web.Config file in your application root folder.
Just check if you have more than one. If so, remove the duplicate copies.

Read a similar issue resolved here:ASP.NET 2.0 & "allowDefinition='MachineToApplication'" error message[^]

Other useful link that has similar issue discussed: section registered as allowDefinition='MachineToApplication' [^]
 
Share this answer
 
Comments
ashok_89 13-Mar-13 15:15pm    
no it doesnt solve my problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900