懂得网页语言的进来

来源:百度知道 编辑:UC知道 时间:2024/05/10 13:09:30
运行网页出现下边问题,到底是哪里出问题?

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 41: </appSettings>
Line 42: <system.web>
Line 43: <machineKey validationKey="3FF1E929BC0534950B0920A7B59FA698BD02DFE8" decryptionKey="280450BB36319B474C996B506A95AEDF9B51211B1D2B7A77" decryption="3DES" validation="SHA1"/>
Line 4

不是网页本身问题,是服务器配置问题

具体为:

运行时错误
描述:一个应用程序错误发生在服务器上.目前定制误差设置为这项应用防止细节应用程序错误,从被认为是远程(出于安全原因) . ,但它有可能被认为是由浏览器运行于本地服务器机器.

详情:让细节这一特定错误讯息,可浏览远程计算机,请创建一个<customerrors>标签内的" web.config "配置文件位于根目录下的当前的web应用.这<customerrors>标签,然后有它的"模式"属性设置为"关闭" .

< ! -- web.config配置文件-- >

<configuration>
<system.web>
<customerrors mode="off"/>
< / system.web >
< /配置>

注:当前的错误页面,你可以看到,可取而代之的是一个定制的错误页面,修改" defaultredirect "属性的应用程序的配置<customerrors>标签指向一个定制的错误页面的url .

< ! -- web.config配置文件-- >

<configuration>
<system.web>
<customerrors mode="remoteonly" defaultredirect="mycustompage.htm"/>
< / system.web >
< /配置>