Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I Build a website by using asp.net and c# in filesystem

now i uploaded it in the web

when i used to run that page,it shows an error like this

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 24:             ASP.NET to identify an incoming user. 
Line 25:         -->
Line 26: 	<authentication mode="Windows" />
Line 27: 		<!--
Line 28:             The <customErrors> section enables configuration 

Source File: C:\Domains\manjummelprovince.org\wwwroot\cmsnew\testwebsite\web.config    Line: 26 

Version Information: Microsoft .NET Framework Version:2.0.50727.3607; ASP.NET Version:2.0.50727.3082



what can i do to remove this error

i also converted it as iis application,and then it can run via local host,bt when uploading into web,it shows same error


Kindly help me

Kishore R-->
Posted
Updated 17-May-10 19:34pm
v2

Just check, if you have multiple Web.Config files in your application?

Further, check for the correct framework you are using in IIS, register the framework and reset the IIS and re-try.
 
Share this answer
 
Replace the partial XML element on line 26:

XML
"Windows" />


with:

XML
<authentication mode="Windows" />
 
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