Namespace

Asked

Viewed 162 times

0

I installed system.web.helpers and now I need to install system.web.mvc. It turns out that both have a dependency called: system.web.webpages and therefore the installation of mvc is giving error. See the error below:

Install-Package : Updating 'Microsoft.AspNet.WebPages 2.0.20505.0' to 'Microsoft.AspNet.WebPages 3.2.3' failed. Unable to find a version of 'microsoft-web-helpers' that is 
compatible with 'Microsoft.AspNet.WebPages 3.2.3'.
At line:1 char:1
+ Install-Package Microsoft.AspNet.Mvc -Version 5.2.3
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

How can I resolve this conflict?

  • Hello, are you creating the application from an Empty Solution ? There is a possibility that you can use the templates that VS provides ?

  • So let me explain. There is no dll installed. Then I had to install Helpers,so it could be available on any project afterwards. I did that and I missed installing the MVC. When I install it by Nuget, it gives this stick. So I have no way to add a reference to my project.

  • How did you install MVC ? Which VS are you using ? If 2010 is not just for Nuget, you have to go to the Microsoft website to download and install following link https://www.microsoft.com/pt-br/download/details.aspx?id=30683. If you have an VS above 2010 go to File/New/Project and select ASP.net Application and check the authentication option you want. Below is a link to tutorial https://cezarcruz.com.br/2013/09/criando-o-primeiro-projeto-aspnet-mvc-com-csharp/ I apologize if I am not understanding your problem. If it’s anything else please tell me. OBG.

No answers

Browser other questions tagged

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