Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I developed an application in ASP.Net MVC 5 with database SQL Server 2012 now I want to deploy it in Windows Server 2012 with 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 browser it gives error:

HTTP Error 500.19 - Internal Server Error The requested page can not be access because the related configuration data for the page is invalid.

I am new in this area please if you could explain in details.

like image 680
MJ X Avatar asked Nov 10 '22 20:11

MJ X


1 Answers

You need to publish it first selecting your project on Visual studio . After that you need to create the site on IIS. In some case you can find diffiult on mapping your db for that you need to add the permission on the db server.

like image 77
Dinesh Paudel Avatar answered Nov 14 '22 21:11

Dinesh Paudel