Hi,
I'm having serious issues with the telerik reporting in VS. I've created an MS Entity Framework model as a a separate class library as it states in the documentation.
i'm using the EntityDataSource it finds my library and gets the dbcontext no problem. When i add report parameters it shows me all the fields for the context i selected.
I assign the fields to the report parameter no problem. the problem happens when i try to preview the report i get the following error:
"an error occurred while invoking the data retrieval method. Try restarting Visual Studio.
A connection string has been provided but constructor with connection string argument could not be found. Either remove the connection string from the data source or provide a constructor which will use that connection string. For design time purposes a constructor that has a connection string and passes it to the base constructor is required."
I'm not sure what this means nor how to fix it. I've created 5 projects and gotten the same behavior. I've uploaded my app.config for review.
any help would be great
Thanks,
Rick
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<system.diagnostics>
<sources>
<!-- This section defines the logging configuration for My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
<!-- Uncomment the below section to write to the Application Event Log -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information" />
</switches>
<sharedListeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
initializeData="FileLogWriter"/>
<!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
</sharedListeners>
</system.diagnostics>
<connectionStrings>
<add name="AdventureWorks2008R2Entities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string="data source=tanortega\sqlexpress2008;initial catalog=AdventureWorks2008R2;persist security info=True;user id=sa;password=dont4get;MultipleActiveResultSets=True;App=EntityFramework""
providerName="System.Data.EntityClient" />
<add name="TelerikReport.My.MySettings.AdventureWorks2008R2"
connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=tanortega\sqlexpress2008;initial catalog=AdventureWorks2008R2;persist security info=True;user id=sa;password=dont4get;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient"
providerName="System.Data.EntityClient" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
</entityFramework>
</configuration>
I'm having serious issues with the telerik reporting in VS. I've created an MS Entity Framework model as a a separate class library as it states in the documentation.
i'm using the EntityDataSource it finds my library and gets the dbcontext no problem. When i add report parameters it shows me all the fields for the context i selected.
I assign the fields to the report parameter no problem. the problem happens when i try to preview the report i get the following error:
"an error occurred while invoking the data retrieval method. Try restarting Visual Studio.
A connection string has been provided but constructor with connection string argument could not be found. Either remove the connection string from the data source or provide a constructor which will use that connection string. For design time purposes a constructor that has a connection string and passes it to the base constructor is required."
I'm not sure what this means nor how to fix it. I've created 5 projects and gotten the same behavior. I've uploaded my app.config for review.
any help would be great
Thanks,
Rick
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<system.diagnostics>
<sources>
<!-- This section defines the logging configuration for My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
<!-- Uncomment the below section to write to the Application Event Log -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information" />
</switches>
<sharedListeners>
<add name="FileLog"
type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
initializeData="FileLogWriter"/>
<!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
</sharedListeners>
</system.diagnostics>
<connectionStrings>
<add name="AdventureWorks2008R2Entities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string="data source=tanortega\sqlexpress2008;initial catalog=AdventureWorks2008R2;persist security info=True;user id=sa;password=dont4get;MultipleActiveResultSets=True;App=EntityFramework""
providerName="System.Data.EntityClient" />
<add name="TelerikReport.My.MySettings.AdventureWorks2008R2"
connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=tanortega\sqlexpress2008;initial catalog=AdventureWorks2008R2;persist security info=True;user id=sa;password=dont4get;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient"
providerName="System.Data.EntityClient" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
</entityFramework>
</configuration>