Page '312e8a59-2712-48a1-863e-0ef4e67961fc' not found using Visual Studio 2012 - visual-studio

When I click on the home-icon of Team Explorer, I get the following error:
Page '312e8a59-2712-48a1-863e-0ef4e67961fc' not found instead of all the options.
I have this error since I reinstalled the Visual Studio 2012 Ultimate trial and installed the Visual Studio 2012 Premium edition. Repair and reinstall didn't work out.

To fix this, run this from the Visual Studio command prompt as administrator:
devenv /setup
It will not mess up your environment, and you can just continue to use Visual Studio afterwards was my experience.

I had the same error in Visual Studio 2013 and tried:
Control Panel → Programs .... → Visual Studio → Repair
It did not work
devenv /setup
It did not work
devenv /clearcache
devenv /updateconfiguration
It did not work
And then THE solution:
*Close all Visual Studio instances
Delete the %LOCALAPPDATA%\Microsoft\VisualStudio\12.0\ComponentModelCache folder
Start Visual Studio
It is explained in more detail in this blog post: When the EditorPackage does not load correctly

I had this error on Visual Studio 2013 Ultimate - Windows 8:
And I solved this problem running this command:
X64: devenv.exe /resetskippkgs
x86: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe /resetskippkgs

I faced similar issue. Running devenv /setup did not help me.
Just wanted to share some additional info:
At first, devenv /setup did not help me as well. Then I realized that I was using the wrong Visual Studio command prompt version.
Make sure that you run devenv /setup for the appropriate Visual Studio version.
For example: for Visual Studio 2013, use the "Developer Command Prompt" under the Visual studio 2013 "Visual Studio Tools" folder.
*And like it stated in the selected answer, run as administrator.

I ran the suggested command: devenv /setup. It didn´t work for me. (Visual Studio 2015)
Then after that I tried something different:
-> Run Visual studio as administrator, after ran the command.
Then the problem was solved.

Running Visual Studio as administrator resolves this for me.

After I reinstalled my Visual Studio 2012 Trial, I've never deleted the documents directory. In this directory there were some backup files. This maybe have caused the problem.
After deleting this directory and installing Visual Studio 2012 Premium again the problem was solved.

I faced a similar issue. Running devenv /setup did not help me.
I found Fixing 312e8a59-2712-48a1-863e-0ef4e67961fc-not-found-vs-2012. This link suggests that I might have recently installed some Visual Studio extensions, which might have corrupted the Visual Studio maintained cache. I uninstalled a couple of the latest Visual Studio extensions, and it solved the issue after Visual Studio's restart. Visual Studio is able to connect with TFS :-).
One can find Visual Studio extensions at menu Tools → *"Extensions and Updates...". Go to the "All" section under Installed section. It will show all Visual Studio extensions.

I had a similar error, and then I tried running "devenv /setup" and no good result. That's was because you don't not trying with specific version Visual Studio command prompt. I then opened the command prompt for the specific version "Visual Studio 2013", and the problem was solved.

I had the same exact issue in Visual Studio 2013. I renamed ComponentModelCache to ComponentModelCache2, and it fixed it.
C:\Users\{..}\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache

Related

Lost formatting in Visual Studio

I've lost all the color formatting in the source view in Visual Studio and can't get it back. I tried to import a new scheme but nothing helps.
Anyone?
Had this a while ago, these steps fixed it for me.
close all running instances of Visual Studio
open a "Run" window and type in devenv /resetuserdata
edit
perhaps this might work for you, its for 2012 but it might work for 2013
Here is a simple solution. Go to the directory where devenv is (for 2012 RC), and type devenv.exe /setup. It will fix your problem.
devenv.exe is usually in something like C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE.
Edit: It has been suggested that you do this from the Visual Studio command prompt (Start>Microsoft Visual Studio>Tools>Visual Studio Command Prompt), and/or make sure your command prompt has administrator permissions.
How can I get user type C# syntax highlighting working again in VS 2012 RC?
This did the trick!
devnev.exe /ResetSettings
More details here
Lost formatting in Visual Studio

Visual Studio - Page not found

