John Santiago
Nuke Ace Posts:53
|
05/02/2013 1:31 PM |
|
Hi, Is there a possible way to handle the .Net errors is DNN globally i.e., I don't want to see the run time exception (server error - yellow page) on the site. When ever such exception occurs I want to redirect the user to soem custom page. Please let me know. Thanks |
|
|
|
|
Aderson Oliveira
Nuke Active Member Posts:35
|
05/03/2013 6:16 AM |
|
Hi John, If you open the web.config file and look for the "customErrors" entry, you should set mode="On" and add a new property called defaultRedirect="url". You should replace "url" by a page on your site or by a possible static html file on your site. Cheers, |
|
Aderson Oliveira
DotNetNuke Consultant - 1800DNN.com |
|
|
John Santiago
Nuke Ace Posts:53
|
05/03/2013 2:38 PM |
|
Its a multi-language site and has many sites under the DNN installation. Probably on error page we need to have a back to home link as well. So, this home link need to be built dynamically. I thin we can use HTTP referrer and get the referrer URL and build it dynamically. Thanks |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
05/03/2013 5:49 PM |
|
Interesting. As the Custom Error page is handled outside of DotNetNuke, it's not entirely clear how you can localize it. Perhaps there is a language parameter in the referring URL? In any event, I think that your thought is a correct one. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
John Santiago
Nuke Ace Posts:53
|
05/06/2013 8:35 AM |
|
Joseph, Does DNN not provide any support for Global error handling? I believe it is a common requirement. Thanks |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
|
John Santiago
Nuke Ace Posts:53
|
05/06/2013 12:17 PM |
|
Thanks Joseph, will go through it. |
|
|
|
|