Unknown Error on opening Visual Studio 2017 - visual-studio

When i try open Visual Studio, I immediately receive an error message. The message only tell me to open a xml file to receive more informations.
The directory of the xml file is C:\Users\User\AppData\Roaming\Microsoft\VisualStudio\15.0_ae456ee1\ActivityLog.xml
I already tried some possible solutions, like delete the privateregistry.bin file, on this directory: C:\Users\User\AppData\Local\Microsoft\VisualStudio\15.0_ae456ee1. But when I delete this file and try open Visual Studio, instead of receive the error immediately, the logo of Visual Studio appears, then the error message appears and the privateregistry.bin file is re-created.
This problem first happened in the Visual Studio 2017 Community. I reinstalled this version and downloaded Visual Studio Professional, but the error continues.

Repair Visual Studio 2017
Sometimes your Visual Studio installation becomes damaged or corrupted. A repair can fix this.
Find the Visual Studio Installer on your computer.
For example, on a computer running Windows 10 Anniversary Update or later, select Start,
and then scroll to the letter V, where it's listed as Visual Studio Installer.
Note
On some computers, the Visual Studio Installer might be listed under
the letter "M" as the Microsoft Visual Studio Installer.
Alternatively, you can find the Visual Studio Installer in the
following location: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe
Click or tap to start the installer, then select More, and then select Repair.

My exact issue was for an Unreal Engine 4 solution. The problem was the the intermediate folder was moved, and a new one re-generated. Instead of having to re-generate project files (from the .uproject), I simply deleted the auto-generated intermediate folder and replaced with the moved/old version (which included the build files from an initial project generation from the .uproject).
It is at least better to try a solution other than repairing the install, as that will delete external plugins and preferences...

Related

Error updating Visual Studio 2017 15.6.2

I was trying to update VS 2017 to 15.6.2 version. As usual VS asked me to update the Installer. But the Installer updating failed and now, when I try to launch the VS updating again, I get this error message:
Error loading vs_installershell.exe: No signature was present in the subject.
Anyone has ever seen this before? Any help will be appreciated.
Microsoft recommends the following procedure in this case:
Close the Visual Studio Installer.
Delete the Visual Studio Installer directory. Typically, the directory is C:\Program Files (x86)\Microsoft Visual Studio\Installer.
Run the Visual Studio Installer bootstrapper. You may find the bootstrapper in your Downloads folder with a file name that follows a vs_[Visual Studio edition]__*.exe pattern. If you don't find that application, you can download the bootstrapper by going to the Visual Studio downloads page and clicking Download for your edition of Visual Studio. Run the executable to reset your installation metadata.
Try to install or update Visual Studio again. If the Installer continues to fail, go to the next step.
There is also a bit of warning:
Performing the following actions reinstalls the Visual Studio Installer files and resets the installation metadata.
But in the end, it reinstalls the VS Updater.
Source: https://learn.microsoft.com/en-us/visualstudio/install/troubleshooting-installation-issues

Visual Studio 2017 Enterprise installation stucks

Visual Studio 2017 Enterprise installation stucks at Win10SDK_10.0.14393.795 In Process Monitor it shows message result No such file Path %AppData%\Local\Microsoft\VSApplicationInsights\vstelAIF-312cbd79-9dbb-4c48-a7da-3cc2a931cb70*.trn I tried to put empty file a.trn in folder vstelAIF-312cbd79-9dbb-4c48-a7da-3cc2a931cb70 and after that it says error Invalid name parameter. I first tried to install Visual Studio 2017 beside Visual Studio 2015 then I tried to uninstall Visual Studio 2015 and install Visual Studio 2017 and same problem happens.I tried to skip Win10SDK_10.0.14393.795 but then in stucks at Microsoft.VisualStudio.Debugger.JustInTime with same message.
I've encountered similar hangs with various Visual Studio operations (including installation) in the past.
The solution has been to create an empty file in the directory (or directories) it's looking for with a .trn extension. For whatever reason this satisfies it and it's able to progress past this point.

Visual Studio takes ages creating a project