Today I selected "Work Items" as I have a million times before but this time I was met with this error along the top of my "Team Explorer" tab:
"Page [some long GUID] not found."
This also happened for "Pending changes".
To fix the issue simply run the below command in an elevated command prompt as detailed here.
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" /setup
My understanding is this command forces the recreation (what Microsoft refers to as "merging") of current VS settings into what is apparently a corrupt settings cache. On the surface, this is similar to deleting the directory path C:\Users\username\AppData\Local\Microsoft\VisualStudio\version and allowing visual studio to recreate it at launch. However, I prefer to not to delete this outright and instead rely on re-merge approach.
Recently I found this sometimes occurs when I launch several solutions at once (i.e. I have 1 or more Visual Studio instances loading a solution at the same time). I also have ReSharper, SQL Prompt, VSCommands and TFS Power Tools installed which I'm sure contribute to some degree.
UPDATE:
This fix should work for all versions of Visual Studio, however you will need to execute the command in the directory appropriate to your version. For example with Visual Studio 2015 the path would be:
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" /setup
Version mappings for Visual Studio (original version mapping answer here):
Visual Studio 2005 = 8
Visual Studio 2008 = 9.0
Visual Studio 2010 = 10.0
Visual Studio 2012 = 11.0
Visual Studio 2013 = 12.0
Visual Studio 2015 = 14.0
Visual Studio 2017 = Path has changed to: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE"
Deleting all files in ComponentModelCache folder worked for me
For Visual Studio 2013:
"C:\Users\username\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache"
For Visual Studio 2015:
"C:\Users\username\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache"
or
%userprofile%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
If you get this issue in VS2015 and running "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv" /setup doesn't fix you issue you can try the following:
Close all instances of VS
Delete all files in C:\Users\\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
run "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv" /setup
This happend also with my installation of VS '13 when I installed VS '15.
Removing the files at
"C:\Users\username\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache"
did the job for me.
I encounter the same problem with you, and resolved by run the VS as administrator
Here are the steps I followed. Please make sure you follow them in correct sequence. These steps are for VS 2015. Use 12.0 (instead of 14.0) for VS 2013 and 10.0 for VS 2010
Close all instances of VS
Delete all files in C:\Users{UserName}\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
Delete the folder C:\Users{UserName}\AppData\Roaming\Microsoft\VisualStudio\14.0
run "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv" /setup in a command prompt as administrator

Visual Studio 2010 Unknown Error on Startup

I'm trying to launch Visual Studio 2010 from my desktop and I just get this error box popping up saying "Unknown Error"...
Anyone have an idea why this might happen?
I just fixed it, I uninstalled and reinstalled my version of the .NET Framework (v4.0). And then when I again tried to launch Visual studio it started up without any issue.
Here's some things you can check:
Temporary de-activate all Addins
Temporary disable all Extensions
Check the Event Log for any errors
Reset your settings
Start with /ResetSkipPkgs
Based on your comment below, if you can't find the DevEnv.exe when you have opened a VIsual Studio Command prompt, I would suggest you to re-install Visual Studio as it indicates your installation (paths) are in a bad state.
And here are some other things you migh want to check:
VS 2010 Crashes on Startup with "Unknown Error"
Visual Studio 2010 quit working...now gives me an "unknown error" dialogue when launched
Visual Studio 2010 Startup Errors
Visual Studio 2010 crashes on startup after installing SP1
Open Visual Studio Command Prompt with Administrator permission and type the following,
devenv /ResetSkipPkgs
the Solution of this problem ist very simple.
Install VS 2010 on a other machine and export HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0 to a file. Copy the file to your target machine and rename the path above to ".old", then double click your exported reg-file and wait a time....
After this my Visual Studio was starting correctly.
The other solution, that people post wont work in my case.
I hope this will help some body.
Enjoy
Sven
I had the same problem.. Instead of completely uninstalling .net framework, I just repaired the .net framework from the repair/uninstall option available in Control Panel of my Windows 7 Ultimate pc. Finally I got another error that, Visual Studio could not create AppData folder in my system. Then, I right click the Visual Studio icon and selected Run as Administrator. This worked for me!! Now, Visual Studio 2010 is working on my pc!! Try this out if you want..

Project <Name> could not be opened because the Microsoft Visual C# 2010 compiler could not be created. Please re-install Visual Studio

After installing Debugger Canvas and restarting Visual Studio, I get this error for each project when opening a solution:
Project <Name> could not be opened because the Microsoft Visual C#
2010 compiler could not be created. Please re-install Visual Studio.
I tried all of the answers from this question with no luck: Microsoft visual C# 2008 compiler could not be created. Please re-install Visual Studio
So far I have:
Tried the /resetsettings argument
Tried the /ResetSkipPkgs argument
Tried removing the whole key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio
Any other ideas other than reinstalling VS and/or SP1?
VS Version: 10.0.40219.1 SP1Rel
Thanks!
Open VS command prompt
Run the following command
devenv /resetsettings
Open your Project
After trying everything, I fixed this by reapplying the SP1, without needing to reinstall the whole VS. Hope it helps someone else!
I had a similar problem, but the error message also included "Query Service for { } failed." I tried opening VS with both the /ResetSkipPkgs and /ResetSettings switches, which didn't work. I finally fixed it by deleting the following registry key.
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio
Visual studio will lose all user preferences the next time you start it.
VS2015 - My issue was in the sln file. Reverting to previous revision resolved the issue.

