如何修复子文件夹中的身份验证错误?

时间:2012-03-12 09:12:03

标签: asp.net .net authentication

我有一个网站。在这里,我创建了一个名为 test 的子文件夹。但是当我浏览我的网页时,我收到了身份验证错误

 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 8:         <compilation debug="true">
Line 9:         </compilation>
Line 10:        <authentication mode="Windows"/>
Line 11:        <customErrors mode="Off"/>
Line 12:    </system.web>


Source File: d:\hosting\mydomain\mysubfolder\web.config    Line: 10

Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3634 

如何解决这个问题?

0 个答案:

没有答案