Visual Studio 2008 问题,表适配器连接字符串问题
我有一个数据源,用于在程序中创建报告。我最近将连接字符串更改为由向导创建的表适配器(ConString1),因为我想让该连接字符串可供需要使用它的每个其他类使用。所以基本上。我删除了向导创建的应用程序设置(ConString1)并输入了我自己的应用程序设置(ConString)。一旦调试开始,所有仍然引用现在不存在的连接字符串(ConString1)的代码,我就更改为可用的连接字符串(ConString)。这是调试器拾取的代码中的内容。该程序运行良好。
现在我的问题是这样的,当我选择一个表适配器并查看其属性时,连接字符串仍然设置为旧的连接字符串名称,连接字符串值本身给出为“无法找到连接”。这禁止我向 reports.xsd 文件添加新表。
尝试创建新数据源时我也不断收到错误。
错误:无法加载类型 Microsoft.VisualStudio.DataDesign.SyncDesigner.SyncFacade.SyncManager。
I have a data source that I use for creating reports in my programme. I've recently changed the connection string to the table adapters created by the wizard(ConString1), because I wanted to make that connection string available to every other class that needs to use it. So basically. I deleted the application setting created by the wizard(ConString1) and entered in my own application setting(ConString). Once debugging began all the code that still refered to the now non existent connection string(ConString1), I changed to the available one(ConString). That is in the code the debugger picked up. The program works fine.
Now my problem is this, when I select a table adapter and take a look at its properties, the Connection string is still set to the old connection string name, the connection string value itself is given as "Unable to find connection ". This is prohibiting me from adding new tables to my reports.xsd file.
I also keep getting an error when trying to create a new datasource.
Error : Could not load type Microsoft.VisualStudio.DataDesign.SyncDesigner.SyncFacade.SyncManager.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)