在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