|
Rank: Advanced Member Groups: Member
Joined: 2/27/2010 Posts: 69
|
I have a weird problem. I have a page where I'm trying to redirect during a callback. Now the code works just find on my development workstation, but when I post it to the test server I get the dreaded error below:
EO.Web control 'ctl00_ContentPlaceHolder1_CallbackPanel1' error message:The callback on 'ctl00_ContentPlaceHolder1_CallbackPanel1' has failed due to a server side exception.
I have isolated this to the response.redirect statement. Does it make any sense that the redirection would work on my workstation, but not on the server? Workstation is Vista 64 Ultimate using VS2008. Server is 2008 R2 using IIS7.
I'm using EO.web 2011.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We can't think of anything. If you visit the page with IE, then close the error message dialog, do you see a detailed stack trace? Make sure you use IE. You won't see the stack trace if you use other browsers.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 2/27/2010 Posts: 69
|
Could you please give me a little direction regarding a redirect during callbacks I'm now seeing error this in other places in my application. I have coded redirections during callbacks under certain conditions and now get the serverside exception error while testing for these conditions.
In reading this forum, I'm a bit confused. Is it legal to do a redirection during a callback or not? If not, can you suggest an approach I could use to transfer the user to a different page during a callback.
Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Can you answer our question first? It is important for you to follow us in order to for us to understand the problem you are having.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 2/27/2010 Posts: 69
|
I do not get a page with stack trace info in IE8 or 9. The page just hangs after clicking okay with the message about the CallbackPanel.
I determined why I was getting the error on my workstation and fixed that. It now works there, but not on my test server. Gives me the error then hangs.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Can you give us the Url so that we can see the problem? We do not know what's causing it either. You can PM us if you do not wish to post the Url publically in the forum.
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Just an update for future reference. The CallbackPanel should be able to automatically handle redirect if:
1. EO.Web HttpModule is loaded through web.config,
-- OR --
2. Response.Redirect(newUrl, false) instead of Response.Redirect(newUrl) is called. Notice the additional argument "false".
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 2/27/2010 Posts: 69
|
Appreciate the feedback.
EO.Web HttpModule IS loaded in web.config.
But your suggestion to add false to the redirect worked like a charm.
Thanks.
|
|