Crystal Reports 中的未知数据库连接器错误 [英] Unknown Database Connector Error in Crystal Reports

查看:56
本文介绍了Crystal Reports 中的未知数据库连接器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我可能只是在回答这个问题......但我不知道发生了什么,过去几天我一直在用头撞它.

Ok, I am probably just shooting air with this question.. but I have no idea what's happening and I have been banging my head against it for the last couple days.

我有一个版本为 12.2.0.290 的水晶报表...我根据 Oracle 连接字符串(不是 ODBC,因为它给我使用存储过程作为数据源时出错)构建了这个报表.无论如何,所以报告连接到数据库很好..我能够构建整个报告..我所做的每一次更改都会刷新数据等..一旦我完成..我关闭了水晶报告.当我再次打开报表并尝试刷新数据时,我收到错误Crystal Reports 中的未知数据库连接器错误".当我尝试直接从水晶报表运行报表时出现此错误.或者从我们为此报表构建的 .NET 包装器运行报表.当我从另一台机器运行报告(在 CR 中)时,我也会遇到同样的错误.实际上,我只是尝试从该报告连接到任何 Oracle 数据库时遇到此错误..

I have a crystal report version 12.2.0.290... I built this report against an Oracle connection string (not ODBC as it was giving me errors to use a stored procedure as a data source). Anyway, so the report was connecting to the database fine.. and I was able to build the entire report.. refreshing data with every change I made etc.. Once I was finished.. I closed the crystal report. When I open the report again and try to refresh the data I get the error "Unknown Database Connector Error in Crystal Reports". I get this error when I try to run the report straight from crystal reports.. or from the .NET wrapper that we built for this report. I also get the same error when I run the report (in CR) from another machine. In fact I get this error just trying to connect to an any Oracle database from that report..

真正奇怪的是,如果我打开我们不久前构建的另一个报告..我可以从它连接到相同的确切数据源,然后我转到文件->打开并打开第一个报告..我可以连接Oracle数据源,报表运行正常..我可以随意重现这种奇怪的行为..我不知道是怎么回事..我一直盯着这个问题很久了.. 如果有人有任何想法,我将非常乐意尝试...

The really strange thing is that if I open another report that we built a while ago.. I can connect to the same exact data source from it and it I go to File -> Open and open the first report.. I can connect to the Oracle data source and the report runs fine.. I can reproduce this strange behavior at will.. I don't know what is going on.... and I have been staring at this problem for the longest while.. if anyone has any ideas I will be more than happy to try them out...

谢谢!!

推荐答案

这是解决方案:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/d2811b33-2c2c-43d1-af51-9c54e9ad7920/unknown-database-connector-error?forum=wpf

我已经解决了这个问题,我只需要这些行:

I've fixed the problem, I just needed those lines:

<startup useLegacyV2RuntimeActivationPolicy="true">
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>

这篇关于Crystal Reports 中的未知数据库连接器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