System.Web.Mvc.Web disappeared, what can I do?

1

After some updates, my helpers began to give problems, for example, if I were to use @Html.TexBoxFor , Razor would not recognize it.

After searching a lot, I was asked to use @using System.Web.Mvc.Web in View that I was writing. Here's the surprise: My System.Web.Mvc does not have Web .

Sometime it worked normally, I do not know what might have happened and I'm starting in MVC now.

    
asked by anonymous 25.04.2014 / 19:39

1 answer

1

If you have problems with this, you may have to go back to the original settings.

How?

In this link , we have the address that explains correctly how to proceed in an MVC update / return in Visual Studio. There are several versions of this link, it all depends on which version you are using.

Example:

To use Package Manager Console , do the following:

On the front PM> paste the respective version you are using, for example:

PM> Install-Package Microsoft.AspNet.Mvc -Version 5.1.0

and press <Enter>

    
25.04.2014 / 21:48