Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Elmah.MVC issue

前端 未结 6 1347
[愿得一人]
[愿得一人] 2020-12-23 16:52

Locally - my MVC 4, asp.net, c# app runs fine on IIS 8 / Windows 8.

When deployed to Windows Server 2008, I get this error:

Could not load file or as         


        
6条回答
  •  不思量自难忘°
    2020-12-23 17:43

    There are some procedures using to fix the issue and if the binding redirect in web.config does not solve the problem, you can try the following steps to fix it:

    1) In Visual Studio Solution Explorer tree right-click References under your web project and select Manage NuGet Packages.

    2) Go to Browse tab and select nuget.org as Package source.

    3) Search and install the following packages: Ninject, Ninject.Web.Common and Ninject.MVC5.

    It is also better to update the packages particularly Microsoft ASP.NET MVC on Updates tab of Manage NuGet Packages.

    Hope this helps...

提交回复
热议问题