Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all Experts,


Error 104 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:\Documents and Settings\Administrator\My Documents\Samplesfw\Configuration\ConfigASPNET\Backup\ConfigASPNET\Web.Config 40
Thanks for valurabel Replay
Posted

if you have iis7 read this :

http://support.gearhost.com/KB/a460/add-virtual-directory-as-application-in-iis-7.aspx[^]


right click on your virtual directory in IIS7 and select convert to application

to run iis config tool type inetmgr.exe in run.
 
Share this answer
 
Comments
Uday P.Singh 30-Oct-11 6:41am    
agree 5+
Amir Mahfoozi 30-Oct-11 6:43am    
Thanks Uday
This may be caused because the website on IIS is having web.config files at different heirarch levels. If it is so, the directory level Web.Config files must not have authentication, authorization,membership,roles defined in them. they must be placed at app level.
 
Share this answer
 
For fixing this:

You need to make sure that the directory from where you website is running is configured as an application in IIS. To do this, you need to go into IIS and find your project folder on the server, right click to Properties. Under Application Settings click Create.

and Change authentication mode to 'None' in web.config(if your application is running at a webserver not on local computer).

like this:
HTML
< authentication mode="None" />

hope it helps :)
 
Share this answer
 
v2
This might be helpful Link
 
Share this answer
 
 
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