Unable to load DLL UIAutomationCore.dll

2

Im getting a strange error on a XP on one of my application. The application is WPF application in C# using .NET Client 4. Im getting the error when the application starts, the application shows the UI and then crashes. The error comes from my trace log file. Anyone have seen this before?

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#
wpf
asked on Stack Overflow Aug 11, 2012 by klashagelqvist

2 Answers

1

I searched for the same problem and found out this: VS2010 crashing

According to the post there it says that you may have an outdated DLL of the UIautomation. Also according to what was post there updating the DLL from here:UIautomation download link solved the problem.

I hope I helped,

Sagi.

answered on Stack Overflow Aug 11, 2012 by Sagi Rokach
0

RawUiaLookupId is called by UiaCoreTypesApi.UiaLookupId(type, ref guid) to get the Id of the control then initial the AutomationIdentifier. UiAutomationCore.dll is commonly used in the implement of the provider plus your application is WPF application, so the issue is on the server side. Server side provider is generally served by the system. I am not sure whether make a windows update will resolve the issue. If not, we need to update this library manually.

answered on Stack Overflow Mar 4, 2013 by Shengzhen Ma • edited Mar 4, 2013 by A.D.

User contributions licensed under CC BY-SA 3.0