Asp.net MVC application deployment on localhost but default page not run

abc 41 Reputation points
2021-03-20T14:11:20.8+00:00

Hello All,

I have develop a project in mvc5 with visual studio 2019.
Project runs properly from visual studio. And now i want to deploy this project on local host for my machine.
And first time I am deploying the mvc project.
So I have publish the project and copy the content in inetpub/wwwroot folder.
and in IIS convert the application. And then tried to run it on browser but the blank page display instead of login page which I have set in route config file.
Please help me in this .

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,404 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Wu-MSFT 7,286 Reputation points Microsoft Vendor
    2021-03-22T05:43:10.53+00:00

    Hi @abc ,

    Please check if your default document matches your request url.

    1. Open IIS Manager, and select the server, site or directory where the new default document should be added.
    2. Double-click the Default Document icon to navigate to the Default Document page.
    3. Click Add in the Actions pane. The Add Default Document dialog...

    More information about how to use the default document you can refer to this link: Default Document.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments