I have just deployed my asp.net mvc-2 website to a server (using dotnetpanel). But getting this error
A default document is not configured for the requested
I was having this issue in a WebForms application, the error clearly says that A default document is not configured
and it was true in my case, the default document was not configured. What worked for me is that I clicked on my site and on the middle pane in iis there is an option named Default Document
. In the Default Document
you have to check if the default page of the application exists or not.
The default page of my application was index.aspx and it wasnt present on iis Default Document
window. So I made a new entry of index.aspx and it started working.