I have an authentication script (CheckLogin.aspx), and if any of the credentials do not match my application will redirect (via Server.Transfer) to the access denied page (forbidden.aspx). Each time my script runs,it gets an InvalidOperationException: Failed to map the path '/forbidden.aspx'. Here is a mockup of my applications file structure:
<root>
..default.aspx
..forbidden.aspx
..<inc>
....scripts.js
..<auth>
....CheckLogin.aspx
As you can see, the CheckLogin.aspx page is in a folder inside the root, and the forbidden.aspx page is inside the root itself. The path I am telling my application to redirect to is /forbidden.aspx.