web.config里面有个配置错误,不知道怎么回事,晕了
小第刚学.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>
错在红色字那里,谁知道是怎么回事吗?