Visual Studio freezes or hangs on startup

I have been using Visual Studio for a while and found that when I open visual studio and open the project all the files that were open last time remain open.
This causes my Visual Studio to freeze or crash on startup.
I am using a lot of plugins in my installation and wonder if there is a way to prevent this from happening.
Have you tried resetting user settings? It did help me:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe /ResetUserData
Run: Devenv /ResetSkipPkgs
http://msdn.microsoft.com/en-us/library/ms241276%28VS.80%29.aspx
or
You are probably looking for the /SafeMode command line switch:
devenv.exe /SafeMode
This will start Visual Studio with all add-ins disabled.
You can change your Visual Studio 2010 start up settings.
Tools --> Options --> Startup --> At startup --> Show empty environment --> Save
Visual Studio has a plugins limit. Use only plugins that best for you. There is a list for best Visual Studio 2010 plugins for developers.
Visual Studio 2010 - recommended extensions
devenv.exe /ResetSettings
or
devenv.exe /ResetSetting
Worked fine for me
I had the same issue with Community 2015 version. I solved it with Vidas Vasiliauskas suggestion, which was to erase user settings.
The thing is that I previously had enterprise 2015 version, in which I was logged in with my Microsoft account. When trying to open community version, it tried to do so with that same account, which I believe was the cause of the issue.
Therefore, I would suggest to those with the same problem to run the following command at Command Line Prompt:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe /ResetUserData
In my case, VS 2013 Professional was hanging on startup because the license was no longer valid.
Last item in the log file:
<entry>
<record>367</record>
<time>2015/07/13 20:11:05.051</time>
<type>Information</type>
<source>UserConnection</source>
<description>myemailaddrs#gmail.com signed in for IDE user</description>
</entry>
And on the msdn.microsoft.com subscription page: "Your subscription is no longer active, contact your administrator."
I had to get an updated subscription from my employer.
When it hangs on the splash screen:
It could be that an anti-virus solution is blocking Visual Studio.
Kaspersky Internet Security 16.0.1.445 makes Visual Studio 2015 hang on the splash screen. The older version 16.0.0.614 works fine.
Clear the tag's elements in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
Also do the same with C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
The tag should just be <runtime/>
If your Visual Studio 2019 is stuck due to a faulty extensions, here is a way to get it back to normal.
First, start Visual Studio in safe mode (devenv.exe /SafeMode) and uninstall the troublemaker.
Hereafter, if Visual Studio 2019 is still unresponsive, you need to do the following:
Browse to %LOCALAPPDATA% and go to Microsoft -> VisualStudio -> 16.0_bb6da863 (or whatever version you have installed)
Delete the following folders (all cache related):
ComponentModelCache
ImageLibrary
MFECacheBackup
Extensions\*.cache
For reference:
Hope it helps you and safe a VS repair/reinstall.
Happy coding :-)
I was having this issue when using the Git source-control plugin.
I ran devenv.exe /SafeMode
And then in Options -> Source Control -> Plug-in Selection made sure "None" or "Visual Studio Team Foundation Server" was selected. After that, VS started normally.
Check Task Manager. I had a Setup.exe running (not sure what it was installing), but once I killed it, VS unfroze.
I have got recently VS2017 stucked on start up . so I did this and worked for me :
1 - start cmd as admin : run the following:
cd "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE"
devenv.exe /SafeMode
2- once VS is started , go to
Tools => Extentions and Updates :
then uninstall all plug-ins that installed recently ( notice the installed date ) and unnecessary ones)
This helped me: I deleted all SDK, JDK & JRE folders that had been rooted in VS settings before. After that I used devenv.exe /ResetUserData and devenv.exe /ResetSettings.
Worked for me on Visual Studio 2015.
This is becuase of rendering IDE UI try this hope it will resolve
1- Open "Visual Studio"
2- Select "Options" from the top menu
3- Navigate to "Environment => General"
4- Unchecked "Optimize rendering for screens with different pixel densities"
5- Restart visual studio

Resources