Symptoms
Visual Studio syntax highlighter and Intellisense for Javascript and Razor views are not working.
There is no Web templates installed when creating a new project.
When I try to uninstall the web developer feature:
Add or remove Programs > Microsoft Visual Studio Professional 2015 > Modify
Microsoft Web Developer Tools is always checked. Even when I uncheck it and uninstall it, then restart the computer; the next time I still see it's checked:
What I did to solve this:
Running devenv.exe \resetuserdata Command to reset the user data.
Running devenv.exe \installtemplates to install the templates.
Repairing the Visual Studio.
Trying to uninstall and re-install the Web Developer Tools feature through the Visual Studio installer.
None have worked so far.
What I guess
I think Visual Studio thinks this feature is installed (through some registry keys probably) but the files are actually not installed.
Because whenever I try to Modify the installation of Visual Studio, the Microsof Web Developer Tools check box is not checked for the first second, then it is checked again after 1 second.
Question
Any suggestion on fixing this without uninstalling Visual Studio itself?
I was having the same problem and this is what worked for me:
Uninstall ASP.NET Web Tools from Control Panel
Download and install "Microsoft ASP.NET and Web Tools" extension from: https://visualstudiogallery.msdn.microsoft.com/c94a02e9-f2e9-4bad-a952-a63a967e3935
Try this (in order):
Find Microsoft ASP.NET 5 RC1 ... in control panel / programs &
select modify
Select repair
Run devenv.exe /installvstemplates as administrator
Run VS as administrator
I had the same problem with Visual Studio 2015. I tried several things, but simply updating Microsoft ASP.NET seemed to do the trick.
Install ASP.NET 5 RC1, restart, and the issue should be resolved.
I didn't know I had this problem until I opened an MVC project with Razor views and didn't have syntax highlighter and Intellisense. I was lucky to read your question because the symptoms are the same and so is the conclusion. And unfortunately none of the answers solves the problem. But it did help me to find the answer, or what worked for me.
What did the trick was installing .NET Core 1.0.0 (DotNetCore.1.0.0.RC2-Runtime-x64 and DotNetCore.1.0.0.RC2-VS2015Tools.Preview1). I am pretty sure that this is enough to solve the issue. But since I tried all kinds of things, it is possible that another action is required. In that case, continue reading below the images.
When I start a new project this opens the following dialog:
Selecting ASP.NET Web Application (.NET Framework) opens the dialog with the projects I was looking for.
The syntax highlighter and Intellisense are also working for Razor views.
I do not know what caused the problem in the first place. Is the installation incomplete, is there a conflict with other software or did I do something that caused this?
Visual Studio 2012 is installed on my machine as well. I installed and uninstalled VS2015 (pro and community version) and then installed vs2015 Community on multiple volumes. On uninstalling I did use /Force and removed several folders manually.
Microsoft ASP.NET 5 RC Update 1 is also installed, but repairing this did not solve the issue. Also installing Asp.Net Web Framework tools 2015 didn't change anything. I copied templates to all template folders I could find (perhaps an issue with installing on multiple volumes?), ran devenv.exe with different parameters and deleted the '14' folder in my profile. None of this worked. Finally I installed .NET Core 1.0.0.
Related
I was running Visual Studio 2013 with Resharper 8, and everything was fine and dandy untill I tried to install Jetbrain's Dottrace trial version. It brought with it something called Resharper Ultimate, which in turn made sure none of my Intellisense or Resharper features worked.
So I uninstalled Resharper Ultimate using the Windows uninstall feature. But Visual Studio seems to still consider it installed, because its options appears in the program's preferences dialog. Not to mention the top menu choice.
I have also tried installing Resharper 8 anew, in hopes that it will cleanse my machine of Ultimate, but it detects no previous installs. So now, I'm getting options dialogs for both Resharper and Resharper Ultimate. And none of the features work.
Plus I'm getting this error message when opening a solution with Resharper active:
I have looked at the mentioned XML file, but am not sure of what to make of it.
The solution from ReSharper Support Site:
To completely remove new .NET tools from Visual Studio, please try the
following:
Run ReSharper 9.x (new .NET Tools) installer once again - do you have
any products with status Repair? If so, please select Remove for them
and select Skip for others. If there are no items with Repair action,
please remove the following folder manually C:\Users{User
Name}\AppData\Local\Microsoft\VisualStudio{Visual Studio
version}\Extensions\JetBrains
I would try to clean the registry as per this article.
At the top of the blog post, there is a continuation of this story which describes fow to finalize the fix of the issue you experience by removing manifest and package definitions of your VS extensions.
Hope it helps
I'm having trouble getting lightswitch to work on my home computer.
If I try to create a new lightswitch silverlight project I get the following message:
If I try to open a project created on my laptop I see:
I've tried both to repair and reinstall visual studio with no change.
Any clues?
Have you installed it as an optional feature?
See this link:
http://social.msdn.microsoft.com/Forums/en-US/577ddba0-1440-43aa-8bba-18c587ee611f/open-project-lsproj-with-visual-studio-2013?forum=lightswitch
Specifically the install picture a few posts down:
EDIT: You may have to select "Modify" (depending on installer) to see that screen.
Which update of Visual Studio 2013 you have? As described here Update 2 CTP 1 has known issues and not recommended to install for LightSwitch development.
From Add/Remove Programs in the control panel, uninstall "SQL Server Data Tools 2013". Then re-install VS 2013 Update 1.
If the solution works, then you can try to reinstall SSDT by using the standalone installer.
I installed Vs 2010 Express in my PC, and created a poject named myproject with .net 4.0, it works well in Vs 2010 Express.
Now I installed Vs 2012 Express in my PC, and open the project myproject and upgrade it to .net 4.5, it wells well in Vs 2012 Express too.
I delete the project myproject all files, then restore it from my old backup file, when I try to open the project from Vs 2010 Express, I get the following information.
"This project is incompatible with the current version of visual studio", why?
How can I open the project in Vs 2010 Express? I guess the Vs 2012 Express maybe mark the project as .net 4.5 and stored the information in the somewhere of hard drive. Although I restore the project myproject from old backup file, Vs 2010 Express still think it is a project of .net 4.5.
Thanks!
If the message "This project is incompatible with the current version of Visual Studio" is due to an attempt to open a project targeting .Net 4.5 with Visual Studio 2010, then the "solution" or workaround is to edit the .csproj file and change the TargetFrameworkVersion from "v4.5" to "v4.0". That at least allows the project to be loaded, although it may result in compiler errors if the program is dependent on 4.5 features.
I know this is a little old, but just in case the above solutions don't work: don't be an idiot like me and try to open an MVC project using "VS for Desktop" instead of "VS for Web" (or vice-versa), since it will give you the incompatible message.
I use TFS at my job and I tried to open a MVC project via the TFS Solution Explorer. I wasn't paying attention to which Visual Studio version I had open and since both IDE's look alike, I was confused at what was going on - a common mistake, I'm sure =P
If you are getting the same error for a project which is actually an extension (.vsix), please install Microsoft Visual Studio 2012 SDK
Installing KB2781514 - Update for Microsoft Visual Studio 2012 solved the problem for me.
Check the directory that contains the solution file for an UpgradeLog.htm file. It will probably show what's wrong. In my case I tried to open an ASP.NET project, but the Web Developer Tools were not installed.
The Web Developer Tools can be installed afterwards by going to the Control Panel and to modify your existing Visual Studio installation. After adding Web Developer Tools the project opened without issues.
In my case the problem was the Component Model Cache (Visual Studio for C++).
in VS2013 it is located in
%localappdata%\Microsoft\VisualStudio\12.0\ComponentModelCache
in VS2015 in
%localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache
Rename this folder and restart visual studio.
I received this error because during the BizTalk install I did not check the Developer Tools and SDK checkbox. I went back and modified my installation and that error went away for me now.
Trying to load a BizTalk Project in VS2012 without BizTalk installed on your developer machine, will result in this error and the projects will load. This should be the first thing you check.
Make sure that all your extensions are same as in previous version. For me, when I upgraded from old PC to New PC, I didn't downloaded correct extensions hence resulting in above issue.
I faced out with this problem, the solution was:
Open VS2017
Go to Tools
Go to Extensions and updates
Search for Reporting Services Project and then "Enable"; close your VS.
Open again your project/solution.
--
MT
Today I had to reinstall. I used to have some hotfixes installed for VS2008 but no longer have them and can't remember why they were necessary. I'm expecting any security-related hotfixes to come through Microsoft Update, but I'm interested in VS bug fixes.
Does anyone have a list of hotfixes that they recommend installing for Visual Studio 2008 SP1?
You can find them all here:
http://kbalertz.com/Technology_639.aspx
Look for the ones with a "FIX" prefix.
Update: This is another good source of information about VS2008 updates.
http://code.msdn.microsoft.com/Project/ProjectDirectory.aspx?TagName=Visual%20Studio%202008&ProjectSearchText=Hotfix
Suggested hotfixes (links updated 4/2015):
KB957912 - Update for Visual Studio 2008 SP1 Debugging and Breakpoints
KB958502 - JScript Editor support for “-vsdoc.js” IntelliSense doc. files
KB960075 - VS Dev Environment crash after undocking windows or changing layouts
If connecting to TFS 2010:
KB974558 - Forward Compatibility Update
KB980216 - Error message when running unit tests with Forward Compatibility Update installed
Complete list of VS 2008 hotfixes (including TFS).
I recently rebuilt my machine. After installing Visual Studio 2008 and SP1 I was wondering about the same thing. In the end I used Windows update to check for updates and it found the following updates:
KB2465361
KB971092
KB72222
KB973675
Screen shot:
http://i.stack.imgur.com/yFf8H.png
All the VS2008 hotfixes are posted in the MSDN Code Gallery. You can search for tags "Visual Studio 2008" and "Hotfixes". You should only install the ones for problems you are actually having. Read through them and decide which ones you need. I would sort them by release date and install from older ones first. Also notice that some are included in other updates, such are the WPF designer hotfix included with the Silverlight tools.
I'm using Microsoft Connect - Visual Studio and .NET Framework as a source of updates for:
.NET 2.0+
VS2008
VS2010
I generally go with the ones that are pushed though Microsoft Update.
I thought that you can get bug fixes though Microsoft Update too.
If they don't come down automatically go to the site and look through the "Software, Optional" ones (or in the "Developer Tools" section).
Select Custom at the first screen and then wait a few minutes while it does it's scan.
However, there aren't any showing for me at the moment so I can't say for sure.
I've issue with VS08. I've got Web Application project (vb.net). Whenever I try to open an aspx or ascx (in Source view - just double clicking on Solution Explorer) the file opens, but VS hangs and is not responding. The only way to restart VS is then by killing it's process. And it happens all the time with these types of files. :/ Reinstall didn't work.
In addition, the only plugin I've installed with this instance of VS is ClearCase source control plugin.
This clearly looks like a problem with the "Microsoft Visual Studio Web authoring Component" program.
Simply pressing Change from Programs and selecting Repair fixed the issue for me.
Now I can use the design look also.
This happened for me when I installed Office 2010.
You should try to remove "Microsoft Visual Studio Web authoring Component" (from Programs).
I had the same problem and removed this component of Visual Studio (more about it here).
You'll loose the visual designer but VS won't hang anymore.
It could be a problem with the "Solution User Options" file (.suo) that lives in the same folder as the solution (.sln) file.
Try checking everything in, closing visual stuido, deleting this file and restarting.
May or may not help - you might not even have a solution after all!
Alternatively, are you using any anti-virus software? Commonly AV is set-up to check files as they are accessed. I seem to remember having issues with ours a while back, and stopping it checking files within my solution helped.
If you use Sophos I can help further, otherwise try stopping your AV scanning your solution's files.
You can try opening using other Visual Studio editor (right-click on the file, Choose Open With...)
There are many cases which may cause your vs2008 to hang. The only experience that caused my VS2008 to hang was right after installing Office2010. Once it happens, the only workaround is to kill Visual Studio in Task Manager. The root cause of this problem is that Office 2007 and the VS 2008 web designer both share a component, 32-bit MSXML5. When Office 2007 uninstalls or gets upgraded ie office2010, MSXML5 is removed yet Visual Studio still needs it.
There are many ways to fix this particular issue
1 - uninstalling Office 2010 and rebooting your machine; the issues will be resolved.
2 - if you still insist on using office 2010 (which will eventually happen) then go to your programs and right click on Microsoft Visual Studio Web Authoring tool and click on repair.
3 - You can simply remove Microsoft Visual Studio Web authoring Component completely from programs. Reinstall "Microsoft Visual Studio Web Authoring Component" from the VS2008 used. You can find the Web core designer from this particular path of your visual studio:
WCU\WebDesignerCore folder and run WebDesignerCore.exe
4 - If you are still experiencing some more issues the link below should sort it out
http://blogs.msdn.com/b/webdevtools/archive/2010/04/19/upgrade-or-uninstall-of-office-2007-might-cause-vs-2008-web-designer-to-hang.aspx
Wild shot, but try turning off Html Validation in Options. There was an issue with that at some point.
Turning off Html Validation didn't work. What I've noticed that before opening .aspx/.ascx file in solution memory usage (of VS) is for example 50k and when I double click i.e. Default.aspx to view Source then memory usage goes up to for example 150k and VS is not responding.
Everything did work last week. :/
I was having the same problem... Designer pages when opened hanged the VS.
I use VS2008 SP1.
I had installed Office 2010 AND UPON GOOGLING I FOUND THAT MICROSOFT VISUAL STUDIO WEB AUTORING COMPPONENT needed to be repaired.
If you install VS 2008 Beta on a clean machine, you will find Microsoft Visual Studio Web Authoring Component in the list of installed programs. You will also find that Program Files\Microsoft Web Designer Tools\Office12 and Program Files\Common Files\microsoft shared\OFFICE12 folders with some Office 2007 components even if you don't have Office 2007 installed.
What is Microsoft Visual Studio Web Authoring Component and why does it install Office 2007 components on my machine? The answer is that it is new HTML/ASP.NET design surface that is based on former FrontPages technologies, similar to Expression Web Designer. The designer was made into a separate component, but it was hard to fully separate code from Office libraries. So in VS 2008 designer is installed using separate setup which also installs a few Office libraries the designer relies upon. This means you will get Office 2007 updates offered to you via Microsoft Update although technically you don't have Office 2007 installed. This is because Microsoft Update recognizes shared components and will offer you related updates, so don't be alarmed or surprised. Office 2007 components are fully compatible with Office 2007 so you can freely install and uninstall Office 2007 or VS 2008 and both systems will continue working correctly. Designer is also compatible with Office 2003 and should not be affecting Office 2003 applications. If you observe any disrepancies, please report bug via Microsoft Connect ASAP and we will definitely investigate the issue.
The component can be installed/uninstalled/updated separately. Setup is located on VS DVD in WCU\WebToolsCore folder. If you accidentally uninstalled the component, you can simply run WebToolsCore.exe from the abovementioned folder. The setup does not have UI, simply give it about 5-10 minutes to complete.
An old question, but I bumped into it this week and want to post Microsoft's suggested solution.
ROOT CAUSE
The root cause of this problem is that Office 2007 and the VS 2008 web designer both share a component, 32-bit MSXML5. When Office 2007 uninstalls or gets upgraded, MSXML5 is removed yet Visual Studio still needs it.
WORKAROUND
Workaround if you manually uninstalled Office 2007 AND have a non-Express version of VS 2008. Uninstall and then reinstall “Microsoft Visual Studio Web Authoring Component“. Next run WCU\WebDesignerCore\WebDesignerCore.exe from the install disk.
For more information see MS article:
Upgrade or Uninstall of Office 2007 might cause VS 2008 Web designer to hang
If you don't use the ClearCase plugin do you still get the problem?
i.e. Try saving copying your solution to your local machine, remove all the source control bindings and see if you get the same problem.
Depending on how your environment is set up, you could be looking at a lag when VB is communicating with ClearCase.
And if all else fails, there are a few good diagnostic tools from the old SysInternal suite to help you figure out if it is a file access, registry or network problem.
SysInternals Site
FileMon - File reads / writes
RegMon - Registry reads / writes
TCPView - Network traffic