RaiseCallbackEvent not returning to client in production environme

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Greetings,

I've sucessfully implemented a client callback using the RaiseCallbackEvent
method in the ICallbackEventHandler interface and the
GetCallbackEventReference helper method. Everything works great in all our
test environments.

The problem I'm having only occurs in our production environment. For
reasons I suspect are security related, the method specified in
GetCallbackEventReference() is never called.

For example, ReceiveServerData is never called in our production
environments (but it is called in test environments).

string cbReference = Page.GetCallbackEventReference(this, "arg",
"ReceiveServerData", "context");

Can anyone provide the reason or some insight as to why the call to the
client from the server would fail?

Thanks.
 
on the client side, a call to the server is made with XMLHttpRequest.
when the request completes, client side code parses the response, and
then call the registered routine.

several things can go wrong. the server may choke on the request, which
will cause the client to ignore it. your client code may get a scripting
error, which will stop all processing. scripting may be turned off in
the client.

use a javascript debugger and call your production server. on request
complete, view the response string and see if valid.

-- bruce (sqlwork.com)
 
Back
Top