Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio is prompting to install ASP.NET Web pages with Razor syntax 1.0

I'm somewhat at a loss as what to do with my development environment. Anytime I open up a solution Visual Studio is prompting me to install "ASP.NET Web pages with Razor syntax 1.0".

If I ignore the prompt and continue into the solution the only thing that appears to not work is intellisense within razor views. Not the end of the world but it is starting to get annoying having this message appear when moving from solution to solution.

I have tried:

  • installing the missing component via the web platform installer
  • installing the missing component via the standalone installer
  • Uninstalling and re-installing MVC3

Any suggestions on what I can try next?

Visual Studio Prompt

EDIT:

So, after uninstalling all tools related to visual studio and and visual studio sp1 I re-installed visual studio and service pack1. I went to install MVC3 and the installation failed.

From, there I cleared pretty much every temp file / directory on my machine and tried the web platform installer. Again, it failed.

From there, I tried installed the RTM of MVC3 and the installation was successful: http://www.microsoft.com/download/en/details.aspx?id=4211

After finally getting MVC3 installed I was able to install the tools update and I'm back up and running....good way to waste 4 hours of time....blah...

like image 958
Jesse Avatar asked Jan 06 '12 04:01

Jesse


People also ask

What are .NET razor pages?

Razor Pages is a newer, simplified web application programming model. It removes much of the ceremony of ASP.NET MVC by adopting a file-based routing approach. Each Razor Pages file found under the Pages directory equates to an endpoint.

Does ASP.NET MVC use razor?

Razor has no ties to ASP.NET MVC because Razor is a general-purpose templating engine. You can use it anywhere to generate output like HTML. It's just that ASP.NET MVC has implemented a view engine that allows us to use Razor inside of an MVC application to produce HTML.

What is razor C#?

Razor is an ASP.NET programming syntax used to create dynamic web pages with the C# or VB.NET programming languages. Razor was in development in June 2010 and was released for Microsoft Visual Studio 2010 in January 2011. Razor is a simple-syntax view engine and was released as part of MVC 3 and the WebMatrix tool set.


2 Answers

Any suggestions on what I can try next?

I would attempt a Visual Studio 2010 reinstall after uninstalling ASP.NET MVC 3 and WebPages. Then install ASP.NET MVC 3 from the standalone installer.

like image 185
Darin Dimitrov Avatar answered Sep 28 '22 12:09

Darin Dimitrov


you have to uninstall all visual studio components (from add remove programs in control panel), install Visual Studio 2010, install asp.net mvc3 (with WPI) before upgrade to SP1, and then install Visual 2010 SP1.

If you upgrade to SP1 without install MVC 3, you will never can install mvc 3 again :)

like image 21
Paolo Andres Olaya C. Avatar answered Sep 28 '22 14:09

Paolo Andres Olaya C.