首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

<authentication mode="Windows"/>出错,该如何处理

2012-05-14 
authentication modeWindows/出错在我的电脑上 网站运行正常但上传到服务器上面就出现如下错误Server

<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配置问题,
错误是说虚拟目录没有被配置为应用程序

热点排行