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".
Related
I am running visual studio 2017 community version 15.7.6.
I am running an asp.net web application in debug mode. When I hit the "Stop" button to stop the debugger, it continues to run the program. I have to close Visual Studio completely to get the program to close.
Things I have tried:
Tools -> Options -> Projects and Solutions -> Web Projects -> Stop debugger when browser window is closed is checked.
Enable Edit and Continue under in the .csproj is checked.
I have closed IIS Express in the System Tray.
Running my application using the Visual Studio 2013 debugger produces the correct behavior, so this issue is just with the VS 2017 debugger.
Nothing works in VS 2017 except closing visual studio completely.
Does anyone know what is going on?
Right-click the IIS Express icon in the Notification Area (aka System Tray), then, under "View Site", hover over your web application. In the fly-out menu, choose "Stop Site". That usually works for me.
As far as I know, Visual Studio just does this sometimes and there's not anything you can do about it. If it's happening consistently I would try reinstalling and/or reverting to older versions to see if the issue persists.
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.
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.
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.