Set Home Page in IIS

3

When we deploy in IIS with an MVC 5 application, I need to set the homepage, right? In my case I have the Views = > Home = > Index.cshtml. In my case, I go to Default Document and how do I put all this step to inform the index page? I put it like this and it did not work:

/Views/Home/Index.cshtml

I also removed the start bar and nothing too.

This is the error you are giving:

  

Unknown Host

     

Description : Unable to locate the server named " ache.rupture " --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double check the name and try again.

    
asked by anonymous 07.10.2014 / 13:12

1 answer

2

When we deploy in IIS with an MVC 5 application, I need to set the start page, right?

Not really, ASP.NET MVC controls everything by route. What you need to check is if you are deploying the application if you copied the Global.asax file to the application folder pointed to by the application's registry in IIS.

This is the error you are giving:

  

Unknown Host

     

Description: Unable to locate the server named "ache.break" --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double check the name and try again.

See " Unknown Host " and " Unable to locate the server named" ache.break "" means that there is an the server by DNS.

    
07.10.2014 / 13:34