Visual Studio keeps crashing: Application Error - visual-studio

VS keeps crashing, usually when I want to click on some text I want to edit.
When I look in the event log I get;
Log Name: Application
Source: Application Error
Date: 26/03/2013 15:18:30
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: (removed)
Description:
Faulting application name: devenv.exe, version: 10.0.40219.1, time stamp: 0x4d5f2a73
Faulting module name: clr.dll, version: 4.0.30319.269, time stamp: 0x4ee9ae83
Exception code: 0xc00000fd
Fault offset: 0x00194a5d
Faulting process id: 0x47c
Faulting application start time: 0x01ce2a3396f0faf2
Faulting application path: c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report Id: 69d0daee-9628-11e2-aeba-005056c00008
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2013-03-26T15:18:30.000000000Z" />
<EventRecordID>23553</EventRecordID>
<Channel>Application</Channel>
<Computer>(removed)</Computer>
<Security />
</System>
<EventData>
<Data>devenv.exe</Data>
<Data>10.0.40219.1</Data>
<Data>4d5f2a73</Data>
<Data>clr.dll</Data>
<Data>4.0.30319.269</Data>
<Data>4ee9ae83</Data>
<Data>c00000fd</Data>
<Data>00194a5d</Data>
<Data>47c</Data>
<Data>01ce2a3396f0faf2</Data>
<Data>c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe</Data>
<Data>C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll</Data>
<Data>69d0daee-9628-11e2-aeba-005056c00008</Data>
</EventData>
</Event>
also I get this;
Log Name: Application
Source: Windows Error Reporting
Date: 26/03/2013 15:21:01
Event ID: 1001
Task Category: None
Level: Information
Keywords: Classic
User: N/A
Computer: (removed)
Description:
Fault bucket 2985755835, type 1
Event Name: APPCRASH
Response: Not available
Cab Id: -721041670
Problem signature:
P1: devenv.exe
P2: 10.0.40219.1
P3: 4d5f2a73
P4: clr.dll
P5: 4.0.30319.269
P6: 4ee9ae83
P7: c00000fd
P8: 00194a5d
P9:
P10:
Attached files:
C:\Users\xxx\AppData\Local\Temp\WERE350.tmp.WERInternalMetadata.xml
C:\Users\xxx\AppData\Local\Temp\WERF0C9.tmp.appcompat.txt
C:\Users\xxx\AppData\Local\Temp\WERF108.tmp.mdmp
These files may be available here:
C:\Users\xxx\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_devenv.exe_3f453f47c0d86c534010e7cf6788bb8f42fbcd_cab_144e2fda
Analysis symbol:
Rechecking for solution: 0
Report Id: 69d0daee-9628-11e2-aeba-005056c00008
Report Status: 8
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Windows Error Reporting" />
<EventID Qualifiers="0">1001</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2013-03-26T15:21:01.000000000Z" />
<EventRecordID>23554</EventRecordID>
<Channel>Application</Channel>
<Computer>(removed)</Computer>
<Security />
</System>
<EventData>
<Data>2985755835</Data>
<Data>1</Data>
<Data>APPCRASH</Data>
<Data>Not available</Data>
<Data>-721041670</Data>
<Data>devenv.exe</Data>
<Data>10.0.40219.1</Data>
<Data>4d5f2a73</Data>
<Data>clr.dll</Data>
<Data>4.0.30319.269</Data>
<Data>4ee9ae83</Data>
<Data>c00000fd</Data>
<Data>00194a5d</Data>
<Data>
</Data>
<Data>
</Data>
<Data>
C:\Users\xxx\AppData\Local\Temp\WERE350.tmp.WERInternalMetadata.xml
C:\Users\xxx\AppData\Local\Temp\WERF0C9.tmp.appcompat.txt
C:\Users\xxx\AppData\Local\Temp\WERF108.tmp.mdmp</Data>
<Data>C:\Users\xxx\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_devenv.exe_3f453f47c0d86c534010e7cf6788bb8f42fbcd_cab_144e2fda</Data>
<Data>
</Data>
<Data>0</Data>
<Data>69d0daee-9628-11e2-aeba-005056c00008</Data>
<Data>8</Data>
</EventData>
</Event>

