asp.net - Getting Page can't be displayed error after Response.Redirect on submit button click -
i getting weird error on asp.net web form page. have legacy page built full functionality. has got several data controls on page. after performing required operations when click on submit button, internet explorer goes blank. says page can't displayed.
my code old enough, works on few production sites. have deployed on new production site. if browse same page using internal url , perform same operation, not show error message , works smoothly.
to give background issue, when click on submit button calls web service on backend , comes web services result. once gets results back, uses response.redirect() same page (by creating url - request.url.absolutepath)with additional parameters in querystring. if refresh page shows same page correctly.
page in ie - page in chrome -
issue not in code, expected in production setup configuration. in production configuration public url www.test.com redirected www.test.com:7500. when user request website url, being redirected 7500 port on application hosted. worked great until, response.redirect performed in asp.net code. when response.redirect performed in asp.net, in request.url.absolutepath server got url www.test.com:7500. tried redirect 7500. redirection set @ public url. when internally tried same not working.
i went quick fix approach fix issue. removed request redirection on public url , set site on port 80. fixed issue.
Comments
Post a Comment