Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,
i am getting an error while executing my application how to resolve it please give me detailed steps. The error is

Build (web): 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.
Posted

you need to convert you virtual directory as an application as the error message says.

check these out:

Virtual directory not being configured as an application in IIS[^]

virtual-directory-not-being-configured-as-an-application-in-iis[^]

hope it helps :)
 
Share this answer
 
Comments
Madhugundi 5-Mar-12 16:46pm    
Thank you
Hi,

There may be 1. multiple configuration files (web.config) available in your directory, or
2. You project directory structure is incorrect.
 
Share this answer
 
Comments
Madhugundi 5-Mar-12 16:46pm    
Thank you
A very good article on deployment, refer this
Deployment of a Website on IIS[^]
 
Share this answer
 

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