I have problem with my Visual studio 2013. When I'm trying to create even a simple console application,VS hangs and after a while the message 'Visual studio is busy: Microsoft Visual studio is waiting for internal operation to complete.' shows up.
I have reinstalled Visual Studio but without any luck. I've used ProcMon to check devenv and all the paths it shows, have to do with Android Studio.
I 'solved' the problem by accident. I disabled Source Control and for some reason, VS started working again. I know it's not an ideal solution but works just fine when you need VS urgently.
Don't know if Visual Studio is one of those programs. Someone correct me if I'm wrong, but I believe even after uninstalling, Visual Studio keeps some files in the registry from your previous installation and the AppData folder. You might want to clear those.
Close Visual Studio (if you haven’t already).
Open the registry editor (regedit.exe)
Delete the
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio{version}
Delete the
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio{version}_Config
Delete the %USERNAME%\AppData\Local\Microsoft\VisualStudio{version}
directory.
Use {version}=10.0 for Visual Studio 2010
Use {version}=11.0 for Visual Studio 2012
Use {version}=12.0 for Visual Studio 2013
Hope this helps

VS Studio Crashes hard with "encountered a user-defined breakpoint" error on any config file

I have a odd problem here I can't figure out.
alt text http://billrob.com/images/studioerror.jpg
This happens each time I open the web.config file in my project. Studio crashes immediately after clicking close. Clicking debug just opens and empty Studio with the debugger attached to nothing.
I even resorted to open studio 2008 naked, without and project or solution, and then manually browsed to the web.config. It still crashes.
Other info:
All *.config files with crash as soon as the file opens.
This occurs in both VS 2005 and 2008.
Any file named .config, whether a .cs file renamed, or an empty text file called bob.config.
Any help would be greatly appreciated.
Try looking at your packages installed for Visual Studio. They are registered in the registry under:
Visual Studio 2008
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0Exp\Packages
Visual Studio 2005
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0Exp
If you have a lot, I say kill them all. And then reinstall your specific addons (such as CodeSmith or VisualSVN).
For reference, this is my fresh new install of Visual Studio 2008 SP1 on Windows 7 RTM. Only 1 plugin, and it's for SQL Server's SSIS:
registery http://eduncan911.com/blog/thumbnail/billrob-stackoverflow.png

PROBLEM encountered visual studio 2008 installation

I installed Visual Studio 2008 package FULL option. It worked with out any problem. I installed Vstudio 2008 and MSDN in separate folder in the D drive. 2 days later in order to remove my projects i uninstalled every thing and also i deleted visual studio 2008, visual studio 2005 folders from C:\Documents and Settings\IRCTC\My Documents. (I believe these 2 folders were automatically created when we install visual studio) also I cleared %path% and path (c/windows/path). Again I installed VISUAL STUDIO 2008 but now I can't able to create window application (other web, vb also), what is the solution for this ...
ERROR that shown is
c:/documents and settings/IRCTC/local settings/temp/g1zzsdl.bak/temp/windowsFormsApplication.csproj cannot be opened because project type (.csproj) is not supported by this version of visual studio.......
Whether any system file corrupted (windows temp or .net folber in windows).....
No other installation problem found in my system.....
please help.....
What are the files/folders required for the installation......
When you get that error is usually because:
You are trying to open a project created with a previous version of Visual Studio (not your case)
There was a bit of a screw-up during the installation (sounds like your case)
I'd uninstall the thing and reinstall completely first thing.
If it still doesn't work, it could be related to VS templates and you might wanna try and run from Visual Studio 2008 command prompt:
devenv /InstallVSTemplates
If it still doesn't work, open Visual Studio, in the menu, Open Tools->Options->Projects and Solutions->General. At this point you will notice the path of Project Templates is set to "C:\Documents and Settings[yourUserName]\My Documents\Visual Studio 9\Templates\ProjectTemplates" or something very similar to that. In order to fix it you gotta set that path to C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\Project Templates or the same path according to wherever you installed Visual Studio
I don't think is related to VS project Templates though - see this link
Try and see what happens!
Why didn't you use visual studio's uninstall function available from the control panel|add/remove programs?
I would uninstall the latest installation as described above, and try again.

Resources