In my visual studio, when I am trying to run Test Project it is throwing this exception - Exception has been thrown by the target of an invocation
Previously, I used to connect to TFS through this. Now, I do not have access to connect.
I am running Visual Studio 2010.
Thanks.
I was able to fix this by downloading and installing Team Explorer 2010 http://www.microsoft.com/en-us/download/details.aspx?id=329 somehow it repaired things.
Also, some people report that running devenv /resetuserdata from a VS command prompt can help. did not work for me.
Related
I recently installed Visual Studio 2017 on my laptop (running Windows 10). I have a C++ project using the OpenCV and Eigen libraries, and it seems to compile correctly, but when I try to run the Local Windows Debugger, I get an error message that says:
Visual Studio Remote Debugger (MSVSMON.EXE) failed to start. If this problem persists, please repair your Visual Studio installation via 'Add or Remove Programs' in Control Panel
I ran the Repair tool it suggested, with no luck. I also checked for a solution online, and came across a support page (Link). I tried turning off my anti-virus and firewall as per the suggestions on the support page, but that didn't get rid of the error message. My laptop is brand new, and I just installed Visual Studio and the Remote Debugger, so I don't think it would be the case that the version of the Remote Debugger doesn't match with that of Visual Studio. All of the other suggestions are for people doing remote debugging, but I'm doing a local debug.
Any help/suggestions on resolving this issue would be appreciated.
Firstly close the Visual Studio.
Goto AppData\Local\Microsoft\VisualStudio and select version (Ex: VS 2015 has 14.0 folder).
Then delete ComponentModelCache folder.
Start the Visual Studio.
Find what's preventing msvsmon.exe from running.
I encountered this error in Visual Studio 2019 while trying to start debugging a .net 5 console application. I tried to run C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Remote Debugger\x64\msvsmon.exe and found that User Access Control dialog opens and is asking to run it as an administrator. So two solutions were possible for me, either run VS2019 as Administrator or remove the Run this program as an administrator setting for msvsmon.exe.
Recently started using Visual Studio 2012, converting SSIS packages from 2008, and seem to be unable to set breakpoints in Script Tasks. The error we're receiving says
Cannot start debugging. Pre-debugging negotiations with Host failed.
Cannot seem to find any information about this error, or what's causing it. There is also a brief flash of a dialog box that says
Visual Studio has encountered an unexpected error
but that disappears quickly.
This issue has been resolved. The input parameters were set incorrect and hence was failing. It has been fixed now
I think you install new version of Visual Studio you just have to uninstall the Visual Studio tools for Application for the new version then repair the Visual Studio tool for Application 2012 and every thinks will be good
Visual Studio 2013 is crashing with an exception - An exception was thrown by a taskscheduler.
I am unable to resolve this issue, searched but could not get any useful information on this.
Need help to resolve it.
many time when we update our .NET Framework then this problem is occurred. Check if you update your version of .NET Framework then uninstall that and also repair visual studio.
I could not even uninstall/repair the Visual Studio. When i clicked on the Visual Studio from the Control Panel, even the uninstall wizard did not come up.
The solution which worked for me is:
When I saw the GAC_MSIL, many dll's were missing, then i copied System.dll, System.Core.dll and System.Reflection.dll into the GAC_MSIL. After copying these dll's , from the control panel the uninstall wizard started, and then i repaired the VS 2013. Then it worked.
I also saw this sort of crash in one of my VMs, in that scenario, i copied the above dll's and VS started working.
After downloading and installing Visual Studio 2012, I cannot launch it and keep on receiving error -- Exception has been thrown by the target of an invocation.
I cannot even get into the application. The VS2012 just can't launch. Is there anyway out? I have posted the question on Microsoft forum. But the answers are not very helpful or have been tried.
This question has been bothering me for few months.
Have you tried right clicking and running as administrator?
When I try to edit a build, mostly just to schedule it, visual studio 2010 crashes.
It gives the error: an unhandled win32 exception occurred in devenv.exe(5692)
Anyone know anything about this?
Have tried just creating a new build definition but get the same.
using TFS 2010 and VS professional 2010.
Thanks
The following hotfix from Microsoft may be helpful:
http://connect.microsoft.com/VisualStudio/feedback/details/650386/vs2010-sp1-crashes-on-build-details-from-team-foundation-server-2008-build-explorer
To verify if one of the extensions could be causing the crash, use Devenv Command Line Switches:
devenv /ResetSettings and devenv /SafeMode