CSS file not opening in Visual Studio 2010 SP1?

Visual StudioVisual Studio-2010

Visual Studio Problem Overview


I am unable to open CSS files in Visual Studio 2010 after adding to a project.

It shows the following error:

> The operation could not be completed.Unspecified error.

Even if I try to edit embedded CSS in a webpage directly, IntelliSense doesn't appear.

The screenshot of the error.

Visual Studio Solutions


Solution 1 - Visual Studio

I found the solution from here:

> I was having the same issue and found that by going to the Tools -> Extension Manager -> Online Gallery and search for/install the "Web Standards Update for Microsoft Visual Studio 2010 sp1" I was able to open CSS files again.

And it worked for me.

Solution 2 - Visual Studio

Probably it can happen after installing the Visual Studio LightSwitch beta

OR

Windows Azure tools installed

OR

SQL Server 2012 installed

Download this and install it if already installed then repair it and it'll fix the issue:

http://visualstudiogallery.msdn.microsoft.com/a15c3ce9-f58f-42b7-8668-53f6cdc2cd83

Solution 3 - Visual Studio

There is dropdown box in the toolbar saying "XHTML 1.0 transition". Change it to HTML.

Solution 4 - Visual Studio

This happened to me after installing Adobe Cloud production suite. Web Standards Update did the trick.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAbhishek RanjanView Question on Stackoverflow
Solution 1 - Visual StudiodeerchaoView Answer on Stackoverflow
Solution 2 - Visual StudiodnxitView Answer on Stackoverflow
Solution 3 - Visual StudioSamView Answer on Stackoverflow
Solution 4 - Visual StudioGaryView Answer on Stackoverflow