Click here to Skip to main content
15,897,360 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I tried to run the website which is developed in asp.net2.0 in vs2008, didnt changed the framework to 3.5, left it as 2.0. Added virtual directory for the website in the inetmgr, and added as application, i get an error,

" It is an error to use a section registered as allow Definition = 'Machine to application'beyond application level. This error caused by virtual directory not being configured as an application in IIS"

Whereas i have configured Virtual Directory as application.

Can any one please help me,

Regards
Muralekarthick
Posted

Just check if you have multiple Web.Config files in your hosted application. At times that is also one of reason for such error.
 
Share this answer
 
Comments
muralekarthick 15-Jul-10 6:31am    
Yes my hosted application there are 2 web config files in 2 sub folders, one seems to be very small, and it deals with authentication to that particular module of the application, nothing other than that,the other one which is big config file gets there when clicked on the error message.

Thanks in advance
Sandeep Mewara 15-Jul-10 6:33am    
You cannot keep multiple Web.Config file. You have to remove one.
I"m willing to bet that ASP.NET is not lying and the error is that you need to configure an application at the level of the folder you're trying to view.
 
Share this answer
 
Comments
muralekarthick 15-Jul-10 6:26am    
You mean to say that configure as application at the level of the sub folders in the application, i did that too, still i get the same error.

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