Set main page on IIS

Asked

Viewed 972 times

3

When we deploy to IIS with an MVC 5 application, I need to set the homepage, right? In my case I have the folder 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 didn’t work:

/Views/Home/Index.cshtml

I also removed the starting bar and nothing either.

That’s the mistake you’re making:

Unknown Host


Description: Unable to locate the server named "find 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.

1 answer

2

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

Not really, ASP.NET MVC controls everything by routes. What you need to check is whether when deploying the application, whether you copied the file Global.asax to the application folder pointed by the application record in IIS.

That’s the mistake you’re making:

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.

See that, "Unknown Host" and "Unable to locate the server named "find."" means there is an infrared problem that is not allowing the server to be found by DNS.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.