我的一個應用程序在XP上出現奇怪的錯誤。該應用程序是使用.NET Client 4的C#中的WPF應用程序。當應用程序啓動時,我得到錯誤,應用程序顯示UI,然後崩潰。該錯誤來自我的跟蹤日誌文件。任何人都看過?無法加載DLL UIAutomationCore.dll
Type : System.DllNotFoundException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Unable to load DLL 'UIAutomationCore.dll': The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)
Source : UIAutomationTypes
Help link :
TypeName :
Data : System.Collections.ListDictionaryInternal
TargetSite : Int32 RawUiaLookupId(AutomationIdType, System.Guid ByRef)
Stack Trace : at MS.Internal.Automation.UiaCoreTypesApi.RawUiaLookupId(AutomationIdType type, Guid& guid)
at System.Windows.Automation.AutomationIdentifier.Register(AutomationIdType type, Guid guid, String programmaticName)
at System.Windows.Automation.InvokePatternIdentifiers..cctor()
該機器上的c:\ windows \ system32 \ uiautomationcore.dll受到重擊。通常由流氓安裝程序。從另一臺XP機器上使用.NET 4複製一個已知好的版本 – 2012-08-11 18:59:47
它是否會通過重新安裝.NET 4來解決問題 – klashagelqvist 2012-08-13 08:07:39