Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to view my asp.net project on a demo server. I've uploaded all my files to the server using FileZilla software. But When i enter the url, I'm getting the following error


Quote:
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 47: ASP.NET to identify an incoming user.
Line 48: -->
Line 49:
Line 50:
Quote:
authentication mode="None"

Line 51: <!--The <customerrors> section enables configuration

Can some one help me out in this.

Thanks In advance.
Posted
Updated 8-Jun-12 0:22am
v2

Do you have a backup directory of a previous version stored in the project folder and not excluded from project? It might happen in such a case, See this[^].
Ref:http://forums.asp.net/t/1031775.aspx/1[^]

Refer: You do not have a virtual directory for your application[^]
 
Share this answer
 
 
Share this answer
 
Comments
Arjun YK 8-Jun-12 7:01am    
No, I'm not able to solve the issue
Generally this happens when you have more than one Web.Config file in your application root folder.
Just check if you have more than one. If so, remove the duplicate copies.

Read a similar issue resolved here:ASP.NET 2.0 & "allowDefinition='MachineToApplication'" error message[^]

Other useful link that has similar issue discussed: http://forums.asp.net/p/769696/769696.aspx[^]
 
Share this answer
 
Comments
Arjun YK 8-Jun-12 7:35am    
There is only one WEB.Config file
Sandeep Mewara 8-Jun-12 7:51am    
Check other link for more possible reasons.

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