Click here to Skip to main content
16,022,413 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
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.  C:\Users\omar\Documents\Visual Studio 2005\WebSites\WebSite4\Web.Config 30
Posted
Updated 25-Mar-11 1:29am
v2

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: http://forums.asp.net/p/769696/769696.aspx[^]
 
Share this answer
 
may b u need to change application location to another may b the problem will solved if still u r getting the error let me know

Thanks & reagrds
Lekhya
 
Share this answer
 
Comments
Manfred Rudolf Bihy 25-Mar-11 8:20am    
Reason for my vote of one!
Please use proper language when posting solutions. Textspeak is definitely not an option.
Sandeep Mewara 25-Mar-11 10:30am    
How does this sound related to the error? Faced it earlier?

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