Server error in "/" application

I am trying lớn deploy an application in our hệ thống while I am receiving the following error.

Server Error in "/" Application. ________________________________________Configuration Error Description: An error occurred during the processing of a configuration tệp tin required lớn service this request. Please reviews the specific error details below & modify your configuration file appropriately. Parser Error Message: It is an error lớn 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 63: ASP.NET lớn identify an incoming user. Line 64: -->Line 65: Line 66: Source File: D:BarclaysPayamentManagementSystemscr.uiweb.config Line: 65What is the reason & how khổng lồ resolve it?

Please help

Bạn đang xem: Server error in "/" application

tóm tắt
Improve this question
edited Jun 30, 2009 at 11:37

Matthew Scharley
125k5151 gold badges195195 silver badges221221 bronze badges
asked Jun 30, 2009 at 11:32

Xem thêm: 7 Khái Niệm Toàn Cầu Môn Cp, Báo Cáo Đánh Giá Sự Tuân Thủ Các Chuẩn Mực Và


25.2k4242 gold badges124124 silver badges172172 bronze badges
showroom a phản hồi |

10 Answers 10

Sorted by: Reset to mặc định
Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first)
You may get this error when trying to lớn browse an ASP.NET application.

The debug information shows that "This error can be caused by a virtual directory not being configured as an application in IIS."

However, this error occurs primarily out of two scenarios.

When you create an new website application using Visual Studio .NET, it automatically creates the virtual directory & configures it as an application. However, if you manually create the virtual directory & it is not configured as an application, then you will not be able to browse the application và may get the above error. The debug information you get as mentioned above, is applicable to lớn this scenario.

To resolve it, right click on the virtual directory - select properties and then click on "Create" next to the "Application" Label & the text box. It will automatically create the "application" using the virtual directory"s name. Now the application can be accessed.

When you have sub-directories in your application, you can have web.config file for the sub-directory. However, there are certain properties which cannot be set in the web.config of the sub-directory such as authentication, session state (you may see that the error message shows the line number where the authentication or session state is declared in the web.config of the sub-directory). The reason is, these settings cannot be overridden at the sub-directory level unless the sub-directory is also configured as an application (as mentioned in the above point).

Mostly, we have the practice of adding web.config in the sub-directory if we want to protect access to lớn the sub-directory files (say, the directory is admin và we wish to lớn protect the admin pages from unauthorized users).

Chuyên mục: Domain Hosting