AJAX exception messages problem between dev and prod environments

AJAX exception messages problem between dev and prod environments

am 08.04.2008 03:13:46 von Thomas J

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

Re: AJAX exception messages problem between dev and prod environments

am 08.04.2008 04:23:36 von PopeDarren

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?

Re: AJAX exception messages problem between dev and prod environments

am 08.04.2008 06:04:53 von Thomas J

you have hit the nail on the head. That setting didn't occur to me
because I am in the AJAX model.

thanks.

PopeDar...@gmail.com wrote:

> 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?