Editing a File "Microsoft Visual Studio 2010 has stopped working" - visual-studio-2010

I'm having trouble with my visual studio 2010. When I open a file and try to edit it, it crashes and gives the following message.
Microsoft Visual Studio 2010 has stopped working.
If I choose to debug, visual studio just-in-time debugger says:
An unhandled Microsoft .NET Framework exception occurred in devenv.exe [2812].
System.InvalidOperationException was unhandled Message: The calling
thread cannot access this object because a different thread owns it.
The following was found in the event viewer:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an internal error in the .NET Runtime at IP 6F29B036 (6F250000) with exit code 80131506.
Faulting application name: devenv.exe, version: 10.0.30319.1, time stamp: 0x4ba1fab3
Faulting module name: clr.dll, version: 4.0.30319.296, time stamp: 0x50484aa9
Exception code: 0xc0000005
Fault offset: 0x0004b036
Faulting process id: 0xafc
Faulting application start time: 0x01ce44dbc5e338e5
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: 09015696-b0cf-11e2-a33a-0023aee722ef
I have tried opening several different file types: xml, aspx, html, vb. They're all causing it to crash. I have run visual studio 2010 in safe mode and opened a single file, outside of a solution and it's crashing before I even edit the file.
It's only started doing this today. I have tried running the repair tool but it has made no difference. I have installed one thing on my machine that may have caused the error. Titanium Studio. Previous to that being installed visual studio 2010 was running okay.
Thanks
Leah

I managed to fix this issue by requesting a hot fix from windows.
Knowledge Base Article: FIX: "Faulting module name: clr.dll" error message when you run a Microsoft .NET Framework 4-based application
Hot Fix Request: DevDiv955340

I had the same error, imediately when Visual Studio 2010 was starting. Only rebooting helped sometimes.
I solved it by removing .NET completely and reinstalling it.
Be aware that if you updated to .NET 4.5 this includes .NET 4, so you have to remove and reinstall .NET 4.5

Related

Does anyone have an issue with Visual Studio 2015 Data Tools crashing when running package?