Standard checks to resolve these types of errors:
uninstall any beta/ctp releases for Visual Studio.
look in the Windows Event Viewer and check for the following two items in the Application log: it will contain a stacktrace which may help you find the culprit.
delete any *.*user files and the solution user options file (.suo)
Run visual studio with activity logging turned on to see if the logs contain a hint to what's causing the crash. (devenv /log)
Run Visual Studio in Safe mode (devenv /safemode)
Clear the ComponentModelCache folder
Check to see if any extensions/add-ons/plugins need updates and update them first to see if that fixes your problem.
disable all add-ins and extensions (VS Commands, WebEssentials etc)
uninstall all plugins (resharper, coderush, reflector etc)
install the latest patches and service packs, you may need to re-apply these servicepacks if you've installed SQL Server or another product that installs a feature which is based on Visual Studio Shell:
2005: SP 1 & TFS 2010 Forward Compatibiltiy Patch & Visual Studio update for Windows Vista
2008: SP 1 & TFS 2012/VSO Forward Compatibiltiy Patch
2010: SP 1 & TFS 2012/VSO Forward Compatibility Patch & Visual Studio update for Windows 8 and TFS 2012.
2012: Update 5
2013: Update 5
2015: Update 3 & KB3165756
2017: Update to the latest version
reset vs settings (devenv /resetsetting /resetaddin /resetskippkgs /setup)
backup & remove the %LOCALAPPDATA%\Microsoft\VisualStudio\ folder to have Visual Studio recreate your setting folder.
Do not run Visual Studio while installing extensions, updates etc.
Try to reproduce it. If it still occurs, repair Visual Studio and reapply the latest service packs and hotfixes in order. If it then still occurs, submit a support ticket to Microsoft, or an item on connect.
If it doesn't occur turn-on/install/restore the items one by one until you can find the culprit. I know it's a lot of work, but since your error happens somewhere deep inside the CLR (you're seeing a StackOverflow Exception), it's hard to pinpoint the problem easily. When you've found the problematic item, see if there is an update for it or request their support (or update your question).
In the worst case you can perform a force-uninstall of Visual Studio using vs_setup /uninstall /force, that should work on the 2012 and newer installers.
If you're still on an old version of Visual Studio (2010 or older), really, really. really consider upgrading. These versions are past their support lifetime and were built for versions of Windows that are not even supported anymore. I know the pain these upgrades can cause in the short term, but the long-term solution is really to move away from the old versions.

A quick and dirty approach is to rename your %LOCALAPPDATA%\Microsoft\VisualStudio\ folder to VisualStudio.backup\ and restart devenv. It will recreate the folder and populate it with default settings files. You will lose any customizations of course, but many times that is ok and/or easily recreated. You always have the backup folder just in case.
If you want to take it a step further, you can move settings one-by-one from the backup back into the new folder until you can completely isolate the problem.

None of the above worked. But I saw a user settings file had appeared next to the .sln file. I deleted it, and the solution's corresponding .suo file. This fixed the problem.

Related

Microsoft Visual Studio 2019 "Server Busy" every time I open a dialog. Devenv.exe is faulting with textservice.dll

Microsoft Visual Studio 2019 shows a "Server Busy" dialog every time I open a dialog.
A Procmon search for devenv.exe finds at least 100 NO SUCH FILE entries for the following file:
C:\Users\jlavallet\AppData\Local\Microsoft\VSApplicationInsights\vstelf144292e-e3b2-4011-ac90-20e5c03fbce5\*.trn
FileInformationClass: FileBothDirectoryInformation
Filter: *.trn
I performed the search because I was following #Blaise's advice to the OP of this question: https://stackoverflow.com/a/39026817/969431
So now that I have found the offending file, what advice can you give me for resolving this issue?
UPDATE:
So I googled the path and filename and found this SO question: Visual Studio 2017 Enterprise installation stucks.
I tried the solution suggested by #Techrocket9, placing an empty TRN file in the folder.
I then started up Visual Studio again and tried to edit the Publish settings for a solution (this invokes a modal dialog) and as always, about five seconds later, I get that same "Server Busy" dialog:
I went back to Procmon and the NO SUCH FILE problem was gone but I decided to filter the remaining devenv.exe entries down to just those that were not SUCCESS or NO MORE FILES (this seemed innocuous). Here's what I have left:
Does anyone out there know what might be causing my Server Busy problem based on this information?
UPDATE 2
After multiple tries at reinstalling and working the issue through Microsoft here: https://developercommunity.visualstudio.com/t/com-returned-an-unexpected-error-code-details-are/1422343?from=email&viewtype=all, I cleared my Event Viewer Application Logs and isolated everything. The result was that I found this error message. Devenv.exe appears to be conflicting with my voice recognition software Nuance Dragon NaturallySpeaking 15. Since this is an accessibility issue, is there any chance that Microsoft will do something about this? What can I do?
Log Name: Application
Source: Application Error
Date: 5/14/2021 3:39:39 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: DEVELOPMENT9.CC.Local
Description:
Faulting application name: devenv.exe, version: 16.9.31205.134, time stamp: 0x606b75b3
Faulting module name: textservice.dll, version: 15.61.200.14, time stamp: 0x5fb72e0e
Exception code: 0xc0000005
Fault offset: 0x00006644
Faulting process id: 0x3a40
Faulting application start time: 0x01d74900f8dd3c3e
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\devenv.exe
Faulting module path: C:\Program Files (x86)\Nuance\NaturallySpeaking15\Program\textservice.dll
Report Id: fa11cc8c-975c-42b8-af6a-3cd00b12dc7a
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>100</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2021-05-14T20:39:39.6605762Z" />
<EventRecordID>7267273707</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>Application</Channel>
<Computer>DEVELOPMENT9.CC.Local</Computer>
<Security />
<Data>devenv.exe</Data>
<Data>16.9.31205.134</Data>
<Data>606b75b3</Data>
<Data>textservice.dll</Data>
<Data>15.61.200.14</Data>
<Data>5fb72e0e</Data>
<Data>c0000005</Data>
<Data>00006644</Data>
<Data>3a40</Data>
<Data>01d74900f8dd3c3e</Data>
<Data>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\devenv.exe</Data>
<Data>C:\Program Files (x86)\Nuance\NaturallySpeaking15\Program\textservice.dll</Data>
<Data>fa11cc8c-975c-42b8-af6a-3cd00b12dc7a</Data>
<Data>
</Data>
<Data>
</Data>
UPDATE 3:
So it turns out that the issue is some kind of conflict between Visual Studio 2019 and Nuance Dragon Professional Group 15. I am now working the problem with Microsoft and Nuance. If this has affected anyone besides me, you can follow the continued progress here: https://developercommunity.visualstudio.com/t/microsoft-visual-studio-2019-server-busy-every-tim/1416496?from=email&viewtype=all.

How to overcome "Could not load type 'Microsoft.Cct.Services.Sqm.IWatSqmService'" without updating?

I'm getting the same error message as in this question: Could not load type 'Microsoft.Cct.Services.Sqm.IWatSqmService' Unfortunately, I cannot upgrade to Azure SDK 2.9, as the top answer there suggests.
Specifically, I get this error in a message box whenever I try to package my Azure Cloud Service project:
What's interesting is that I can start the same project in the emulator, which I would assume involves packaging it.
Things I've tried:
Ensuring that I only have version 2.8.2 of the emulator installed (I may have had 2.9 installed initially)
Reinstalling version 2.8.2 of the SDK
Manually copying the Windows Azure Tools from C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0 to the v14.0 equivalent.
Ensuring that C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.8 exists
Reinstalling Visual Studio (so you know I'm desperate!)
And I've no idea what to try next. I can't work out which DLL is supposed to hold the Microsoft.VisualStudio.WindowsAzure.Services assembly, I can't find any references in any config files, and all the Google hits seem to point back to the SO question linked above.
What's going on? And how can I fix it?
In case I'm being an idiot, here's all the Azure-related things I've got installed:
Also (just in case it's relevant) I'm on Windows 7 SP1.
Update 17/01/16
Following some advice from the excellent Rest Azured Slack channel, I've tried using ProcMon and Fusion Log to diagnose this (spoiler: without success)
ProcMon filtered to that assembly returns nothing:
Fusion log (set to log everything) yields lots of entries like this:
* Assembly Binder Log Entry (17/01/2017 # 11:52:02) *
The operation was successful. Bind result: hr = 0x0. The operation
completed successfully.
Assembly manager loaded from:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll Running under
executable C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\devenv.exe
--- A detailed error log follows.
=== Pre-bind state information === LOG: DisplayName = Microsoft.VisualStudio.WindowsAzure.Services, Version=1.1.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio
14.0/Common7/IDE/ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = devenv.exe Calling assembly
: Microsoft.VisualStudio.WindowsAzure, Version=2.9.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
=== WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with
Assembly.Load(). WRN: No matching native image found. LOG: IL assembly
loaded from C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\Extensions\Microsoft\Windows Azure Tools\Microsoft.VisualStudio.WindowsAzure.Services.dll.
When I explore the DLL mentioned, I can find Microsoft.Cct.Services.Sqm, but it doesn't contain a type IWatSqlService:
This feels like it's the crux of the issue, but I've no idea what to do next. Presumably I'd need to replace the DLL with a version that does define IWatSqlService, but I'm not sure where I'd get one. Or, for that matter, why it would even be necessary.
Next stop is probably a full wipe of the machine.
I've had the same problem, and solved it by not using the Web Platform Installer.
Download all parts (Microsoft Azure SDK for .NET - 2.8.2) from the Microsoft site: https://www.microsoft.com/en-us/download/details.aspx?id=50041 and follow the instructions how to install them.
For anyone else with this problem. I ended up resolving this by nuking it from orbit. Fresh install of Windows, reinstall VS and the SDK.
Confusingly, you can also see this error when you add a new
<setting name="TODO" />
element to your *.csdef file but either:
forget to add the corresponding <setting name="TODO" value="TODO" /> element to every *.cscfg file, or
accidentally add a duplicate <setting name="TODO" value="TODO" /> element to any of the *.cscfg files.

Visual Studio community install crash

I am getting the following error whenever I try to install Visual Studio Community from the Microsoft site. It occurs immediately upon running the exe.
I have downloaded many versions, run as admin, restarted my pc etc etc, and every time I am hit with this error. I have had visual studio installed on this PC previously.
Selecting "Close program" ironically opens this site. Which is evidently no help.
Does anyone have any idea how I can resolve this before I attempt to contact Microsoft Support?
Event Viewer is displaying the following information;
Windows Error Reporting >>
Fault bucket 126880939415, type 5
Event Name: VSSetup
Response: Not available
Cab Id: 0
Problem signature:
P1: vs_community
P2: 14.0.25420.01.00
P3: 14.0.25420
P4: Modify
P5: unknown
P6: Crash: Exception
P7: 573d30d8
P8: 2d00
P9: 87
P10:
Attached files:
\\?\C:\Users\Zze\AppData\Local\Temp\dd_vs_community_20161013195641.log
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER20D.tmp.WERInternalMetadata.xml
These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\Critical_vs_community_75ac19b40c3da27636257b32fb6b4ecbe966b21_00000000_113e12a7
Analysis symbol:
Rechecking for solution: 0
Report Id: f78c6647-9122-11e6-b683-408d5c133079
Report Status: 0
Hashed bucket: 71915888af88bf9f710ea44204d852b2
I had the some problem. I resolved launched the vs_communnity.exe with the parameter /log
vscommunity..exe /log log.txt
Then I opened the log and I discovered that was a font problem. I found this support on microsoft website https://support.microsoft.com/en-us/kb/2978135 and finally I resolved the issue.
I hope this can help you

Visual Studio 2013 devenv.exe crashes randomly on TFS activities

Generally "Source Control Explorer" and "Team Explorer" windows can be opened but sometimes this windows cause crash independently. If it doesn't I try to get latest version but it crashes after downloading some files.
Non-controlled solutions work fine but if I can try to open a controlled solution VS crashes on loading solution.
This problem started today. I use Windows 10 but migrated from Windows 8.1 a couple of months ago. In this morning windows session could not start when I've entered my password to windows login screen. So I've resetted my computer by clicking reset button. But Windows 10 re-run its migration tool and I think that it repaired some applications. I checked the Programs and Features out then a lot of apps seems installed today.
Repaired my VS install from Programs and Features but it didn't solve. Tried WinThruster, it found issues over 1000 but it didn't solved, too.
VS adds these three logs together to event viewer when app crashes.
Error:
Fault bucket 128975310163, type 5
Event Name: CLR20r3
Response: Not available
Cab Id: 0
Problem signature:
P1: devenv.exe
P2: 12.0.40629.0
P3: 5590c8a4
P4: mscorlib
P5: 4.6.1038.0
P6: 5615c1ac
P7: 3b10
P8: 7
P9: System.InvalidProgramException
P10:
Attached files:
C:\Users\Onur\AppData\Local\Temp\WERF382.tmp.WERInternalMetadata.xml
C:\Windows\Temp\WERFF3A.tmp.csv
C:\Users\Onur\AppData\Local\Temp\WERFF3B.tmp.appcompat.txt
C:\Users\Onur\AppData\Local\Temp\WERA2A.tmp.WERDataCollectionFailure.txt
These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_devenv.exe_d949c0dbc7d16a4f9e0b0cdb431782229fc6a1_5b0449f2_1c961310
Analysis symbol:
Rechecking for solution: 0
Report Id: 1b1069cb-61a5-4133-881d-e3ae5b11ae68
Report Status: 4105
Karma demeti (*): 944bc6d8e7edc70b70df076898124c29
(*) I translated from turkish but couldn't find the english equivalent of "Karma demeti" after googling. Maybe it can be "Mixed bucket".
Error:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidProgramException
Stack:
at Microsoft.TeamFoundation.VersionControl.Client.QueuedActionLimiter.DeliverAction(System.Object)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Info:
Faulting application name: devenv.exe, version: 12.0.40629.0, time stamp: 0x5590c8a4
Faulting module name: KERNELBASE.dll, version: 10.0.10586.0, time stamp: 0x5632da1c
Exception code: 0xe0434352
Fault offset: 0x000bd8a8
Faulting process id: 0x1ae4
Faulting application start time: 0x01d13672bb0a871a
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
Faulting module path: C:\WINDOWS\SYSTEM32\KERNELBASE.dll
Thanks in advance.
First, make sure you have upgraded both your TFS and VS to the latest edition of its version.
Then check whether you can reproduce this issue on another client machine, if the issue only occurs on your client machine, you can try resetting VS settings and add-in settings (devenv /ResetSettings) and (devenv /ResetSkipPkgs), try rebuilding all templates (devenv /setup).
If you already use the lasted Update, Update 5, you should report this crash on connect. You should also provide a crash dump. To do this you can configure Windows Error Reporting to generate dumps or install Procdump as post Mortem Debugger by running procdump -ma -i C:\dumps. Now repo your crash and if you got a dump, zip the dmp and attach it to the report.

Configuring IIS Express fails with configuration file error

I got this error when I created a website in Visual Studio 2013:
File name: redirection.config
Error: Cannot read configuration file
I had the similar issue could not even start a web project in vs 2013
So i tried the following
Unable to create a new web project in Visual Studio 2013
Had same issue in visual-studio 2015. Tried many solutions, used Process Monitor to identify a missing directory structure, copied the 'config' folder -
C:\Program Files (x86)\IIS Express\ -> C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\
Also using the change iis express user home fix -
eg. C:\Program Files (x86)\IIS Express\iisexpress.exe /userhome:c:\temp\iisexpress
Need to delete existing iisexpress folder, usually in [home]\documents folder.
I had the same problem. I looked in the file, and it was corrupted, only filled with NUL.
Fortunately I was able to recover the same file from my old PC:
<configuration>
<configSections>
<section name="configurationRedirection" />
</configSections>
<configProtectedData>
<providers>
<add name="IISRsaProvider" type="" description="Uses RsaCryptoServiceProvider to encrypt and decrypt" keyContainerName="iisConfigurationKey" cspProviderName="" useMachineContainer="true" useOAEP="false" />
</providers>
</configProtectedData>
<configurationRedirection />
</configuration>
Probably you can even leave the providers tag empty.

Resources