How to install ASP.NET MVC 5 on a server?

前端 未结 4 819
故里飘歌
故里飘歌 2021-02-12 19:31

I just updated my website from MVC 4 to MVC 5.

Now when I want to run it on my web server instead of my development machine it does not work.

It think it is beca

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-12 19:55

    MVC5 and future version of MVC doesn't require to installed on Windows Server. MVC5 app have everything as packages. You didn't need anything to install it.

    What is required on server is copy of every library and assembly that you have used in your app. For fix this, Just make sure that everything on your bin folder is called same on server instead of server is looking for it's own GAC for assembly used in your app.


    If you didn't found all the packages then you can install nuget packages on server by cmd.

提交回复
热议问题