I just downloaded VisualSVN Server. It seems to have conflicted with Visual Studio, as none of my projects will now open. The error it is throwing up says
A problem has occurred when loading the Microsoft visual studio menu. To fix this problem, run 'devenv.exe/resetsettings from the command prompt.
I rebooted and am getting this error now:
The MRU package did not load correctly.
I tried "devenv.exe /setup" as commented, but it completely broke my VS2015.
Then I tried "devenv.exe /resetuserdata" and it works now.
The fix for me was to run visual studio using ./devenv.exe /setup using a console session running as Administrator. Running ./devenv.exe /resetsettings didn't fix the issue for me.
I had this issue and I didn't have Visual SVN installed. Resources online suggested that you should check the registry key HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\Packages\{2DC9DAA9-7F2D-11d2-9BFC-00C04F9901D1} and ensure InprocServer32 is correctly set to the vslog.dll file. If it isn't then it suggested running './devenv.exe /setup', however my machine had this correctly set, and running devenv with the setup flag fixed the issue for me.
I was getting this repeatedly in Visual Studio 2015 and it was driving me up the wall. The /resetsettings option worked, but of course deleted all of my customisations, which was very irritating.
The solution turned out to be a path that was too long. See:
http://andydunkel.net/coding/2015/11/13/visual_studio_problem_occured.html
My path wasn't 2048 characters but was close, so try removing some unneeded entries from your PATH and it might solve this problem.
I encountered the same issue with VisualSVN 4.0.12 installation in Visual Studio 2013. (Interestingly, my Visual Studio 2012 instance worked just fine, it was only VS 2013 that was affected.) To resolve the issue with VS 2013, I performed the following steps:
I unblocked the VisualSVN-4.0.12.msi file that was in my downloads directory.
I right-clicked and selected "Repair Installation" from the context menu.
I right-clicked my VS 2013 icon and selected "Run as Administrator".
VS 2013 started up normally, with no error messages.
I think the key was making sure the that the .msi file was unblocked before performing the installation.
devenv.exe /resetsettings
Did not work for me originally. Make sure you run the command prompt as administrator.
Open Visual Studio developer Command prompt in Admin mode.
Run devenv /resetsettings
It will reset you visual studio default settings(theme, layout) etc.
And not any of the project settings.
I had the Visual Studio 2019 installed and had the same issue, chkdsk command resolved it.
Run devenv /resetsettings not
i reset my computer and it is opened directly
Run devenv /resetsettings as Administrator did not work for me.
Running "devenv.exe /resetuserdata" works but you will have to do reconnect to your Azure/Teams which should be straight forward.
Related
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..
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.
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
"No template information found. See the application log in Event Viewer for more details. To open Event Viewer, click Start, click Control Panel, double-click Administrative Tools, and then double-click Event Viewer."
That's the error message I get when I try to create a new project or solution.
How can this be resolved?
I used a solution presented to me from other sites. One of them said to reinstall templates.
I did the following:
In the command prompt I typed: cd C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
Then I typed: devenv /installvstemplates
I took a minute but after it completed I opened Visual Studio and tried to create a new project. All my project templates were back in order, including additional templates like Workflow, SharePoint and Silverlight.
Link to other source
Start Menu --> Microsoft Visual Studio 2008 --> Visual Studio Tools. Right-click over the Visual Studio Command Prompt shortcut and make sure you select Run as Administrator. Once the VS Command Prompt comes up, execute the command without Quot,
"devenv /installvstemplates"
"devenv /resetsettings"
And that worked out.
Run Following command and it will restore templates.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE>devenv /installvstemplates
This may not match the original posters exact symptoms but I was seeing a blank screen after clicking Create a new project (VS 2019). Discovered that the install of Visual Studio had 'finished with errors' (paraphrasing there - now I've fixed the issue I can't see the exact error message) anyhow digging into it I found that the C++ redistributable had not installed (even though I'm a C# dev that's still important to VS!)
If I tried to install this as a standalone I got an Access Denied error (even if running as Administrator). Digging into the VS install logs I found a similar report.
Anyhow after a fair amount of Googling a few responses pointed to Virus software preventing the C++ redistributable from installing (in my case McAfee). Once that was removed a repair of VS resolved the issue :)
I installed the ReSharper evaluation version and uninstalled it. Afterwards Visual Studio's Intellisense stopped working. I have restarted computer but I still have this problem.
Can anyone please help me here?
I am using Visual Studio 2005. Thanks.
Try opening Visual Studio Command Prompt and entering:
devenv.exe /ResetSettings
Try going to Tools > Options > Text Editor > C# and checking all of the options under Statement completion. I think Resharper disables these upon installation.
Sometimes deleting the ncb file helps. Go to your solution directory and find the sln file, there will also be a file with the same name and the extension ncb. Make sure Visual Studio is closed (at least don't have that project open) and then delete that file. Don't worry Visual Studio will rebuild it for you.
The devenv.exe /ResetSettings was the only thing that worked for me. The full path in command prompt is as follows (for VS 2008)
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE>devenv.exe /ResetSettings
took me a while to find so I thought I'd post this to help
devenv /ResetSettings worked after uninstalling ReSharper. I did not have to do a repair. I did verify that the settings were checked under Text Editor > C#, but ResetSettings was the only thing that worked.
You could try to reset your Visual Studio setting by
End Process devenv.exe from Tast Manager if it is running .(It can close your Browser and Visual Studio)
Run devenv /resetuserdata from Start -> Run
Hope It can help you.
Disable updating intelliSense like in this article:
http://amastaneh.blogspot.com/2007/11/disable-updating-intellisense.html
Eventhough for old version seems to work for me.
I would try a "repair" on the installation first. Control Panel, Add/Remove Programs, select Microsoft Visual Studio 2005, click "Change/Remove". It will load up the install dialog and give you the option to do a "repair".
YMMV, but at least it should reset a lot of the VS resources to their "fresh" state.