Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I developed a small web application by using asp.net 2.0(c#) and it is working locally very fine.then after publishing the web site and I created the exact folder names and uploaded the files in the published folder...

then after I try to browse that page i got the error like the following ...do any body have any idea about this please help me..!



MSIL
Server Error in '/' Application.

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 29:             ASP.NET to identify an incoming user. 
Line 30:         -->
Line 31:     <authentication mode="Forms" />
Line 32:         
Line 33:         <!--
Posted
Updated 24-Jan-10 19:56pm
v2

1 solution

The error means what it says. It means that you probably had a folder called 'MyCoolWebSite', which contained all your HTML, etc. Instead of copying the contents of that folder to your web host, you copied the whole folder, which means a user needs to browser to www.mysite.com/MyCoolWebSite. Not only is this probably not what you wanted, but, either way, for the config file to contain the tag that is being shown in your error message, IIS needs to be configured on the host, so that MyCoolWebSite is not a subdirectory, but the root directory of a web application.
 
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