小第刚学.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>错在18行字那里,谁知道是怎么回事吗?
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>错在18行字那里,谁知道是怎么回事吗?
解决方案 »
- 初学者问个CheckBox控件问题
- 图片路径问题
- socket通讯迸发问题
- sql2000中的数据怎么会突然变了??太奇怪了!!!
- 关于XP SP3安装IIS和microsoft sql server 2005的问题,希望大家仁者见仁,智者见智!
- 有沒有哥哥來幫幫我·一點小問題!
- 请教一个dotlucene的问题
- 2个flash交户的问题 在静态页面钟可以实现 就是在aspx文件中有了form标记就会出现未将对象设置到对象实例
- 类型转换之间的问题。可不是很容易的。
- 为什么调用word会出错?
- 求助:调试Duwamish 7.0时报错~~~~急
- repeater嵌套repeater。在线等。急时结帐。不拖拉
This error can be caused by a virtual directory not being configured as an application in IIS.
或者应用程序的创建
其实这个项目己是在虚拟目录下了,只是没有在根目录下,而是几个文件夹下面
2.某些配置项只能放到根目录下的web.config配置文件中,而不能放到根目录下的子目录中的web.config配置文件中的