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

Silverlight reportviewer - InnerException for exception s

16 Answers 292 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hector
Top achievements
Rank 1
Hector asked on 17 Jun 2011, 08:11 PM
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 ?

16 Answers, 1 is accepted

Sort by
0
Missing User
answered on 18 Jun 2011, 07:03 PM
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. 
0
IvanDT
Telerik team
answered on 20 Jun 2011, 03:09 PM
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
0
Missing User
answered on 20 Jun 2011, 10:05 PM
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

0
Hector
Top achievements
Rank 1
answered on 22 Jun 2011, 08:08 PM
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

element

Font
font-family
font-size
font-style
font-variant
font-weight
letter-spacing
line-height
text-decoration
text-align
text-indent
text-transform
white-space
word-spacing
color
Background
bg-attachment
bg-color
bg-image
bg-position
bg-repeat
Box
width
height
border-top
border-right
border-bottom
border-left
margin
padding
max-height
min-height
max-width
min-width
outline-color
outline-style
outline-width
Positioning
position
top
bottom
right
left
float
display
clear
z-index
List
list-style-image
list-style-type
list-style-position
Table
vertical-align
border-collapse
border-spacing
caption-side
empty-cells
table-layout
Effects
text-shadow
-webkit-box-shadow
border-radius
Other
overflow
cursor
visibility
0
Missing User
answered on 22 Jun 2011, 08:19 PM
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.
0
Hector
Top achievements
Rank 1
answered on 22 Jun 2011, 08:28 PM
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

element

Font
font-family
font-size
font-style
font-variant
font-weight
letter-spacing
line-height
text-decoration
text-align
text-indent
text-transform
white-space
word-spacing
color
Background
bg-attachment
bg-color
bg-image
bg-position
bg-repeat
Box
width
height
border-top
border-right
border-bottom
border-left
margin
padding
max-height
min-height
max-width
min-width
outline-color
outline-style
outline-width
Positioning
position
top
bottom
right
left
float
display
clear
z-index
List
list-style-image
list-style-type
list-style-position
Table
vertical-align
border-collapse
border-spacing
caption-side
empty-cells
table-layout
Effects
text-shadow
-webkit-box-shadow
border-radius
Other
overflow
cursor
visibility
0
Missing User
answered on 22 Jun 2011, 09:04 PM
Can you attach a Printscreen with the error on the ReportViewer?
Perhaps with more information they could help more.

0
Hector
Top achievements
Rank 1
answered on 22 Jun 2011, 09:19 PM
Here is what I am getting

element

Font
font-family
font-size
font-style
font-variant
font-weight
letter-spacing
line-height
text-decoration
text-align
text-indent
text-transform
white-space
word-spacing
color
Background
bg-attachment
bg-color
bg-image
bg-position
bg-repeat
Box
width
height
border-top
border-right
border-bottom
border-left
margin
padding
max-height
min-height
max-width
min-width
outline-color
outline-style
outline-width
Positioning
position
top
bottom
right
left
float
display
clear
z-index
List
list-style-image
list-style-type
list-style-position
Table
vertical-align
border-collapse
border-spacing
caption-side
empty-cells
table-layout
Effects
text-shadow
-webkit-box-shadow
border-radius
Other
overflow
cursor
visibility
0
Steve
Telerik team
answered on 23 Jun 2011, 09:45 AM
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
0
Hector
Top achievements
Rank 1
answered on 24 Jun 2011, 10:14 PM
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)


element

Font
font-family
font-size
font-style
font-variant
font-weight
letter-spacing
line-height
text-decoration
text-align
text-indent
text-transform
white-space
word-spacing
color
Background
bg-attachment
bg-color
bg-image
bg-position
bg-repeat
Box
width
height
border-top
border-right
border-bottom
border-left
margin
padding
max-height
min-height
max-width
min-width
outline-color
outline-style
outline-width
Positioning
position
top
bottom
right
left
float
display
clear
z-index
List
list-style-image
list-style-type
list-style-position
Table
vertical-align
border-collapse
border-spacing
caption-side
empty-cells
table-layout
Effects
text-shadow
-webkit-box-shadow
border-radius
Other
overflow
cursor
visibility
0
Missing User
answered on 25 Jun 2011, 12:18 AM
I got the same errors when i forgot to copy the DLL's to my web project.
0
Hector
Top achievements
Rank 1
answered on 25 Jun 2011, 06:43 AM
If your talking about the bin directory on the server, they all exists on the server.

element

Font
font-family
font-size
font-style
font-variant
font-weight
letter-spacing
line-height
text-decoration
text-align
text-indent
text-transform
white-space
word-spacing
color
Background
bg-attachment
bg-color
bg-image
bg-position
bg-repeat
Box
width
height
border-top
border-right
border-bottom
border-left
margin
padding
max-height
min-height
max-width
min-width
outline-color
outline-style
outline-width
Positioning
position
top
bottom
right
left
float
display
clear
z-index
List
list-style-image
list-style-type
list-style-position
Table
vertical-align
border-collapse
border-spacing
caption-side
empty-cells
table-layout
Effects
text-shadow
-webkit-box-shadow
border-radius
Other
overflow
cursor
visibility
0
Hector
Top achievements
Rank 1
answered on 25 Jun 2011, 07:35 AM
After much trace debugging, I moved the service file to the root that allow anonymous access,
It finally works

element

Font
font-family
font-size
font-style
font-variant
font-weight
letter-spacing
line-height
text-decoration
text-align
text-indent
text-transform
white-space
word-spacing
color
Background
bg-attachment
bg-color
bg-image
bg-position
bg-repeat
Box
width
height
border-top
border-right
border-bottom
border-left
margin
padding
max-height
min-height
max-width
min-width
outline-color
outline-style
outline-width
Positioning
position
top
bottom
right
left
float
display
clear
z-index
List
list-style-image
list-style-type
list-style-position
Table
vertical-align
border-collapse
border-spacing
caption-side
empty-cells
table-layout
Effects
text-shadow
-webkit-box-shadow
border-radius
Other
overflow
cursor
visibility
0
Richo
Top achievements
Rank 1
answered on 19 Sep 2013, 09:39 AM
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)

0
Stef
Telerik team
answered on 20 Sep 2013, 09:14 AM
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.

0
Alex
Top achievements
Rank 1
answered on 20 Sep 2013, 01:57 PM
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.
Tags
General Discussions
Asked by
Hector
Top achievements
Rank 1
Answers by
Missing User
IvanDT
Telerik team
Hector
Top achievements
Rank 1
Steve
Telerik team
Richo
Top achievements
Rank 1
Stef
Telerik team
Alex
Top achievements
Rank 1
Share this question
or