久久国产精品亚洲艾草网_黄色视频在线免费观看_国产强伦姧在线观看_无码国产69精品久久久久网站

win2008 r2必須在配置中注冊(cè) WebResource.axd 處理程序

廣告:

環(huán)境:asp.net mvc2.0 asp.net 3.5 sp1

說(shuō)明: 執(zhí)行當(dāng)前 Web 請(qǐng)求期間,出現(xiàn)未處理的異常。請(qǐng)檢查堆棧跟蹤信息,以了解有關(guān)該錯(cuò)誤以及代碼中導(dǎo)致錯(cuò)誤的出處的詳細(xì)信息。

異常詳細(xì)信息: System.InvalidOperationException: 要處理此請(qǐng)求,必須在配置中注冊(cè) WebResource.axd 處理程序。

<!-- Web.Config 配置文件 -->

<configuration>

<system.web>

<httpHandlers>

<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />

</httpHandlers>

</system.web>

</configuration>

源錯(cuò)誤:

執(zhí)行當(dāng)前 Web 請(qǐng)求期間生成了未處理的異常?梢允褂孟旅娴漠惓6褩8櫺畔⒋_定有關(guān)異常原因和發(fā)生位置的信息。

堆棧跟蹤:

[InvalidOperationException: 要處理此請(qǐng)求,必須在配置中注冊(cè) WebResource.axd 處理程序。

<!-- Web.Config 配置文件 -->

<configuration>

<system.web>

<httpHandlers>

<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />

</httpHandlers>

</system.web>

</configuration>]

System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrlInternal(Assembly assembly, String resourceName, Boolean htmlEncoded) +8571518

System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrl(Type type, String resourceName, Boolean htmlEncoded) +296

System.Web.UI.ClientScriptManager.GetWebResourceUrl(Page owner, Type type, String resourceName, Boolean htmlEncoded) +82

System.Web.UI.ClientScriptManager.RegisterClientScriptResource(Type type, String resourceName) +33

System.Web.UI.WebControls.BaseValidator.RegisterValidatorCommonScript() +132

System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +53

System.Web.UI.Control.PreRenderRecursiveInternal() +80

System.Web.UI.Control.PreRenderRecursiveInternal() +171

System.Web.UI.Control.PreRenderRecursiveInternal() +171

System.Web.UI.Control.PreRenderRecursiveInternal() +171

System.Web.UI.Control.PreRenderRecursiveInternal() +171

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

--------------------------------------------------------------------------------

版本信息: Microsoft .NET Framework 版本:2.0.50727.5466; ASP.NET 版本:2.0.50727.5456

解決方法:

如果是 asp.net 4.0

如果你僅僅是為了網(wǎng)站正常運(yùn)行,最簡(jiǎn)單的辦法叫iis下的應(yīng)用程序池設(shè)置為經(jīng)典模式。如果要追求性能設(shè)置為集成。需要下載一個(gè)補(bǔ)丁http://support.microsoft.com/kb/2591200/zh-cn

如果是 asp.net 2.0

iis下的應(yīng)用程序池設(shè)置為經(jīng)典模式

廣告:

相關(guān)內(nèi)容

編輯:Admin 時(shí)間:2013/12/7 7:38:29 閱覽:1267   返回    
WebResource.axd
win2008
掃描關(guān)注53BK報(bào)刊官網(wǎng)
掃描關(guān)注閱速公司微信