Running test in Visual Studio gives Excel errors - visual-studio-2010

I am using C# with Selenium for my tests, and Excel Interop for reporting test results.
When I run my test in Visual Studio, it shows the following error:
Clicking on Debug, opens the Visual Studio Just-In-Time Debugger, and when I debug, I get the following messages:
When unhandled exception at 0x7c812afb in excel.exe: 0xe0000002: 0xe0000002.
An unhandled win32 exception occurred in excel.exe[3920].
Has anyone experienced such error? Can anyone suggest me anything to resolve this? Thanks in advance.
Event Viewer shows:
Faulting application excel.exe, version 12.0.6545.5000, stamp 4c654035, faulting module ntdll.dll, version 5.1.2600.6055, stamp 4d00f27d, debug? 0, fault address 0x00019af2.

Maybe check out of the problem is not ntdll.dll? A quick seach on google gave me this page:
http://pcsupport.about.com/od/fixtheproblem/a/ntdlldll.htm

Related

IntelliTrace: Uncaught exception during type initialization

Visual Studio 2015 Enterprise Update 3.
.Net 3.5 SP1, AnyCPU
Today I often get this error for my project:
Microsoft Visual Studio
Process:
D:\projects\vs-2015\sharp_sandbox\sharp_sandbox\bin\Debug\sharp_sandbox.vshost.exe
Automatically attaching to support this behavior was not completely
successful.
Successfully attached these type(s) of code: Managed
Failed to attach to these type(s) of code:
IntelliTrace: Uncaught
exception during type initialization.
How can I solve this problem?
Try to check/uncheck Enable native code debugging configuration option. You will find it in Enable Debuggers section it in Debug tab in the project properties.

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.

Editing a File "Microsoft Visual Studio 2010 has stopped working"

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

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?

A first chance exception of type 'StructureMap.StructureMapException' occurred in StructureMap.DLL

Hello I'm getting this exception thrown at me whenever I try to test a web application via visual studio, any ideas why? I'm building a project using MVC3 model and visual studio 2010
Exception: A first chance exception of type 'StructureMap.StructureMapException' occurred in StructureMap.DLL
First chance exceptions might occur while debugging. They might be handled properly by your code and never propagate when running the application normally but nevertheless Visual Studio shows them in Debug mode. If you don't want to be bothered you could disable them in Visual Studio and they will no longer appear.

Resources