Visual Studio 2012 random debugger startup failure: Unable to start program - c#

I have a managed startup project and quite often when I press F5 the Visual Studio complains with dialog "Unable to start program '...\test.exe'" (no additional information). The process test.exe is actually started in the background but when I try to attach the debugger to it, VS complains that debugger is already attached. To be able to debug again I have to manually kill the test.exe process and restart the VS. I run VS as Administrator. Thanks!
Important information:
Running on Windows Server 2008 x64.
Application is x64.
Running VS as Administrator.

The problem disappeared (almost completely) after uninstalling and installing the latest VS2012Pro. I had the same message again but just a few times since that.

Related

Which process to attach to debug the .NET winforms exe in visual studio 2008

I am using visual studio 2008 (32 bit. My machine is 64 bit). I've build an windows forms EXE application. Now I want to attach the process in visual studio so that when I run the EXE from Debug/Release folder of my project it should hit the breakpoints that I've set in my code which is currently opened in visual studio 2008.
I can see there is a process called MyApplicationName.vshost.exe but the attach button is grayed out.
The reason I wnat to debug the EXE is, I want to debug the EXE at run time. I am getting an exception when I run the EXE from Debug/Release folder but when I run through the code I didn't get any exception
Please let me know which process should I attache in VS2008 so that when I run my EXE from Debug/Release folder of my project it should hit the breakpoints that I've set in my code which is currently opened in visual studio 2008.
If you have the source code, I also suggest you debug your app directly, you could use the Exception throw under Debug->Exceptions window which could help you throw the Exception messages.
For host process, if possible, you could disable it under project property:
If you have to use the attach to process, please run VS as the admin, and then attach to your process directly:

Visual Studio 2010 Professional crashes after opening Forms

Hi i have very weird problem. My Visual Studio 2010 crashes when i try to open user controls wrote with Devexpress 12.1.8.
I tried to uninstall whole program, deleted folders, cleaned registry but crashes still happens.
When i try to open user control a windows appears "Microsoft Visual Studio has encountered a problem and needs to close." I checked in event manager and i get this error:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AggregateException
Stack:
at System.Threading.Tasks.TaskExceptionHolder.Finalize()
One more weird thing about this situation is that after windows popup i can see that the control has opened in background.
What can i do to stop this error?
EDIT: I checked and it seems that i can open controls writed with devexpress 13.1.6. Maybye it is a problem with devexpress? Is there a way to totally uninstall devexpress?
It sounds like you might have a problem related to a third party package or add-in, possibly not DevExpress related. Here are some things to try:
Running Visual Studio as an administrator.
You can try running devenv /Resetsettings (see here) in a Command Prompt which should fix any corrupted settings
Try running devenv /ResetSkipPkgs (see here) which will avoid loading any problem packages.
Try running devenv /Safemode (see here). If it works in safe mode then the problem is most likely a third party add-ins or package.
You can also try Devenv.exe /log ". This will generate a file called ActivityLog.xml which might give you further clues.
If none of those help then try repairing Visual Studio from the Control Panel.

just in time debugger error when running windows application

i run application from windows without visual studio 2010. I just run app.exe file and i get this error.
how can i disable this and get real error?
Do what the message tells you - enable Just In Time debugging in Visual Studio, then you'll be able to see the actual problem.

Visual Studio 2010 Extension - Cannot break execution in Experimental Instance

I am trying to break execution with Debug points in a Visual Studio extension running against a Visual Studio 2010 Experimental Instance.
For some reason, when trying to break execution, I receive an error:
"Unable to break execution. This process is not currently executing the type of code that you selected to debug."
Oddly enough, I can debug without any problem in a Visual Studio 2005, and 2008 Experimental Instance.
Has anyone else ran into this with VS 2010?
It sounds like the problem is that you're setup to debug only managed code in your VS 2010 project file. If you're setup to debug only managed you'll get this message if VS is currently executing native code (VS spends a good portion of it's time in native code).
To fix this do the following
Right Click on the project and select Properties
Go to the Debug Tab
Check "Enable unmanaged code debugging"
I re-installed Visual Studio 2010 and the SDK. This seemed to work at first, but after changing a source file and launching the Debugger, I was unable to break execution yet again.
I went to Tools->Options and unchecked 'Only build startup projects and dependencies on Run'. This fixed it! This must have something to do with an extension solution that supports both VS2008 and VS2010.

JIT Debugger dialog window is not showing after starting a service

I am currently working on a windows service, after installing the service via installutil.exe, as I start the service in services.msc there's no JIT window indication if I would want to debug it or not.
And once the service is running and tried the "Attached to process" in visual studio, It will say an error like Unable to attach to the process. Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator. Eventhough I'm an administrator in my Local.
My problem is similar in this thread on MSDN thread.
But I am using Visual Studio 2008. I've tried all possible solution after posting this questiion here.
I've tried
adding <system.windows.forms jitdebugging=true/> to my config file
checking Tools->Options->Debugging
checking registry settings
run visual studio 2008 as administrator, attached the process and still throwing the insufficient priveleges error.
Any ideas?
I Hope someone could help me.
Thanks,
Sherwin
Just do what the error message is saying -- run Visual Studio as administrator. To do that, right click on Visual Studio icon in start menu and select option "Run as administrator".

Categories

Resources