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
Related
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.
After opening Visual Studio 2013 successfully, I switch to the Team Explorer tab and consistently get a popup error dialog saying that, "Microsoft Visual Studio 2013 has stopped working" and "Windows is checking for a solution to the problem".
This seems to be directly related to TFS (2013 Update 4) since other tools that access TFS (like Source Control Explorer > Workspaces...) also cause the crash.
Edit: I have already tried a VS 2013 Repair. This took all morning with no different results.
This is frustrating because I cannot use TFS outside of the command-line tools. Any help would be greatly appreciated. Thank you.
Credit to Tuğrul Emre Atalay for the post: Visual Studio Crashing When Checking In.
His issue was checking in changes and having Visual Studio crash. In my case, just using the TFS tools was consistently causing a crash.
The fix for me was to only clear out the local cache and not both the server and local caches.
Clean the Cache folder on client computer. The folder path is: C:\Users\username\AppData\Local\Microsoft\Team Foundation\5.0\Cache.
I cleared this folder and I was able to use all of the TFS tools without any further issues.
I then realized that this happened since migrating to a new user name. I had copied many of my settings over from my old account folder and it must have corrupted the cache area.
I had the same issue with Visual Studio 2015 Enterprises. When i open it, VS wasn't able to connect to TFS and it crashed when i clicked on "manage connections"
The issue was not about the cache (I cleared the cache, made a repair of VS and nothing changed) but about the fact that we are currently migrating our projects from perforce to Git with Team Foundation Server.
When Visual Studio starts, it seems VS is trying to connect to TFS with linked Git repositories, but since the plugin currently used is perforce, it causes an exception somehow.
The solution is to set your source control plugin to Microsoft Git Provider (or Visual Studio Team Foundation Server if you are using it)
Here's two screen shots I took. Right after I selected the Microsoft Git Provider, the Team Explorer tab automatically refreshed and I am now able to connect to my projects.
Go to Tools -> Extensions and Updates Look for Github Extension for Visual Studio and Uninstall it
Never Mind as you can still work with Github
Now Restart Visual Studio.
Enjoy working on Team Explorer.
I have MS Office 2013 installed on my PC. I want to use storybord for designing but I am not getting Storybording menu in PowerPoint. I also have Visual Stuio 2013 Premium which I installed after previously having VS 2013 Team Explorer installed.
So far, I have removed the VS 2013 Team Explorer and Repaired my install of VS 2013. I cannot get the story boarding tab to show up and when starting a story board from TFS Web Access I get an error.
Does anybody know of a way to enable the storyboarding functionality manually? All the MS KB articles I find point to installing VS 2011 or higher and it will be available.
Not sure if you've solved your problem by now, but I hit a similar one recently and managed to get it back. It's probably not the exact solution for you but it might help.
I did a VS2013 repair install which you've already done and then restarted my PC and the feature came back. I then looked at the Options -> Add-Ins section of PowerPoint then noticed that the TFS office add-in had been restored under 'COM Add-ins -> Active Application Add-ins' where it wasn't before.
It linked to 'C:\Program Files\Common Files\Microsoft Shared\Team Foundation Server\12.0\x86\TFSOfficeAdd-in.dll': your answers may lie on how to get that dll repaired/installed on your system. My guess is that it could be that the software involved was installed in a mix of 32- & 64-bit configurations.
OK, can't find a solution to this.
A client sent me his Microsoft Visual Studio Express 2012 for Web project. I have Microsoft Visual Studio Ultimate 2010 installed.
I get an error when I try to open his project saying "this project is not compatible with the current version of visual studio".
We'll be passing the project back & forth quite a bit, so I need a solution that meets that need please.
So, I figure I may be able to modify the project with a text editor to let me open it. If so, do I have to re-edit it back when I send it back to him?
Can I install VS Express 2012 for Web on a machine that already has VS Ultimate 2010 on it without any conflicts? Can I open it if I install VS 2012 Ultimate (keeping 2010 as well)?
I have another client that uses 2010, so whatever I do, I need to be able to still support him.
If I can't have 2 versions installed at the same time, and can't easily edit a file to make it compatible, then I guess my last option is a virtual machine.
Thanks in advance for any advice.
Microsoft Visual Studio has backwards compatibility since the version 2010 SP1.
So in this case you just need update your Visual Studio 2010 to SP1 and it will understand the new way files are versioned.
Based on my experience:
You do can edit it with a text file and send it back, but it's not compiled yet so it's your partners job.
Maybe, just maybe, you can edit the .sln and .(whatever the project file extension is) file to meet your VS10 env (I think it's going to be a bumpy road though)
Yes, I'm pretty sure you can have VS 10 and VS 12 installed on same machine, note that you have to have .Net 4.0 and .Net 4.5
I have around 50 projects in Visual Studio 2005 that I am building a new development machine for and I'd like to slowly move those projects to VS 2008 but also have 2010 available for select new projects.
Can this work? Are there any gotchas for this sort of setup? Any general advice for running multiple versions of Visual Studio on the same system would be greatly appreciated. Specifically related to managing a controlled migration of projects to new versions but being able to selectively keep some on old versions.
I've got 7.1, 8, and 9 installed at the same time (well, and VB part of 6 as well) and I've not really had a problem opening projects file in the wrong version. The Visual Studio Solution files is "associated" with a particular version even if they all have the same extension of .sln, as you can see from its little icon. Microsoft Visual Studio Version Selector seems to handle individual project files (.vcproj) fine as well.
The only thing I've had is the individual source code files not opening up in the latest version like I want, but that's easily fixed with the click of a little button in VS Opions.
Microsoft have this to say:
Visual Studio supports the installation of Visual Studio .NET 2002, 2003, ... on the same computer.
In general, you should install the earliest release of Visual Studio first, and then install subsequent versions of Visual Studio in the order in which they were released.
Make sure when you open up the 2005 files you're doing it in 2005. To open them in another would require a conversion which would render them incompatible with the older compiler set-up. To aid this, structure whatever workspace you're using into 2005, 2008, and 2010 so as to minimize accidental chance of this.
Second, when you double click to open the projects, it will invariably attempt to open them with 2010. You'll have to start with VS#### instead of the solution/project unless you're in the 2010 workspace.
I have VC6, VB6, VS 2008, and VS2010 RC installed on Windows Vista. I cannot double click on the VC6 dsp files without VS2010 opening and asking to perform the conversion. The 2008 C# projects open in 2008 as long as I use the solution file. The 2008 project file opens in 2010 instead of 2008 even though the version selector is the default program. Most of the time I try to remember to open the desired version of Visual Studio and then open the project.
You can mitigate some of these issues by changing the default program associations in the control panel or the registry.
Update: This setup works on Windows 7 x64, with the addition of VS2013.
Yes it can work. I'm not sure if you have to install them in a particular order... but install them in order of the versions... 2005, 2008, 2010. Should be good to go.
I can't speak for 2010, but I have run 2005 and 2008 at the same time on my system without any fuss.
And I made the double-click mistake that wheaties warns about more than once :(
I have VS2005 & VS2008 running without any issues. I have had problems when working with betas, express editions & am assuming you don't have them.
I would say refrain from making too many changes to the setup of these editions, it should be fine.
I also had the same doubt. I work at my company which is still on VS 2008 and I want to personally use the VS 2010 and not risk the 2008. I installed the 2010 and it worked fine with the 2008. Just make sure you note the projects that are in 2005 and open them with the same accordingly.
The reason why it works is simple: if you open your solution file in Notepad, you'll see which version of VS is related to your project.