My C# application crashes for "access violation" on windows module. I tried to run it by Visual Studio debugger, but there I could not get any log or dump.
How can I use Visual Studio for debugging this kind of problem?
Related
I am trying to run my app on my windows phone but keep getting the following error.
Unexpected error creating debug information file 'c:\Users\Admin\Documents\Visual Studio 2012\Projects\PhoneApp1\PhoneApp1\obj\Debug\PhoneApp1.PDB' -- 'c:\Users\Admin\Documents\Visual Studio 2012\Projects\PhoneApp1\PhoneApp1\obj\Debug\PhoneApp1.pdb: The process cannot access the file because it is being used by another process. C:\Users\Admin\documents\visual studio 2012\Projects\PhoneApp1\PhoneApp1\CSC PhoneApp1
Try restarting Visual Studio again, or building your app first using Release configuration and then again using Debug configuration. It will solve your problem.
This is happening because Visual Studio has created a sort of "lock", it can happen sometimes.
Change the debug in the above picture to Release.
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.
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.
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.
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".