Visual Studio 2013 Update 2 does not open cshtml

I installed the new VS2013 Update 2. As soon as I open the .cshtml file, VS fails.

I tried:

  • VS repair
  • all extensions are deactivated
  • devenv.exe / ResetSkipPkgs
  • reset all settings

without success

+4
source share
12 answers

complete unistall and reinstall VS solved the problem for me.

-2
source

I had the same error after installing Xamarin. The Xamarin extension in Visual Studio cannot be disabled, so I had to completely remove it from the control panel.

, , , : https://bugzilla.xamarin.com/show_bug.cgi?id=26850

+14

, visual studio .

+5

:

  • suo
  • VS sln

+1

, Xamarin VS.

, , . .

Visual Studio.

"( Visual Studio)\Common7\IDE\Extensions\Xamarin\Xamarin\3.9.483.0 \"

:    System.Web.Razor.dll,    System.Web.WebPages.dll,     System.Web.WebPages.Deployment.dll System.Web.Razor.bad, System.Web.WebPages.bad System.Web.WebPages.Deployment.bad.

"RazorTemplatePreprocessor".

: ( ).suo

Visual Studio csHTML.

+1

. Razor Generator, Visual Studio.

Visual Studio , .

+1

Views/Web.config. :

<system.web.webPages.razor>
- <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicFixedGuidToken=31BF3856AD364E35" />
+ <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
0

:

  • .
  • VS.
  • .
  • .
0

( Xamarin Visual Studio 2013, .cshtml- , ).

VS2013 4 .

0

, % LOCALAPPDATA%\Microsoft\VisualStudio\12.0\ComponentModelCache ComponentModelCacheOLD. VS2012, VS 2012. .

0

, , , , (, VS ).

I had to uninstall Microsoft ASP.NET and web tools (you cannot do this through VS, you need to download the installer for your version and use it to remove it).

Then I reinstalled Microsoft ASP.NET and web tools and made sure it was updated. This solved the problem for me.

0
source

if you have xamarine installed, try uninstalling it for which it worked, after checking all other parameters

0
source

Source: https://habr.com/ru/post/1540487/


All Articles