March 25, 2008 at 11:12 pm
We need to customize an error page inSQL Server reporting services 2005. Currently the error page comes up as Reporting Services Error ....error desc. However, for a particular type of error, we would like to customize the page with a more user friendly one.
Any idea on how to do this??
March 27, 2008 at 1:10 am
Hi
what you can do is create a error handler and track as you wish with the error numbers and messages, for example take a look at the code which is a sample one,
1) First try to open the report within the try catch block like
try
{
.....do something here;
}
catch(Exception ex)
{
MyHnadler.ErrorHandler(ex);
}
finally{}
in another class add the code like this
public class MyHandler
{
if you want to have do some coding in cunstructor....
public static void ErrorHandler(Exception ex)
{
string exceptionText;
if(ex is SoapException)
{
exceptionText = ((SoapException)ex).Detail["Message"].InnerXml;
}
else
{
exceptionText = ex.Message;
}
MessageBox.Show("An exception has occurred: " + exceptionText,
"Application Error");
}
}
Hope this will clarify you and start implementing this in your code as you like .
Have a good day
Srinivas Chilakapati
April 4, 2008 at 3:44 am
Is there a way of redirecting the exception to a web page or aspx page...we use a data processing extension and the exception is thrown in the code for the dtaa processing exception..we would like to redirect it to a custom error page.....can it be done?
February 11, 2009 at 11:51 am
Any way to redirect from the report server website (viewer)?
I'm using a third party application that opens up a browser window with the report url.
I would like that window to display a custom error page is the SSRS is not availabe, service not running or in deployment.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply