Click here to Skip to main content
15,745,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have build a asp.net web application that runs properly when i do it from source code.
After hosting the website in IIS of local computer, its giving me error.
The error message is...

Parser Error Message: 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.

and source of error is...
Line 46: ASP.NET to identify an incoming user.
Line 47: -->
Line 48: <authentication mode="Windows">
Line 49: <!--
Line 50: The <customerrors> section enables configuration

i have tried much to solve this by googling and my own knowledge but could not succeed.
Please help me to access it.
Posted

1 solution

Hi

Please make your application as virtual directory . If it did't work out check out for multiple web config files in same folder .

Refer below link for more details .

http://forums.iis.net/t/1148147.aspx[^]
 
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