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.
Related
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?
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:
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 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".