Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have made a web application using 3 projects as

1.BAL
2.DAL
3.Rukmini
BAL is class library project containing class files needed in the application.

DAL is also a class library project containing class files needed in the application.

Rukmini Is the folder which contains actual aspx files such as login.aspx,etc

I have uploaded my above web application on main server(not on any local e.g IIS) and my web.config is only in Rukmini folder.

when i run my application online it gives following error----

"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."

I have also tried authentication mode="None" and "Windows" and "Forms" all, but it gives same error message pointing at authentication mode="None" line in web.config file.

Please help..

You can view my error message at invoice.rukminiiron.com/Rukmini/Login.aspx
Posted

After you uploaded the folder along with necessary DLL's, did you converted it into a website? Hosted properly on IIS such that it can be accessed?
For hosting a web application: MSDN: Walkthrough: Publishing a Web Site[^]

IIS Specific:
1. In IIS7: Deploying ASP.NET Websites on IIS 7.0 [^]
2. In IIS6: Deployment of a Website on IIS[^]



Further, make sure you don't have multiple config files in your root folder. Only one config file should exist.
 
Share this answer
 
Comments
utkarsh3146 6-Jun-12 7:59am    
Dear i had mentioned that i have not uploaded it on local IIS ,but i have uploaded on main web server as like www.google.co.in.
Sandeep Mewara 6-Jun-12 8:40am    
:)Just uploading a folder would not host your application on web.
utkarsh3146 6-Jun-12 9:06am    
so how it is possible
Check your application ,if it have more than one web.config file at different heirarch levels,then this error occurs also.
Remove other web.config and then run.
 
Share this answer
 
Comments
utkarsh3146 6-Jun-12 8:04am    
Dear i have only a single web.config
uspatel 6-Jun-12 8:06am    
I had same problem due to multiple web.config so I share.
Host it again.
utkarsh3146 6-Jun-12 9:07am    
hosted again but the same
Hi,

Please check Deploying ASP.NET Websites on IIS 7.0 [^] link. and do the Step 4 for your website.

above step should resolve your problem

Thanks
-Amit.
 
Share this answer
 
Comments
utkarsh3146 6-Jun-12 9:08am    
Dear Amit i am uploading it on a web server not on IIS OR ANY LOCAL SERVER so that it can accessed from anywhere.You can check link invoice.rukminiiron.com/Rukmini/login.aspx

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