IIS 提示 <authentication mode="Windows" /> 错误


在win7下配置好IIS后,添加一个网页并导入应用程序时一直提示下面的错误: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 40:             ASP.NET to identify an incoming user. 
Line 41:         -->
Line 42: <authentication mode="Windows" />
Line 43: <!--
Line 44:             The <customErrors> section enables configuration 

解决方案:

1. 计算机-》右键-》服务-》服务和应用程序-》点击的你的网站-》右边选项-》查看应用程序

2. 右键-》添加应用程序-》填写别名(你访问网站需要用到的,例如:Test)

3. 填写物理路径:一定要是目标网页所在的文件夹

4. ok   你访问的地址可以点击右边的浏览来查看效果,或者是直接输入对应的网址(例如http://*:8081/Test/Default.aspx

Reference:

http://ask.people.com.cn/ask/question.php?tid=1009&id=426506

http://topic.csdn.net/t/20040723/17/3204408.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值