Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0 ASP.NET
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 5:19am
Comments
ThePhantomUpvoter at 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 at 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 at 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 at 13-Mar-13 15:17pm
   
no iam opening the website and trying to rebuild the sln file

1 solution

Rate this: bad
good
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' [^]
  Permalink  
Comments
ashok_89 at 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
0 OriginalGriff 304
1 Sergey Alexandrovich Kryukov 295
2 Shweta N Mishra 216
3 Maciej Los 210
4 PIEBALDconsult 184
0 OriginalGriff 7,630
1 Sergey Alexandrovich Kryukov 7,022
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,525


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 12 Mar 2013
Copyright © CodeProject, 1999-2014
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