I have been asked to look at an issue I know very little about.
A ASP Web App was released to a IIS instance simply by copying over the published folder.
The URL for the pages work when using http://thehost/theApp/thePage.aspx
However some user are required to use the URL http://thehost/theApp/Account/Login&ReturnUrl=%2ftheApp%2fthePage.aspx
But this gives the 404 – File or directory not found error.
This was working prior to the new release.
We found some differences in the Web.config between the old and new, so reverted back to the original Web.config but still the same.
The Web.config shows:
<system.web>
.
.
<authentication mode="windows">
<forms loginUrl="~/Account/Login" timeout="2880" defaultUrl="~/" />
</authentication>
.
.
I haven’t stopped/restart IIS – too afraid to do that. Would that help?
The bin folder does not contain WebMatrix.Data.dll nor WebMatrix.WebData.dll.
The App was built using Visual Studio 2022. I’m not sure what the IIS version is.