Error:
A connection string was referenced by name but could not be resolved through the web.config.
I am running into this on my reporting project. In my web.config file I have:
And in the sql.config I have:
I create a brand new report, add a OpenAccessDataSource using the wizard and point the connection string to BarcodeEntityDiagrams. When I go to the Preview tab of the report I get the error:
Again, this is a brand new report using the report wizard. No custom code at all. Any suggestions? I'm using Reporting 5.1.11.713
A connection string was referenced by name but could not be resolved through the web.config.
I am running into this on my reporting project. In my web.config file I have:
<connectionStrings configSource="sql.config"/>And in the sql.config I have:
<add name="BarcodeEntityDiagrams" connectionString="data source=ERICWIN7-PC\SQLEXPRESS;initial catalog=Barcode;integrated security=True" providerName="System.Data.SqlClient" />I create a brand new report, add a OpenAccessDataSource using the wizard and point the connection string to BarcodeEntityDiagrams. When I go to the Preview tab of the report I get the error:
An error has occurred while processing Report 'VendorDetails':Exception has been thrown by the target of an invocation.------------- InnerException -------------System.Configuration.ConfigurationErrorsException: A connection string was referenced by name 'Barcode' but could not be resolved through the web.config or the executables app.config file.at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps)at OpenAccessRuntime.Relational.sql.SqlDriver.InitializeFor(ConnectionString connectionString, Boolean noConnect, PropertySet props, Driver& driver, Connection& conn)at OpenAccessRuntime.Relational.RelationalStorageManagerFactory..ctor(StorageManagerFactoryBuilder b)at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()------------- InnerException -------------A connection string was referenced by name 'Barcode' but could not be resolved through the web.config or the executables app.config fileAgain, this is a brand new report using the report wizard. No custom code at all. Any suggestions? I'm using Reporting 5.1.11.713