Click here to Skip to main content
13,046,773 members (41,530 online)
Rate this:
Please Sign up or sign in to vote.
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 12-Mar-13 4:19am
ThePhantomUpvoter 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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' [^]
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 12 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100