ReportViewer Win32Exception (0x80004005): 创建窗口句柄时出错

System.ComponentModel.Win32Exception (0x80004005): 创建窗口句柄时出错。
在 System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
在 System.Windows.Forms.Control.CreateHandle()
在 System.Windows.Forms.TextBoxBase.CreateHandle()
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.SetVisibleCore(Boolean value)
在 Microsoft.Reporting.WinForms.WinRSviewer.ShowMessage(String text, Boolean enabled)
在 Microsoft.Reporting.WinForms.ReportViewer.UpdateUIState(Exception e)
在 Microsoft.Reporting.WinForms.ReportViewer.OnRenderingComplete(Object sender, AsyncCompletedEventArgs args)
在 Microsoft.Reporting.WinForms.AsyncReportOperation.EndAsyncExecution(Exception e)
在 Microsoft.Reporting.WinForms.ReportViewer.<>c__DisplayClass1.<OnBackgroundThreadCompleted>b__0()
在 Microsoft.Reporting.WinForms.ReportViewer.ProcessAsyncInvokes()
在 Microsoft.Reporting.WinForms.ReportViewer.Dispose(Boolean disposing)
在 System.ComponentModel.Component.Dispose()
在 SyncMyProductSend.AppDomainTest.LoadData(DataTable rs1, DataTable rs2, DataTable rs3, DataTable ds4, String BrandCode, String productcode, String imgUrl)
在 SyncMyProductSend.AppDomainTest.LoadData(DataTable rs1, DataTable rs2, DataTable rs3, DataTable ds4, String BrandCode, String productcode, String imgUrl)
在 SyncMyProductSend.Program.CreateExportFile()
在 SyncMyProductSend.Program.Run()
在 SyncMyProductSend.Program.Main(String[] args)

 

 

直接运行SyncMyProductSend.exe 没有问题,但是在计划任务启动 SyncMyProductSend.exe 报创建窗口句柄时出错。

 

rdlc .net4.0 用了卸载 Appdomain ,Reporting.WinForms.ReportViewer 还是会报错失败。

解决方案:待定。

 

https://www.cnblogs.com/panjinzhao/p/11401144.html

 

转载于:https://www.cnblogs.com/panjinzhao/p/11401144.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值