web.config配置错误?

lovered 2003-07-03 12:46:33
在网上down了几个asp.net的程序想学习一下,可是运行时总是出现如下报错,第38行错误。

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 36: "Passport" and "None"
Line 37: -->
Line 38: <authentication mode="Windows" />
Line 39:
Line 40: <!-- APPLICATION-LEVEL TRACE LOGGING


Source File: C:\Inetpub\wwwroot\asp.net\bbs\web.config Line: 38


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0
...全文
20 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zwztu 2003-07-03
  • 打赏
  • 举报
回复
在iis中将该目录配置成应用程序即可。
东村的三小子 2003-07-03
  • 打赏
  • 举报
回复
最简单的办法找一台正常运行的机器,对比一下IIS
Montaque 2003-07-03
  • 打赏
  • 举报
回复
打开iis,浏览到你的目录-》属性-》创建应用程序。
zhangzs8896 2003-07-03
  • 打赏
  • 举报
回复
新建一个虚拟目录,指向程序所在的文件夹
saucer 2003-07-03
  • 打赏
  • 举报
回复
把你的应用在网络服务管理器(Interer Services Manager)里设成虚拟目录

110,567

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