我剛剛得到了這個問題,這可能是由於我安裝在我的機器上。但我不記得了。每隔一段時間,我將收到一個Microsoft .NET Framework消息框,它會彈出在我的計算機上,它告訴我:System.IO.FileLoadException。無法加載輔助功能,版本= 2.0.0.0
「應用程序中某個組件發生未處理的異常。應用程序將忽略此錯誤並嘗試繼續。
無法加載文件或程序集「輔助功能, 版本= 2.0.0.0,文化=中立, 公鑰= b03f5f7f11d50a3a」或它 的一個依賴。給定的程序集名稱或代碼庫「
我嘗試重新安裝.net 4.0框架。我無法找到.net 2.0框架下載重新安裝。我嘗試使用gacutil/uf可訪問性來強制該dll被卸載,但這不起作用。我還檢查了Accessibility dll的安裝位置,並將其與其他機器進行了比較,並且所有內容都相同,包括global.config和web.config。
這個異常不僅發生在我的機器上的一個進程中。由於這是我的GAC問題,所以使用此程序集的任何應用程序都會拋出相同的異常。
我打開與融合綁定日誌記錄,這是什麼細節告訴我:
"See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.FileLoadException: Could not load file or assembly 'Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
File name: 'Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
=== Pre-bind state information ===
LOG: User = CORP\agg9909
LOG: DisplayName = Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/Intel/Intel(R) Management Engine Components/IMSS/
LOG: Initial PrivatePath = NULL
Calling assembly : System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IMSS\PrivacyIconClient.exe.Config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: The same bind was seen before, and was failed with hr = 0x80131047.
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5444 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
PrivacyIconClient
Assembly Version: 6.0.40.1213
Win32 Version: 6.0.40.1213
CodeBase: file:///C:/Program%20Files%20(x86)/Intel/Intel(R)%20Management%20Engine%20Components/IMSS/PrivacyIconClient.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
AMT_COM_InterfaceLib
Assembly Version: 1.0.0.0
Win32 Version: 6.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Intel/Intel(R)%20Management%20Engine%20Components/IMSS/AMT_COM_InterfaceLib.DLL
----------------------------------------
AMT_SW_GUI
Assembly Version: 1.0.3538.22155
Win32 Version: 1.0.0.20
CodeBase: file:///C:/Program%20Files%20(x86)/Intel/Intel(R)%20Management%20Engine%20Components/IMSS/AMT_SW_GUI.DLL
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box."
任何幫助將不勝感激。
完美運作。我最近安裝了visual studio 2010 sp1和visual studio 2010 sp1 sdk,所以也許其中一個安裝引起了我的問題。 – dodecahydra 2011-05-02 22:35:10