Silverlight reportviewer - InnerException for exception s

17 posts, 0 answers
  1. Hector
    Hector avatar
    13 posts
    Member since:
    Apr 2009

    Posted 17 Jun 2011 Link to this post

    I am getting an " InnerException for exception". It works on my development machine perfectly but when I deploy it, it get this error. Its simple report with no database connection. I have all the correct dlls deployed and the web.config is correct. I have done a fiddler on it and gives me a internal 500 error. The silverlight has other wcf calls with out any issues. I do have wcf logging turn on but I cannot see any errors. Can someone help me ?
  2. Joao Paulo Grassi
    Joao Paulo Grassi avatar
    98 posts
    Member since:
    Feb 2011

    Posted 18 Jun 2011 Link to this post

    Hi Hector!

    I'm having the same problem as you, on my local machine the report works just fine, but when i deploy it on my web server i get the innerException too. I think i have missing something about the ReportServiceUri. I use this uri on the local machine
    ReportServiceUri:="../MyServiceReport.svc" , i think that the reportViewer are not able to find de service.  I already send a suport ticket and when i resolve this i will post here too. 
  3. DevCraft banner
  4. IvanDT
    Admin
    IvanDT avatar
    76 posts

    Posted 20 Jun 2011 Link to this post

    Hello Hector,

    The exception thrown in the viewer is a generic one and it might be due to various reasons. In order to get more information about the actual problem try the following:
    • show the Output window in Visual Studio and check whether there is an exception when you're running your application in debug mode.
    • access the .svc file directly in your browser to see if it reports any problems.
    • enable the CLR exceptions from Debug --> Exceptions menu in Visual Studio and run your project in debug.
    If the projects works locally a possible and common problem is either wrong deployment or no configuration for WCF services on your live server? The following articles should shed more light on those topics:
    As a new user to Telerik Reporting and our Silverlight report viewer, our suggestion is to review the following articles that elaborate on the matter:

    You already have a samples installed with the product. You can use the Silverlight demo application for testing purposes or for comparing it with the one you've done so far.

    Greetings,

    IvanDT
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Joao Paulo Grassi
    Joao Paulo Grassi avatar
    98 posts
    Member since:
    Feb 2011

    Posted 20 Jun 2011 Link to this post

    Hello.

    I manage to fix the problem, i forgot to add the Telerik DLL's to the Web Project, i don't know that the dll's are not copied automaticaly to the Bin folder and that we need to copy manually. I follow this post topic and works just great for me.

    http://www.telerik.com/community/forums/reporting/telerik-reporting/error-when-deploying-silverlight-to-host.aspx

  6. Hector
    Hector avatar
    13 posts
    Member since:
    Apr 2009

    Posted 22 Jun 2011 Link to this post

    All of the dlls are in the bin. directory. The funny thing is if I put a report that requires paramterts, it will render the input fields, but when I hit the preview button it gives me the error. Also if just put a report with a simple lable, I still get the error.

    Hector
  7. Joao Paulo Grassi
    Joao Paulo Grassi avatar
    98 posts
    Member since:
    Feb 2011

    Posted 22 Jun 2011 Link to this post

    Hector

    Can you access your Reporting Service in the Browser?
    like this:

    http://www.mySilverlightAPP.com/MyReportService.svc

    If no, this is the problem, give it a try.
  8. Hector
    Hector avatar
    13 posts
    Member since:
    Apr 2009

    Posted 22 Jun 2011 Link to this post

    Yes I can.
     I can try create a small local silverlight app and running locally but access the reporting service on the server.  Maybe I can debug it that way
  9. Joao Paulo Grassi
    Joao Paulo Grassi avatar
    98 posts
    Member since:
    Feb 2011

    Posted 22 Jun 2011 Link to this post

    Can you attach a Printscreen with the error on the ReportViewer?
    Perhaps with more information they could help more.

  10. Hector
    Hector avatar
    13 posts
    Member since:
    Apr 2009

    Posted 22 Jun 2011 Link to this post

    Here is what I am getting
  11. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 23 Jun 2011 Link to this post

    Hello Hector,

    My colleague has already provided information what you should do to get more insight on the error in our previous reply, but I'll repost:
    • show the Output window in Visual Studio and check whether there is an exception when you're running your application in debug mode.
    • access the .svc file directly in your browser to see if it reports any problems.
    • enable the CLR exceptions from Debug --> Exceptions menu in Visual Studio and run your project in debug.
    Additionally since Q1 SP1 2011, we've improved the Silverlight viewer error handling and now the inner exception is shown in the viewer itself. Should you upgrade, the error would be available in the viewer itself.

    Regards,
    Steve
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  12. Hector
    Hector avatar
    13 posts
    Member since:
    Apr 2009

    Posted 24 Jun 2011 Link to this post

    Here is what I am getting..

    t System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
       at Telerik.Reporting.Service.SilverlightClient.ListRenderingExtensionsEventArgs.get_Extensions()
       at Telerik.ReportViewer.Silverlight.ReportViewerModel.OnListRenderingExtensionsCompleted(Object sender, ListRenderingExtensionsEventArgs e)


    ------------- InnerException: -------------


    System.ServiceModel.CommunicationException : The remote server returned an error: NotFound.
       at System.ServiceModel.Channels.Remoting.RealProxy.Invoke(Object[] args)
       at proxy_3.EndListRenderingExtensions(IAsyncResult )
       at Telerik.Reporting.Service.SilverlightClient.ReportServiceClient.OnEndListRenderingExtensions(IAsyncResult result)
       at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)


    ------------- InnerException: -------------


    System.Net.WebException : The remote server returned an error: NotFound.
       at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
       at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)


    ------------- InnerException: -------------


    System.Net.WebException : The remote server returned an error: NotFound.
       at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
       at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
       at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)


  13. Joao Paulo Grassi
    Joao Paulo Grassi avatar
    98 posts
    Member since:
    Feb 2011

    Posted 24 Jun 2011 Link to this post

    I got the same errors when i forgot to copy the DLL's to my web project.
  14. Hector
    Hector avatar
    13 posts
    Member since:
    Apr 2009

    Posted 25 Jun 2011 Link to this post

    If your talking about the bin directory on the server, they all exists on the server.
  15. Hector
    Hector avatar
    13 posts
    Member since:
    Apr 2009

    Posted 25 Jun 2011 Link to this post

    After much trace debugging, I moved the service file to the root that allow anonymous access,
    It finally works
  16. Richo
    Richo avatar
    1 posts
    Member since:
    Sep 2013

    Posted 19 Sep 2013 Link to this post

    please help me.it is working locally but when i deploy it on iis7 display this error on the page

    Error: System.Reflection.TargetInvocationException : An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.
       at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
       at Telerik.Reporting.Service.SilverlightClient.RenderAndCacheEventArgs.get_RenderingResult()
       at Telerik.ReportViewer.Silverlight.ReportViewerModel.OnRenderAndCacheCompleted(Object sender, RenderAndCacheEventArgs e)

    ------------- InnerException: -------------

    System.ServiceModel.CommunicationException : The remote server returned an error: NotFound.
       at System.ServiceModel.Channels.Remoting.RealProxy.Invoke(Object[] args)
       at proxy_2.EndRenderAndCache(IAsyncResult )
       at Telerik.Reporting.Service.SilverlightClient.ReportServiceClient.OnEndRenderAndCache(IAsyncResult result)
       at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)

    ------------- InnerException: -------------

    System.Net.WebException : The remote server returned an error: NotFound.
       at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
       at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)

    ------------- InnerException: -------------

    System.Net.WebException : The remote server returned an error: NotFound.
       at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
       at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
       at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__0(Object sendState)

  17. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 20 Sep 2013 Link to this post

    Hello Richo,

    In order to get more insight on the error access the .svc file directly in your browser to see if it reports any problems.

    Additionally please double-check the deployed assemblies and if you have set properly the endpoints of your service as explained in the How to: Host WCF Service in IIS. Also configure your application to use your local IIS server and then compare local IIS settings to the production machine's settings.

    If you need further help, post the configuration file or open a support ticket and send us there the requested details.

    Regards,
    Stef
    Telerik

    Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

  18. Alex
    Alex avatar
    3 posts
    Member since:
    Feb 2013

    Posted 20 Sep 2013 Link to this post

    Hi
    I had the same issue, I fixed two problems, My website was using windows authentication, but bindings for Telerik report wasn't set to use windows authentication (default is anonymous).
    I also had a relative URI to the svc file. I changed it to the full path where SVC file sits ON THE SERVER
    The error message that you see , may  show up for different reasons. The best test is , as Telerik guys mentioned, type in the address of the svc file on server, e,g. http://myserver/myreports.svc and check if the service is good.

    Hope it helps.
Back to Top
DevCraft banner