日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

Could not load file or assembly ‘App_Web_xxxx’ or one of its dependencies. 系統(tǒng)找不到指定文件.

 實力決定地位 2017-10-10
ASP.usercontrol_defaultpage_righttopsearch_ascx.__BuildControlTree(usercontrol_defaultpage_righttopsearch_ascx __ctrl) +0
System.Web.UI.UserControl.InitializeAsUserControl(Page page) +53
ASP.default_aspx.__BuildControlRighttopsearch1() +73
ASP.default_aspx.__BuildControlTree(default_aspx __ctrl) +1079
ASP.default_aspx.FrameworkInitialize() +51
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +55
System.Web.UI.Page.ProcessRequest() +105
System.Web.UI.Page.ProcessRequest(HttpContext context) +292
ASP.default_aspx.ProcessRequest(HttpContext context) +16
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +499
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +177

出現(xiàn)場景:頁面可以正常訪問沒有更新任何地方,突然就出現(xiàn)了這個錯誤。
解決方案:解決的方法很奇怪,將發(fā)生錯誤的頁面上加上debug="true"的指令,然后訪問出錯的頁面,這時候頁面就可以正常訪問了;然后再把debug="true"去掉也可以正常訪問。
這應該是microsoft的一個bug。

在ASP.NET 2.0 開發(fā)過程中,有時候開發(fā)人員可能會遇到這樣的頁面異常:

Could not load file or assembly 'App_Web_****, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

異常信息中的****是一個隨機字符串,我們知道App_Web_****是一個ASP.NET即時編譯的臨時程序集。

我是今天在用Orcas beta 1開發(fā)一個基于WCF服務的瀏覽器應用時遇到該問題的,通常地講,這是一個ASP.NET 2.0處理臨時程序集的已知問題,ASP.NET論壇上的billr578說微軟建議:

(they suggested) setting batch compilation to false. Basically put batch="false" in the compiliation tag in your web.config. Apparently this is an issue they're working on.

也就是說在web.config里配置成這樣子:

<compilation debug="true" batch="false">

    本站是提供個人知識管理的網絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內容,請點擊一鍵舉報。
    轉藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多