Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I got this error in web.config file


I used form authentication. When i compile application it throw error
I used web.config file:
D:\Project\New folder\osama\Rahmani osama\projects\Application1\web.config



Error discription: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

It appears that your website virtual directory need to be set up as an application directory. The error should specify a directory within the website folder.

Open IIS, find your website and navigate to the virtual directory in the error, right click it and select "Convert to application"
 
Share this answer
 
Check here

http://forums.iis.net/t/1148147.aspx?It+is+an+error+to+use+a+section+registered+as+allowDefinition+MachineToApplication+beyond+application+level+
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900