Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 crashes

Visual studio that won't be repaired...
Everytime I want to compile an app on vs 2015 - it crashes. Even if I want to compile the main function or write somthing to it, there appears a window, which says

Visual Studio 2015 has stopped working

It goes same on 2013 Express version. I have a clue why it won't work: when I open Team Explorer, an error appears:

Page '3185ed96-1cbd-4381-a439-636973542e50' not found.

I tried everything I have found in the internet and trust me - nothing worked. I also tried some command prompt commands:

devenv.exe/ debug  
devenv.exe/ resetsettings  
devenv.exe/ instalvstemplates  
devenv.exe/ resetskippings  
devenv.exe/ resetuserdata  
devenv.exe/ setup  
devenv.exe/ safemode  

Debug mode gave me some info about the error:

An unhandled exception of type 'System.InvalidOperationException' occurred in mscorlib.dll

Additional information: The service 'Microsoft.Internal.VisualStudio.Shell.Interop.SVsUIThreadInvokerPrivate' must be installed for this feature to work. Ensure that this service is available. HRESULT = 0x80004002

An exception was encountered while constructing the content of this frame. This information is also logged in "C:\Users\admin\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml".

Exception details:
System.ArgumentException: Parametr is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, UInt32 flags)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, ProvideToolWindowAttribute tool)
   at Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create, ProvideToolWindowAttribute tool)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Guid& toolWindowType, Int32 id)
   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow(Guid& toolWindowType, UInt32 id)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()

But still nothing I was able to find has worked.

I reinstalled VS and repaired it - still nothing. Then I have downloaded some .dlls, microsoft visual c++ redistributable packages and used Ccleaner to clean registry. I think it's a very strange error; if you could advise me on a fix please?

like image 796
Phastasm Avatar asked Jun 24 '15 08:06

Phastasm


People also ask

How do I fix Visual Studio from crashing?

Please open CMD and go to C:\Program Files (x86)\Microsoft Visual Studio\2019\version name\Common7\IDE folder, run the command: devenv /safemode to run your Visual Studio in safe mode. Then, create a new project and check if the installed extensions lead to the problem or not.

How do I start Visual Studio in safe mode?

All versions of visual studio can be started with a set of arguments. Using devenv.exe /SafeMode allows you to run any version of visual studio (devenv.exe) in SafeMode that will disable 3rd party plugins. You can either run devenv.exe /SafeMode using the command line or by creating a new shortcut.


3 Answers

Uncheck [Tools->Options->Environment->Automatically adjust visual experience based on client performance]

Uncheck [Use hardware graphics acceleration if available]

You can leave [Enable rich client visual experience] checked

I was having a lot of problems anywhere from random crashes, to crashing my Intel Graphics display driver, I turned it off and I have had no problems, it actually runs better. Maybe it will work for you

like image 114
user3141117 Avatar answered Oct 20 '22 03:10

user3141117


I was facing the same issue for team explorer. First of all close all instances of visual studio and then try:

devenv /resetuserdata

Run above command at the command prompt; typically something similar to "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE"

like image 21
Ashu_90 Avatar answered Oct 20 '22 03:10

Ashu_90


Possible fix for these type errors:

try to update device driver (Intel HD Graphics) or Run with graphic driver if u got switch based or vice versa.

main executable is located

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe

Also if you are getting these type error on installation exe you can fix it the same way enter image description here

like image 25
qwr Avatar answered Oct 20 '22 03:10

qwr