Visual Studio continues to request missing web components

When I open a specific mvc 3 website project in VS 2010, I get the following message:

The web project "X" requires that there are no web components in Visual Studio. Do you want to download and install them using the Web Platform installer? ASP.NET Web Pages with Razor Syntax.

When i click yes

The web platform installer displays a message in which the "0" elements should be installed.

My other mvc 3 projects do not show this behavior

Not the main inconvenience, but still ...

any thoughts?

+4
source share
2 answers

WITH.,

This should not be, and it would be interesting to find out why. In the meantime, you should be able to disable this by unchecking the Restore Package box in the Visual Studio Preferences dialog box. (Select "Package Manager" in the tree view to find it.)

If this happens only for specific projects, you can solve this more quickly by deleting the packages.config file for the affected project. In fact, if you want to do a cause-and-effect relationship analysis, you should study why this file exists and how it got there.

NTN, Clay

+3
source

I got the same error after reinstalling my computer.

I came to this conclusion, VS needs IISExpress to download my additional project. Add-on projects have a web service and can work locally. Even if my endpoints point to a local address, it still needs IISExpress (standard IIS 7.5 does not respond to an endpoint request) to open from VS (im running VS2010).

So, after installing IISExpress, I can reload my project in VS.

+4
source

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


All Articles