AJAX exception messages problem between dev and prod environments

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
 
P

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

TJ

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

thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top