Possible but with <customError>

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/13/2009 10:33:15 PM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Possible but with <customError>

All,

I am having problems with a custom module. To debug, I tried

  • Replacing <customErrors mode="RemoteOnly" defaultRedirect="Error.htm"> with <customErrors mode="Off">
  • Commenting out the <customErrors> block

In both cases, as soon as I tried submitting data with my custom form, I got the following error:

Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

Source File: http://mySite.org/ScriptResource.axd?d=l53QigJd3KGiEVv-3KumAbiX189-7RprPkX3_4MKfr48x-zQ4acbiUL9qUInbHCWu2s-MF7AB9KFkBJsbx9-r2_qlYOMuy2xsfFaHgwe6Hs1&t=68b57ea0

Line: 5

When I reset <customError> to the default (as delivered), everything works fine again.

10/14/2009 9:51:25 AM
Gravatar
Total Posts 2253

Re: Possible but with <customError>

Hi Gerry,

I am a little confused, if everything works fine when customErrors is set to the mojoPortal default, what prompted you to set it to Off? I ask this because one would usually not make a change to this setting unless they were experiencing issues with the application.

Just a tip for future reference, considering you have developed a custom module, the best place for this post would be in the Developer Forum.

Thanks,
Joe D.

 

10/14/2009 10:23:56 AM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Re: Possible bug with <customError>

Joe,

By 'fine' I meant that the bug was still there, but at least I could submit the form. (I did track down my bug, but without being able to see the error messages in the browser, it made things a bit more challenging.)

10/14/2009 11:15:12 AM
Gravatar
Total Posts 18439

Re: Possible but with <customError>

When you set customErrors to Off, it showed you this error in the page right?

 

Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

 

Source File: http://mySite.org/ScriptResource.axd?d=l53QigJd3KGiEVv-3KumAbiX189-7RprPkX3_4MKfr48x-zQ4acbiUL9qUInbHCWu2s-MF7AB9KFkBJsbx9-r2_qlYOMuy2xsfFaHgwe6Hs1&t=68b57ea0

 

Line: 5

So thats what it is supposed to do if an error occurs and customErrors is set to Off. Sometimes you don't always get real helpful error messages depending on the nature of the error. Any unhandled error will be logged int he mojoportal log so that is another place to look for error messages.

Hope it helps,

Joe

10/14/2009 11:24:58 AM
Gravatar
Total Posts 64
Gerry Roston gerry (at) pairofdocs (dot) net

Re: Possible but with <customError>

Thanks for clarifying - I now know for next time.

You must sign in to post in the forums. This thread is closed to new posts.