AJAX exception messages problem between dev and prod environments

  • Thread starter Thread starter TJ
  • Start date Start date
T

TJ

When an error is thrown in an async postback I am handling the error
message in an endRequest function. I retrieve the error message from
args.get_error().message, and display it in a friendly DIV. This was
working as expected in my development environment, but when I deploy
it to Production the exception message return from
args.get_error().message is always a generic message.

For example if a cast error is thrown in my dev environment i would
see:
Sys.WebForms.PageRequestManagerServerErrorException: Error converting
string to date.

But in production I would see:
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error
occurred while processing the request on the server. The status code
returned from the server was: 500

I am guess this is an IIS setting difference. I am developing in XP
Pro with IIS 6 and IE7. The Production environment is Win2k3 with IIS
6. I have compared the IIS settings between dev and prod and there is
nothing obvious, but I am not sure what to look for.

Any help would be mostly appreciated.

TJ
 
You've probably checked this out, but out of curiosity, what do you
have your customerrors set to (web.config/IIS)? Are you accessing the
production environment from another computer or from the server its
self?
 
you have hit the nail on the head. That setting didn't occur to me
because I am in the AJAX model.

thanks.
 
Back
Top