将推送数据导出为PDF时发生LogonException [英] LogonException When Exporting Pushed Data to PDF

查看:60
本文介绍了将推送数据导出为PDF时发生LogonException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到这个问题的时候非常糟糕,我正在绝望。 span style =""> 我看过很多引用它但没有解决方案,所以我希望有人可以提供帮助。 我正在使用VB .NET 2003年在XP盒子上开发并部署到运行Windows 2000服务器的Web服务器上。 我正在通过使用XSD文件在报告中定义数据库来将数据推送到报告。 报告正在导出为PDF然后显示给用户。 该报告在几个月内运行良好,然后开始挂起ReportDocument的Export方法。 我们已安装来自Crystal Reports的CRNET11WIN_EN_SP2修补程序应该修复挂起,但现在我收到登录失败错误(LogonException)。 我可以注释掉发送数据到报告的代码我仍然得到错误。 我可以从报告中删除数据库并且错误停止。 我还看到了一个参考表,应该选择表格数据库 - >添加/删除数据库,然后通过项目数据选择表格 - >当前连接,但我仍然得到错误。该报告适用于安装了补丁的XP开发机器,但不适用于带补丁的Windows 2000机器。 有没有人有解决方案?



感谢您的帮助

解决方案

您好D.Townsend,


我和你有同样的问题,这让我在两个月前疯狂了。这个问题发生在我的生产服务器中,但同一组程序在我的开发服务器中工作正常。


今天是我的幸运日,我尝试细分"SetDataSource"。为每个表,并解决了登录问题。请尝试以下操作,希望对您有所帮助!


'rpt_doc.SetDataSource(my_dataset)
rpt_doc.Database.Tables(" table_1")。SetDataSource(my_dataset.Tables(") ; TABLE_1")),点击rpt_doc.Database.Tables(QUOT; TABLE_2")的setDataSource(my_dataset.Tables(QUOT。TABLE_2"))结果


I'm having a terrible time with this problem and am getting desperate.  I’ve seen many references to it but no solutions, so I’m hoping someone here can help.  I’m using VB .NET 2003 developed on an XP box and deployed to a web server running Windows 2000 server.  I’m pushing data to the report by defining the database in the report using an XSD file.  The report is being exported to a PDF, which is then displayed to the user.  The report worked great for a few months then started hanging on the ReportDocument’s Export method.  We installed the CRNET11WIN_EN_SP2 patch from Crystal Reports that was supposed to fix the hanging, but now I’m getting the Logon Failed error (LogonException).  I can comment out the code sending data to the report and I still get the error.  I can remove the database from the report and the error stops.  I’ve also seen a reference where tables should be selected by going to Database -> Add/Remove Database then selecting the tables through Project Data -> Current Connections, but I still get the error.  The report works well on the XP development machine with the patch installed, but not the Windows 2000 machine with the patch.  Does anyone have a solution?

 

Thanks for the help

解决方案

Hi D.Townsend,

I have the same problem as you and this made me crazy about two months ago.  This problem happens in my production server but the same set of programs work fine in my development server.

Today is my lucky day, I try to breakdown "SetDataSource" for each table and solved the logon problem.  Please try the follows and hope can help you!

'rpt_doc.SetDataSource(my_dataset)
rpt_doc.Database.Tables("table_1").SetDataSource(my_dataset.Tables("table_1"))
rpt_doc.Database.Tables("table_2").SetDataSource(my_dataset.Tables("table_2"))


这篇关于将推送数据导出为PDF时发生LogonException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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