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

Asked

Viewed 1,497 times

1

After a few updates, my helpers started giving problems, for example, if I were to use the @Html.TexBoxFor, Razor would never recognize.

After doing a lot of research, I was asked to use the @using System.Web.Mvc.Web in the View I was writing. Here came the surprise: Mine System.Web.Mvc does not possess the Web.

For some time it worked normally, I don’t know what could have happened and I’m starting in MVC now.

  • 2

    You can include both of them in your question web.config, the root and the inside of the directory Views?

  • What updates ??? and which version is using ?

1 answer

1

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

Like?

In that link, we have the address that correctly explains how to proceed with an update/return of MVC in Visual Studio. Exists in this link several versions all depends on knowing which version was being used.

Example:

To use Package Manager Console, do so:

inserir a descrição da imagem aqui inserir a descrição da imagem aqui

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

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

and press <Enter>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.