Search code examples
c#iismodel-view-controllerindexingpublish

When MVC IIS Publish I Can't See My Web Application, File directory is visible. What should I do?


I developed a SQL Management supported web application with ASP.NET CORE MVC technology. After completing the application completely, I researched and published it on the internet in order to present it in my own locale. I preferred to use IIS in Publish management. Although my steps are the same as for videos and documents, when I run my web application on the local network, what I see is not the application, but the published directories I obtained in the project file under the wwroot folder. My index page is defined on the layout and when I run the application through Visual Studio, there is no problem in the application operation. How can I see my index page with IIS after publishing?

enter image description here

And I looked the project in Properties\PublishProfiles\IISProfile.pubxml file is giving a warnings like this pic:

enter image description here


Solution

  • About how to publish mvc application in iis you can refer to this link:

    ASP.NET Web Deployment using Visual Studio: Deploying to Test.

    Getting Started With IIS Host And Publish In MVC 5.

    ASP.NET MVC 5 - Deployment On Windows IIS Server.

    If you publish it successfully, please check your default document, about how to configure the default document you can refer to this link: How to Configure the Default Document.

    enter image description here