Strange, why return this kind of mistake???
1、When preview , the reporting is ok . Such as the first additional picture.
2、The "Silverlight project" call reports , then error . Such as the second additional picture.
3、The "Winform project" call reports , then error . Such as the third additional picture.
What is the reason causing the mistake ? Strange , Confused, Puzzled , Why,Why,Why???
1、When preview , the reporting is ok . Such as the first additional picture.
2、The "Silverlight project" call reports , then error . Such as the second additional picture.
3、The "Winform project" call reports , then error . Such as the third additional picture.
What is the reason causing the mistake ? Strange , Confused, Puzzled , Why,Why,Why???
4 Answers, 1 is accepted
0
Accepted
Hi Starry,
The error message is straight-forward: "In case you use a connection string from the application configuration file (i.e. the class library), make sure the name is correct and the same connection string settings are present in the configuration file of your application as well."
In other words when you have bound your report, a connectionString has been saved in the config file of your class library and it is e.g.:
<connectionStrings>
<add name="StarryConnectionString"
connectionString="Server=(local);Database=AdventureWorks;Integrated Security=SSPI;"
providerName="System.Data.SqlClient" />
</connectionStrings>
you should copy that connection string to your application configuration file (web.config for a web app or app.config for windows forms app).
Regards,
Steve
the Telerik team
The error message is straight-forward: "In case you use a connection string from the application configuration file (i.e. the class library), make sure the name is correct and the same connection string settings are present in the configuration file of your application as well."
In other words when you have bound your report, a connectionString has been saved in the config file of your class library and it is e.g.:
<connectionStrings>
<add name="StarryConnectionString"
connectionString="Server=(local);Database=AdventureWorks;Integrated Security=SSPI;"
providerName="System.Data.SqlClient" />
</connectionStrings>
you should copy that connection string to your application configuration file (web.config for a web app or app.config for windows forms app).
Regards,
Steve
the Telerik team
BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >
0
Starry
Top achievements
Rank 1
answered on 28 May 2012, 12:05 PM
Reports and sites with different database , so their connection string should be different. Reports has its special connection string, isn't it?
0
Accepted
Hello Starry,
There is nothing special about the connectionString that reports use. When you're using our SqlDataSource Component to connect to data by default it is stored in the application settings. This is what the Report and Data Source Wizards do when instructed to save the selected connection string in the config file.
When the reports are used in your actual application, the ConfigurationManager class would search for the configuration file of the current executing application to resolve your settings and connection strings. You can change the database server and credentials to match those of your live server, but the connectionString name should remain the same.
Regards,
Steve
the Telerik team
There is nothing special about the connectionString that reports use. When you're using our SqlDataSource Component to connect to data by default it is stored in the application settings. This is what the Report and Data Source Wizards do when instructed to save the selected connection string in the config file.
When the reports are used in your actual application, the ConfigurationManager class would search for the configuration file of the current executing application to resolve your settings and connection strings. You can change the database server and credentials to match those of your live server, but the connectionString name should remain the same.
Regards,
Steve
the Telerik team
BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >
0
Starry
Top achievements
Rank 1
answered on 28 May 2012, 02:55 PM
Tanks a lot... I myself to study the reports well... I have another problem , can you help me see?
http://www.telerik.com/community/forums/silverlight/general-discussions/listbox-control-can-t-choose-one-of-the-items.aspx#2125153
http://www.telerik.com/community/forums/silverlight/general-discussions/listbox-control-can-t-choose-one-of-the-items.aspx#2125153