Click here to Skip to main content
15,903,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii, i'mworking on a project that developed in Asp.net and it should run in a lan server. I had configure the IIS properly and store the application inside the wwwroot folder, but whem I try o run it through my browser it shows me this Error.

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

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.

Source Error:


Line 8: <configuration>
Line 9: <system.web>
Line 10: <roleManager enabled="true" cacheRolesInCookie="true"></roleManager>
Line 11: <authentication mode="Forms"></authentication>
Line 12: <compilation debug="true" targetFramework="4.0">


Source File: C:\inetpub\wwwroot\chaudwar\web.config Line: 10
Posted

If this is a 32bit, make sure ASPNET account has the permission to access web.config. If it's 64bit, grant Network Service account with the access.
 
Share this answer
 
Comments
bigyan sahoo 21-Jan-14 6:53am    
This is a 32 bit, but how to give the permission to access we.config file. plz explain the procedure to done this
kedar001 21-Jan-14 6:58am    
Please go through this...
http://msdn.microsoft.com/en-us/library/bb763173.aspx
Hello,
In IIS, try to convert your virtual directory to an application (right click) ;)
 
Share this answer
 
Comments
bigyan sahoo 21-Jan-14 6:48am    
Sir, can you explain the procedure o done this
Ahmed Bensaid 21-Jan-14 8:05am    
In IIS, right click on your virtual directory. And you'll see a "convert to application" option ;)

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