注册 登录
编程论坛 ASP.NET技术论坛

web.config里面有个配置错误,不知道怎么回事,晕了

yzwt2004 发布于 2007-05-03 14:25, 549 次点击

小第刚学.net,买了本书,拿了个例子来运行,可全都运行不了,都出现同样的错误,急


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.

web.config文件:

Line 16: <pages buffer="true" enableViewStateMac="false" smartNavigation="false" validateRequest="false"/>
Line 17: <customErrors mode="RemoteOnly" defaultRedirect="DesktopModules/ErrorPage.aspx"></customErrors>
Line 18: <authentication mode="Windows"/>
Line 19: <httpRuntime maxRequestLength="10000" useFullyQualifiedRedirectUrl="true" executionTimeout="300"></httpRuntime>
Line 20: <authorization>

错在红色字那里,谁知道是怎么回事吗?

3 回复
#2
bygg2007-05-03 15:46
IIS配置不对啊。
#3
zhmxtr2007-05-06 21:08

把这段授权模式去掉看看行不行

#4
刘小芳2007-05-07 19:55
改成
FROMS
1