0
我們的asp.net web服務器偶爾會出現綁定問題,導致頁面不會顯示給最終用戶。按刷新通常有效。強制命名的程序集是必需的零星文件綁定時找不到
如果您在事件日誌看你得到如下條目:
Exception information:
Exception type: FileLoadException
Exception message: A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
我們大會確實有很強的名字,但是考慮到這個工程的99.9%的時間,我不認爲這是在問題。我打開了融合綁定日誌記錄,當發生錯誤時,我們得到一個綁定日誌文件。
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable C:\Windows\SysWOW64\inetsrv\w3wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = WEBFUND\WF6User
LOG: Where-ref bind. Location = C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\clients\6c02a9d4\233e1482\App_Web_emailpdf.aspx.afcecd13.5bzg9b2a.dll
LOG: Appbase = file:///D:/FinancialExpress/ClientsV21/
LOG: Initial PrivatePath = D:\FinancialExpress\ClientsV21\bin
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\clients\6c02a9d4
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\clients\6c02a9d4
LOG: AppName = 233e1482
Calling assembly : (Unknown).
===
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Start binding of native image App_Web_emailpdf.aspx.afcecd13.5bzg9b2a, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
LOG: IL assembly loaded from C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\clients\6c02a9d4\233e1482\App_Web_emailpdf.aspx.afcecd13.5bzg9b2a.dll.
WRN: No matching native image found.
LOG: Bind to native image assembly did not succeed. Use IL image.
我已經在服務器上覆制了depends.exe並運行它。它提供了兩個找不到的文件:GPSVC.DLL和IESHIMS.DLL。但是,這可能是問題嗎?鑑於大多數頁面正確顯示不應該總是不工作,如果這些文件丟失?