永发信息网

Server Error in '/' Application. ???

答案:1  悬赏:80  手机版
解决时间 2021-07-29 10:54
  • 提问者网友:最爱你的唇
  • 2021-07-28 18:43

我用ASP.NET+SQL2005做的网站的IIS上浏览,出现了以下错误提示,为什么?

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 59: 以标识传入的用户。
Line 60: -->
Line 61: <authentication mode="Windows"/>
Line 62: <!--
Line 63: 如果在执行请求的过程中出现未处理的错误,

Source File: c:\inetpub\wwwroot\history\web.config Line: 61


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

最佳答案
  • 五星知识达人网友:傲气稳了全场
  • 2021-07-28 19:34
你只要在web.config 中加入 <pages enableEventValidation="true"/>
或者在page中假如<%@ Page EnableEventValidation="true" %> 也可以.主要是.net 安全机制问题.只要你提交内容有脚本代码.默认都会包错.
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