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.
Related
I recently updated to Visual Studio 16.5.0 Preview 2.0 and I'm getting the following error.
I'm trying to debug a project for an Azure Function. Has anyone encountered this before?
A fatal error has occurred and debugging needs to be terminated. The
debugger was configured to use the desktop CLR (.NET FRAMEWORK)
Managed debugger, but the target process loaded the CoreCLR (.NET
CORE) runtime. To debug this project, configure it to use the 'Managed
(CoreCLR)' debugger.
Here is a similar issue about this.
Please try follow the steps to configure it to use the 'Managed (CoreCLR)' debugger.
In Visual studio -> Debug menu -> Attach to Process -> in "Attach to" field, click the "select" button -> then in the "Debug those code types", select "Managed (CoreCLR)".
The screenshot as below:
I have a Xamarin app for which I have been debugging the UWP app on my computer for testing.
I've been having difficulties debugging. I keep getting a 'No Symbols Loaded' error which goes onto say one of the following errors:
UWPHost.pdb not loaded
or
wkernelbase.pdb not loaded
Typically, restarting or rebuilding Visual Studio will sometimes resolve the issue temporarily. As a result of this, development has been an incredibly painful process.
Any idea how this sort of problem can be avoided?
Additionally, if it's not the PDB errors I get this instead:
Unable to activate Windows Store app ... 'The app didn't start'
These errors can happen with absolutely zero changes.
I'm new to Xamarin so I could be missing something blindingly obvious here.
Something I already tried was checking the 'Microsoft Symbol Servers' option via Visual Studio options.
I'm using Visual Studio 2019.
UPDATE:
I changed the following Visual Studio option:
Tools -> Options -> Debugging -> General -> Enable .NET Framework source stepping
This allowed me to see the following error:
Unhandled exception at 0x7747C762 (KernelBase.dll) in Framework.UWP.exe: 0xE0434352 (parameters: 0x8007000B, 0x00000000, 0x00000000, 0x00000000, 0x03B40000). occurred
Yesterday I studied a little MVC5 before bed.
Today, I open Visual Studio 2013 and while loading, the following exception occurs:
Exception Details
System.ArgumentNullException was unhandled
Message: An unhandled exception of type 'System.ArgumentNullException' occurred in mscorlib.dll
Additional information: Buffer cannot be null.
Parameter name: buffer
I have already repaired Visual Studio and nothing has changed.
Does anyone know what's going on?
The Update 5 worked for me. However you need to be part of Dev Essentials in order to download this update.
https://my.visualstudio.com/Downloads?q=Visual%20Studio%202013%20Update%205
Appears to be fixed now, although I see no confirmation on https://social.msdn.microsoft.com/Forums/en-US/46728392-212b-405e-aea0-2ab02f91cd1f/visual-studio-2013-crashes-on-startup?forum=visualstudiogeneral
I'm running VS2013 U3 and able to startup without issue. A colleague is able to run VS2013 as well.
I am using Visual Studio 2017 Enterprise, on a .NET Core xUnit test project, and I was trying to debug some of the tests, and I encountered a popup box with the following message, how do I fix this?
Cannot debug some of the code in process dotnet.exe [21084]. See below for status.
IntelliTrace code failed (0x80131509).
Managed (CoreCLR) code succeeded.
Click OK to continue debugging the remaining code. To disable deubgging the failed type(s) of code in the future, change the corresponding setting in the project properties dialog."
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.