<authentication mode="Windows"/>出错
在我的电脑上 网站运行正常
但上传到服务器上面就出现如下错误
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 24: 以标识传入的用户。
Line 25: -->
Line 26: <authentication mode="Windows"/>
Line 27: <!--
Line 28: 如果在执行请求的过程中出现未处理的错误,
Source File: g:\freehost2\kongtian\web\game\web.config Line: 26
我本以为是服务器不是windows系统,于是把<authentication mode="Windows"/>改成<authentication mode="none"/>,但还是不行,请问怎么解决
------解决方案--------------------估计是.net framework的版本不一致造成的。
------解决方案--------------------服务器的iis配置问题,
错误是说虚拟目录没有被配置为应用程序