开发者

Getting aspxerrorpath Error in URL - Path Exists - Why 404?

开发者 https://www.devze.com 2023-02-10 07:11 出处:网络
I have a Redirect.aspx page. This page takes in parameters and redirects to the appropriate resource based on those parameters.

I have a Redirect.aspx page. This page takes in parameters and redirects to the appropriate resource based on those parameters.

Another page sends a redirect to Redirect.aspx and I end up on the Default.aspx page with an aspxerrorpath=/myapp/Redirect.aspx.

I assume this means that I got a 404 error and that it means that it could not find the Redirect.aspx file. But I check the project directory and th开发者_如何学Ce file is there.

Any ideas on why my I am getting this error? Thanks!


I found a solution here. The real catch was using this:

Response.TrySkipIisCustomErrors = true;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号