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

Error while viewing the report in silverlight viewer

2 Answers 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ron Verhagen
Top achievements
Rank 1
Ron Verhagen asked on 03 Dec 2010, 07:11 AM
Hello ,

I have created class library which will server as report library for my application, Now i want to view one of the report in silver light application using Silverlight report viewer . I added the reference of Telerik.ReportViewer.Silverlight in to the silverlight application.Also i have added the Reference to Telerik.Reporting.Service in to the WebApplication.

I also have created ReportService.svc file with following code.
<%@ServiceHost Service="Telerik.Reporting.Service.ReportService, Telerik.Reporting.Service, Version=x.x.x.x, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE" %>

When i preview the report in class library , it works fine but the problem is when i run the silver light application to view the report ,i got following error message

An error has occurred while processing Report 'DataItem1':
Unable to establish a connection to the database. Please, verify that your connection string is valid. In case you use a named connection string from
the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your
application.
------------- InnerException -------------
Format of the initialization string does not conform to specification starting at index 0.


I have place the break point into the code file of report  and i application reaches there.Please help me

2 Answers, 1 is accepted

Sort by
0
Accepted
Michael Salzlechner
Top achievements
Rank 1
answered on 04 Dec 2010, 10:41 PM
did you add the connection string for your report to the web.config file of your web project ?
0
Ron Verhagen
Top achievements
Rank 1
answered on 06 Dec 2010, 07:29 AM
Hello,

Yes i added the connection string in to the web.config file before i got your reply and it was working fine.
Tags
General Discussions
Asked by
Ron Verhagen
Top achievements
Rank 1
Answers by
Michael Salzlechner
Top achievements
Rank 1
Ron Verhagen
Top achievements
Rank 1
Share this question
or