0

I have exactly the same problem as this SO poster; Visual Studio Crashing When I Select Text in Code Editor, except I'm running Windows 7 Ultimate and the fix for bulltorious isn't workable for me on Windows 7.

Event Viewer reports the error as;

Fault bucket 1097131459, type 5
Event Name: CLR20r3
Response: Not available
Cab Id: 0

Problem signature:
P1: devenv.exe
P2: 10.0.30319.1
P3: 4ba1fab3
P4: UIAutomationProvider
P5: 4.0.0.0
P6: 4ba1f837
P7: 3
P8: 0
P9: System.DllNotFoundException
P10:

I can't select any text in any file type. If I attempt to add or edit any code, I crash to desktop. I have done Windows Update and updated the usual drivers just in case. No luck.

I have no add-ins running and I've tried running devenv /safemode, with no success. I know this has something to do with UIAutomationProvider, but with no idea how to fix it!

Any ideas?

I did post on Microsoft's Connect, but that was useless: https://connect.microsoft.com/VisualStudio/feedback/details/618754/visual-studio-2010-crash-on-code-view-load

Community
  • 1
  • 1
dooburt
  • 3,010
  • 10
  • 41
  • 59
  • Just to be sure, do you have the latest updates and SPs for VS2010? – Philippe Lavoie Feb 03 '11 at 21:02
  • Thanks for the response Philippe. As far as I can ascertain, yes I do. I have checked Windows Update and I've searched Microsoft for anything particular. I have also reinstalled .NET 4.0, so-far; no dice... – dooburt Feb 03 '11 at 21:07

1 Answers1

1

Reverse-engineering the Watson dump, it is crashing in MS.Internal.Automation.UiaCoreProviderApi.RawUiaClientsAreListening. This is a pinvoked function from UIAutomationCore.dll

You'll need to find out what happened to that DLL. It is present in c:\windows\system32, mine has a time-stamp of July 13th 2009, 6:27:31 pm CST.

Community
  • 1
  • 1
Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
  • Hi Hans, thanks very much for the answer. I have checked my .dll, it is indeed within c:\windows\system32 and it has a time-stamp of July 14th 2009 at 2:16am GMT. Seems close enough to your .dll for me to assume that our files are the same? – dooburt Feb 03 '11 at 21:51
  • Yes it is the same. Start + Run, cmd.exe, OK and type PATH at the command prompt. Verify that c:\windows\system32 is listed. – Hans Passant Feb 03 '11 at 21:55
  • 1
    Also run Dumpbin.exe /exports on the file and verify that "UiaClientsAreListening" is present. – Hans Passant Feb 03 '11 at 21:58
  • Thanks Hans. I did just this and although it didn't solve the problem directly, it gave me enough clues to send me on my way :) Thank you for your kind help. – dooburt Feb 08 '11 at 14:42
  • @dooburt do you happen to remember what steps you took to solve the problem? I'm experiencing a very similar issue and looking for fixes. – DMGregory Apr 30 '18 at 15:08
  • @DMGregory cripes, this was a while ago! I think I replaced UIAutomation dll from somewhere and that solved the problem. I realise now how useless this answer is - because it doesn't actually tell the reader what to fix! – dooburt May 01 '18 at 15:34
  • Fix the DLL, like you did, should be obvious. – Hans Passant May 01 '18 at 15:42
  • I am suspicious this has something to do with Flight Simulator X as well, because that had a problem which relied on replacing the same DLL and could well have been the cause (or solution to this). Bottom line, Hans is right, replace the DLL and the problem will be fixed. – dooburt May 01 '18 at 15:54