I can build SSIS packages without any issues, but almost every time I run the package from Visual Studio it will crash. Sometimes it will crash within seconds of running the package, other times it will run a few minutes and then crash.
The only error being logged to the Windows event log is:
Faulting application name: devenv.exe, version: 14.0.25420.1, time stamp: 0x57685d85
Faulting module name: ucrtbase.dll, version: 10.0.17763.1, time stamp: 0xc3ae1887
Exception code: 0xc0000409
Fault offset: 0x000a5d0b
Faulting process id: 0x5bd4
Faulting application start time: 0x01d4cdf2158d4ebd
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report Id: 760baa61-e6fb-4646-83f5-94ed566b1d4a
Faulting package full name:
Faulting package-relative application ID:
I have tried repairing and reinstalling Visual Studio (multiple times), reinstalling Data Tools, and also reinstalling Visual C++ 2015 Redistributable (as I saw comments from others online with what I thought would be a similar ucrtbase.dll issue. This is a work computer, and others here have had the same issue in the past, but it seems to have been resolved for them after performing some of the steps I have already done. For a while we thought it was related to using the Balanced Data Distributor, but I have removed that altogether and am still having issues. Any help/ideas would be greatly appreciated.
Environment:
Window 10 version 1809
Visual Studio 2015 update 3
SQL Server Data Tools 2015
Kingswaysoft v10.2
This is not the best (or right) answer, but rather a workaround. As I cannot perform my job with a buggy VS, I decided to try VS 2017 (with SSDT 2017, etc.) As of the past couple hours that has been working and has not crashed on me (yet). My workaround for now, until we can fully move to 2017, will be to create new projects in 2015 so that other developers will continue to be able to work with me, but then switch over to 2017 for testing.
If anyone comes around with a real solution to the issue (my guess is it's some combination of VS, SSDT, Windows, and other updates), please share.

Visual Studio 2010 crashes

Visual Studio 2010 stops working every time I am creating or adding a new project and crashes with "Microsoft Visual Studio 2010 has stopped working".
On details I get the following errors: "
Problem signature:
Problem Event Name: APPCRASH
Application Name: devenv.exe
Application Version: 10.0.40219.1
Application Timestamp: 4d5f2a73
Fault Module Name: clr.dll
Fault Module Version: 4.6.1087.0
Fault Module Timestamp: 583e5b8e
Exception Code: c0000005
Exception Offset: 000030d0
OS Version: 6.3.9600.2.0.0.272.7
Locale ID: 1033
Additional Information 1: 0e72
Additional Information 2: 0e720e4bb45f9178e5a9d38daa53fc02
Additional Information 3: f679
Additional Information 4: f679a242f56e8d70edce702dbd5ef2ed
Try running Visual Studio 2010 in safe mode.
To do this, please take a look at this post: how to run visual studio without plugin and all third party feature

ScriptedSandbox64.exe has stopped working - Visual Studio 2015

This is the second time I've seen the error "Scripted Sandbox64.exe has stopped working" in Visual Studio 2015.
In my particular case, I was building a Windows Forms application and you place the application into the system tray in Windows. This application also writes files using System.IO. The project has nothing more than that. Visual Studio 2015 Community Edition crashes.
Disable the Diagnostic tool under
Tools -> Options -> Debugging -> General -> Enable Diagnostic Tools while debugging
More information: https://stackoverflow.com/a/31904957/2856307
Just adding the information that #Bahien Nguyen provided in his answer.
Reference:
http://www.expertdebugger.com/2016/01/19/how-to-fix-visual-studio-2015-error-faulting-application-name-scriptedsandbox64-exe-has-stopped-working/
How to fix Visual Studio 2015 error Faulting application name ScriptedSandbox64.exe has stopped working
I am trying to debug a windows application in Visual Studio 2015. I have already installed the latest updates. After the debugging starts, I get the following pop up error ScriptedSandbox64.exe has stopped working A problem caused program to stop working correctly.
The event viewer is showing the following details
Faulting application name: ScriptedSandbox64.exe, version: 14.0.24720.0, time stamp: 0x564e98d0
Faulting module name: ScriptedSandbox64.exe, version: 14.0.24720.0, time stamp: 0x564e98d0
Exception code: 0xc0000602
Fault offset: 0x000000000000f933
Faulting process id: 0x51c
Faulting application start time: 0x01d152888b333a1c
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies\ScriptedSandbox64.exe
Faulting module path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies\ScriptedSandbox64.exe
Report Id: 029bb0e0-771e-4046-bbc1-2c69686f144a
Faulting package full name:
Faulting package-relative application ID:
IDE gets locked up due to this and the only option is to click on close program.
Solution
This process is launched during debugging. Stop Visual Studio debugging session.
Disable the Diagnostic tool under Tools->Options->Debugging->General disable the option Enable Diagnostic Tools while debugging
Debugger still works after unchecking the above option.ScriptedSandbox64.exe no more throws any errors.
Dear Reader,
Please share your feedback about this article . This will enable me to improve this for the benefit of other readers.
Solution for now is to install Visual Studio 2013 Community Edition and retrofit the project by changing the *.csproj file XML.
For anybody who has this problem:
I experienced the same problem debugging a WPF application today in VS2015 Community Update 2. I am sure that I did not have this before but I dont know how it crept back in. As mentioned before, disabling the Diagnostic Tools solves the problem. Unfortunately, this is not an option for me. Luckily, installing the "Update for Microsoft Visual Studio 2015 Update 2 (KB3151378)" solved the problem for good. Link: https://msdn.microsoft.com/en-us/library/mt695655.aspx?f=255&MSPPError=-2147217396
I had a very similar issue, same dialog as OP posted, but then I encountered the same when running the application in debug mode. That helped me find what was causing this error in my application.
I traced it down to an iteration through DataGridViewRows, which would contain about 1800+ rows. My iteration was to set a checkbox value to true, but I ended up not needing to do that anyways. Once I removed this, the application would run okay.

Visual Studio 2008 crashing after converting 2005 SSRS Project

We recently migrated to SharePoint 2010 and I am updating a few reports. The .rdl files were developed in Visual Studio 2005. I am converting them to VS 2008 and deploying them to the new SP site.
Some of the reports convert just fine. Others will open just fine, but when I attempt to open the data source or preview a report it crashes.
First a message windows pops up saying Visual Studio has stopped working and gives this error message:
Problem signature:
Problem Event Name: APPCRASH
Application Name: devenv.exe
Application Version: 9.0.30729.1
Application Timestamp: 488f2b50
Fault Module Name: StackHash_3ab9
Fault Module Version: 6.1.7600.16915
Fault Module Timestamp: 4ec49d10
Exception Code: c0000374
Exception Offset: 000ce903
OS Version: 6.1.7600.2.0.0.274.10
Locale ID: 1033
Additional Information 1: 3ab9
Additional Information 2: 3ab916335f95035652d49d418d47682b
Additional Information 3: 7e6c
Additional Information 4: 7e6c28d0938d251b2561c357b5643f43
If I debug it I get the message: "Unhandled exception at 0x7738e903 in devenv.exe: 0xC0000374: A heap has been corrupted."
If I hit continue I get no more error message and the task executes successfully (opening the data source in this case)
Any ideas on what the problem is?

Why is Visual Studio 2010 crashing in the HTML designer?

Fairly consistently when I'm using the HTML designer for editing ASP.NET files that contain essentially text and paragraphs, usually after a prolonged "Requesting data..." in the status bar, Visual Studio 2010 will just crash completely. No error message is shown, only the usual Visual Studio has encountered a problem dialog.
I have two extensions installed - PowerCommands and Productivity Power Tools. No other plugins. I'm fairly sure (though not 100%) that it crashed before these were installed too.
Here's an example event log:
Faulting application name: devenv.exe, version: 10.0.30319.1, time stamp: 0x4ba1fab3
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x72006500
Faulting process id: 0x5c8
Faulting application start time: 0x01cbbce486b11b94
Faulting application path: c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
Faulting module path: unknown
Report Id: 0999f614-28d8-11e0-81d1-6cf04975111f
EDIT
I may have found the problem. Someone had installed the spelling checker extension from the extension manager in Visual Studio. I've uninstalled it and since have had no crashes.

Resources