程序上传到ftp后 <authentication mode="Windows" />错误
我用.net2005 + sql2000 开发的程序在本地运行没有任何错误!!!~~
为什么上传到 ftp 上之后 浏览就出现以下错误:
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 49: 以标识传入的用户。
Line 50: -->
Line 51: <authentication mode= "Windows " />
Line 52: <!--
Line 53: 如果在执行请求的过程中出现未处理的错误,
Source File: e:\wwwroot\2128080ASPNET\wwwroot\haha\web.config Line: 51
请高手帮忙解决下 谢谢!~~~~~~~~~~~~~~~~~~~~~~~~求~~~~!
------解决方案--------------------web.config放在iis主目录对应的文件夹下就可以了
------解决方案--------------------你上传的目录不是虚拟目录根目录
web.config 中某些配制节之恩能够存在根目录
也许你的文件应该直接放在 e:\wwwroot\2128080ASPNET\wwwroot 下面