game178 - 2011/1/14 9:47:00
用pa做好了一个站,需要在域名下新建一个文件夹再复制一遍,但是复制后我再原来域名后跟上文件夹名称却出现错误,求救
譬如原来的域名是localhost,我把原来网站的文件夹有复制了一遍放在网站根目录下,起名dahe,localhost/index.aspx正常访问,但是localhost/dahe/index.aspx出现错误
以下是出现的错误
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 18: <pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode="Never" />
Line 19: <compilation defaultLanguage="C#" debug="false" />
Line 20: <authentication mode="Forms" />
Line 21: <customErrors mode="Off">
Line 22: <error statusCode="404" redirect="/error404.html" />
Source File: D:\web\daheart\dahe\web.config Line: 20
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
xcrane - 2011/1/14 11:29:00