今天遇到的ReportViewer和Typed Dataset的问题
2007-08-14 08:54
316 查看
当时写程序的时候,因为老板非要一个PDF report,苦于crystal report deployment太麻烦了,所以就用了reportviewer,而且中间偷懒了一下,直接用typed dataset生成了dataset,问题就出现在,因为这次要把原来的project在重新做给其他公司一套,而且数据库更换了名字,而当时用typed dataset的时候是直根据当时的ConnectionString名字生成的,结果就出现了Typed Dataset还是调用当时的ConnectionString。。。可原来的ConnectionString名字已经被更改了,结果就出现了一个莫名其妙的错误。。查到了最后才想起来去Typed DataSet看一下,结果一看Query的时候出现找不到ConnectionString,唉! 在此留下一个脚印,以免以后再出现同样的错误
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="XXXX" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="XXX (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.XXXConnectionString" Provider="System.Data.SqlClient">
</Connection>
</Connections>
<Tables>
就是AppSettingsPropertyName这里,有同样问题的朋友可以先查一下这里
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="XXXX" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="XXX (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.XXXConnectionString" Provider="System.Data.SqlClient">
</Connection>
</Connections>
<Tables>
就是AppSettingsPropertyName这里,有同样问题的朋友可以先查一下这里
相关文章推荐
- vs.net开发带reportviewer的webpart中遇到的问题(转)
- VS2012开发ReportViewer遇到的问题解决方案
- 今天遇到CFLAGS被改变导致编译出错的问题[已解决 原创] 但还有未理解的地方
- 今天遇到的来年各个问题,比较低级,高手勿看。
- 今天遇到的一个问题----java String.split( Regex )的误区
- 今天遇到的数组问题,解决中。。。
- MySQL server PID file could not be found! ,今天所遇到的问题
- 安装VisualSVN时遇到的问题-Service ‘VisualSVN Server’ failed to start. Please check VisualSVN Server log in Event Viewer for more details.
- 几个ReportViewer性能问题排查经历
- 今天遇到得问题
- 今天在群里遇到的一道很基础但是困扰了很多人的问题
- 今天真机测试遇到这个问题there was an internal api errror
- 今天所遇到的问题
- 今天遇到了很奇葩的li a的点击问题自己解决的
- 今天去面试遇到了一个问题,左连接查询的问题
- 今天工作需要调用一个c++程序,以给那个程序发送请求的方式,遇到了跨域问题
- 今天使用eclipse-hilos版本的开发项目遇到一些问题
- 今天做window 服务遇到个问题。
- 今天遇到的一些问题
- 今天在使用MQ时遇到的CCSID问题