AJAX exception messages problem between dev and prod environments
am 08.04.2008 03:13:46 von Thomas JWhen 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