Hello,
I'm using newest Telerik Reporting and VS2010. Also I have lib for telerik reports, and WWW separately.
In lib project I have app.config file with named connection string.
In WWW I have web.config file with same name as in lib project.
1) When I'm in designer - it works fine
2) When I run application on my pc with dev server - it works fine.
3) When I publish and move to production server it says:
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.
4) When I copy built application (without publishing) the error is the same
1) I don't use any tranforms, etc when publishing.
2) I use the same connection string name with BLL layer and it works fine.
3) I logged values:
sqlDataSourceForReport.ConnectionString
and
System.Configuration.ConnectionStrings
sqlDataSourceForReport.ConnectionString exist in list of connectionString
Please let me know:
- how to log (debug) exceptions like this
- what can I log to have more info about error (what Telerik was looking for, where, what was found, what missing).
- can IIS settig may have influence to this error?
Best regards, Tomasz
I'm using newest Telerik Reporting and VS2010. Also I have lib for telerik reports, and WWW separately.
In lib project I have app.config file with named connection string.
In WWW I have web.config file with same name as in lib project.
1) When I'm in designer - it works fine
2) When I run application on my pc with dev server - it works fine.
3) When I publish and move to production server it says:
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.
4) When I copy built application (without publishing) the error is the same
1) I don't use any tranforms, etc when publishing.
2) I use the same connection string name with BLL layer and it works fine.
3) I logged values:
sqlDataSourceForReport.ConnectionString
and
System.Configuration.ConnectionStrings
sqlDataSourceForReport.ConnectionString exist in list of connectionString
Please let me know:
- how to log (debug) exceptions like this
- what can I log to have more info about error (what Telerik was looking for, where, what was found, what missing).
- can IIS settig may have influence to this error?
Best regards, Tomasz