Visual Studio 2012 RC "psapi.dll" - Fatal Error On Startup - visual-studio-2010

After installing VS2012 RC on my dev PC, I keep getting this error on the splash screen on startup of the application, immediately after selecting the appropriate Environment Setting.
Unable to load DLL 'psapi.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
VS2010 threw this error immediately after the VS2012 threw the error. (VS2010 worked well prior to the 2012 Installation). Both applications now don't even work at all.
Things I've tried:
Tried running devenv with all the switch cmds of VS I know - /Resetsettings, /ResetSkipPkgs, /safemode
Uninstalling and installing ALL versions of VS on my PC (2008, 2010 and 2012) - after clearing the %temp% windows folder.
Formatted my PC and reinstalled all versions of VS again from the scratch.
PLEASE NOTE : The Visual Studio 2012 worked when I restarted my windows in Safe Mode.
My PC is a Lenovo i3, 4G RAM, 64Bit Windows 7.
Please help me as I have wasted days trying to solve this issue to no avail.
Thanks a lot.

Related

Visual Studio Remote Debugger Failed to Start

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.

Visual Basic Command Line Compiler has stopped working.I cannot compile my project

I am working with visual studio 2010. Its working fine but now showing this popup "Visual Basic Command Line Compiler has stopped working" . I have scanned malware with 'Malwarebytes' & reinstalled visual studio but still facing this problem. I cannot compile my project. I have installed Visual Studio 2015 Community , Its could be any problem ?
After Click on Debug I am getting this message:
An unhandled win32 exception occurred in vbc.exe The Just-In-Time debugger was launched without necessary security permissions. To debug this process, the Just-In-Time debugger must be run as an Administrator. Would you like to debug this process? Process Name: C:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc.exe
Thank you for your help in advance !!
I have updated windows 8.1 to windows 10. Now my issue is resolved.I tried lot of things & wasted 2 days with this issue but couldn't solve this. After that i updated my windows. I didn't find out what was the actual issue.
For anyone having this issue, this Microsoft knowledge base entry solved the issue for me:
Known issue for security updates 3098779 and 3097997 for the .NET Framework 4.5.1 and 4.5.2 after you install the .NET Framework 4.6 on Windows 8.1, Windows RT 8.1, and Windows Server 2012 R2

Visual Studio 2010 IDE exception thrown by the target of invocation

I can't launch VS 2010 (on Windows XP), every time this error "exception thrown by the target of invocation" keeps showing.
I have checked the length of PATH variable, it is under 2048 so this is not the cause.
What else might cause the problem?
seems like Windows explorer causes this issue, I am not sure.
My OS: Windows 2008 R2 (using as desktop), running VS 2010 and VS 2013 both.
When I started VS 2010 today morning, got this exception:exception thrown by the target of invocation.
I killed the explorer.exe from task manager, and started again use the task manager File->New Task -> Explorer.exe.
Start VS 2010 - Worked fine.
Hope this helps

Visual Studio 2013 Ultimate won't install Windows 7 SP1

I want to install Visual studio 2013 Ultimate, but an error message pops up saying:
You need a newer version of windows
After a little research about the known installation issues for VS2013, I updated to SP1 from the Microsoft website and installed IE10, but I am still unable to install it.
SOLUTION FOUNDED:
I have found the solution to my problem, simply by changing the Visual Studio installation File from the C (system drive) it was in the desktop, to the D (other stuff drive) and relaunching the installation again, magically the installation begins without any issues.

Visual Studio 2010 RTM crashes on startup with "Exception has been thrown by the target of an invocation"

On startup Microsoft Visual Studio 2010 RTM Ultimate displays the splash screen then crashes with "Exception has been thrown by the target of an invocation".
See original MSDN forum post
This is what I have tried so far on my Win7 64x machine:
VS Repair
VS Reinstall
System restore to before issue
Modifying "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\General" UILanguage value to 0x409(1033)
Modifying the environment variable WINDIR from %SystemRoot% to C:\WINDOWS
Deleting the key WINDIR REG_SZ in HKEY\LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment then recreating as WINDIR REG_EXPAND_SZ C:\WINDIR
/reset /resetsettings /resetuserdata /safemode
Yet to my dismay, the issue still persists, any other ideas?
-Additional info-
The issue arose after a windows update:
-Update for Microsoft Visual Studio 2010 Tools for Office Runtime Redistributable x64 (KB982305)
-Update for Windows 7 for x64-based Systems (KB976422)
There is a work around for this for temporary relief. Try restarting explorer.exe
Open task manager
Process tab -> find explorer.exe
Do end Process
Go to Applications tab -> New Task... -> type explorer.exe
Wait til Task Bar become visible.
Now start VS. I hope you won't get any error.
A colleague of mine had this issue on Win7 x64 recently. He was able to fix it by uninstalling VS 2010, uninstalling all versions of .net framework, and deleting the folders they had resided in. Then he installed VS2010 again. He also reinstalled the VS2010 power tools as well. After doing these he was able to open VS 2010 again. Unfortunately he did all of the above before retrying VS2010, so we're not sure which of the above steps actually fixed it. But they're worth trying before reinstalling Windows. He originally encountered the issue after he had run chkdsk in the morning. Good luck!!
install SP1
This problem occurs if you have not installed Microsoft VS10 SP1 and have turned on Automatic Windows Update.
SP1 is a .NET framework which needs to be installed.
PS: restart your box after intallation.
Here is the link to download: -- http://www.microsoft.com/en-us/download/details.aspx?id=23691
It should work!!! :) :)

Resources