This is a migrated thread and some comments may be shown as answers.

Runtime error when using Reporting with RIA Business Application

1 Answer 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sandy Rivas
Top achievements
Rank 1
Sandy Rivas asked on 14 Nov 2010, 10:56 AM
Hi there,

I'm fairly new to SL and Telerik - so forgive me if this is something basic that I am missing.  Here's my current situation that I just cannot resolve and I have scoured the forum and cannot find an answer either.  I'd appreciate some help.

This example works:
-  I create a Telerik report in Silverlight viewer - it works on local machine; and post to IIS - all works fine
    -- I copied the following DLLs to the BIN directory:  Telerik.Reporting; Telerik.Reporting.Service; Telerik.Reporting.XamlRendering

This example does NOT work:
- I create a Silverlight Business Application - add a new page containing the Telerik Report viewer (same page as above) -- it works on the local machine - I post to IIS - and I get a message in the report viewer:  "An exception occurred during the operation, making the result invalid.  Check InnerException for exception details."
    -- I copied the same DLLs to the BIN directory as above - EVERYTHING is the same - with the exception that this is the Business Application - so the web config is different (but I copied the Service Model stuff same as in first example).

What am I missing?  I can't believe that people aren't using the Telerik Reporting in a SL Business App - so there must be something extra that is needed to make it work in a business app posted to IIS when a regular (non-business app) works fine when posted to IIS.  (I also don't know HOW to check for more details on the 'inner exception' - so if someone could provide specfic instructions for more info on that - I'd appreciate it).

Thanks so much for your help!!
Sandy

1 Answer, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 15 Nov 2010, 03:10 PM
The exception you've received needs to be traced further as it is generic one. Do the following:

  • bring to front the Output window in VS and look for an exception when you're running your application in debug mode.
  • try accessing the .svc file directly in your browser. If there is a problem with the service, it would bring more user friendly message.
  • enable the CLR exceptions in VS (Debug --> Exceptions) and run your project in debug mode

Also the fact that it all works locally and fails on your server means that Telerik Reports work in Silverlight Business App, there must be something wrong with your server configuration.
One thing developers tend to overlook is that the difference between locally and server starts with the web server. On your dev machine this is usually the built-in web server (aka Cassini), when on the server there is only IIS. So hosting your app in IIS on your dev machine should be your first step prior deploying it. If there are errors, you can easily debug the app or get user friendly output from IIS that tells you what you need to know in 99% of the cases.

Cheers!
Tags
General Discussions
Asked by
Sandy Rivas
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Share this question
or