User-935305436 posted
When running live on Azure, setting the defaultDocument in web.config with the root directory works:
<system.webServer>
<defaultDocument>
<files>
<add value="~/Index.aspx"/>
</files>
</defaultDocument>
</system.webServer>
However, this does not work locally. To get it to work locally, I must remove the tilde specifying the root document and just have Index.aspx. The file is not in any subfolder.
Currently, I have it set to work in Azure, and set a specific start page, which is functional, but not exactly the same thing. I was wondering if there was a way to have both environments work without some kind of publish transform?
I am aware you can set the default document from the Azure General settings as well, but I would like to have it work locally.