How to deploy ASP.Net MVC 5 for IIS 8 Windows Server 2012?

I developed an application in ASP.Net MVC 5 with a SQL Server 2012 database now I want to deploy it to Windows Server 2012 using IIS 8

I followed this link: http://www.asp.net/mvc/overview/deployment/visual-studio-web-deployment/deploying-to-iis

but when I run my application in a browser, it gives an error:

HTTP Error 500.19 - Internal Server Error The requested page could not be accessed because the corresponding configuration data for the page is invalid.

I am new to this area if you could explain in more detail.

+5
source share
3 answers

Make sure the asp.net role is installed on your server.

I hope this link can help you: https://technet.microsoft.com/en-us/library/hh831475.aspx

0
source

I would make sure you have the latest .Net packages installed. I had a 4.5.2-oriented MVC5 application that would refuse to run.

0
source

You need to publish it first by selecting your project in Visual studio. After that, you need to create a site on IIS. In some cases, you may find it difficult to display your database, for which you need to add permission on the database server.

0
source

Source: https://habr.com/ru/post/980971/


All Articles