报表查看器未显示在客户端系统上的win app中 [英] Report Viewer not being displayed in win app on client system

查看:66
本文介绍了报表查看器未显示在客户端系统上的win app中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了窗口应用程序。包含报表查看器的表单未显示,并显示以下错误:



有关调用
$ b的详细信息,请参阅此消息的结尾$ b实时(JIT)调试而不是此对话框。



**************异常文本* *************

System.IO.FileNotFoundException:无法加载文件或程序集'Microsoft.ReportViewer.WinForms,Version = 10.0.0.0,Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a'或其依赖项之一。系统找不到指定的文件。

文件名:'Microsoft.ReportViewer.WinForms,Version = 10.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'

成本核算.frmCosting.InitializeComponent()在Costing.frmCosting..ctor()于E

:\Others\Costing软件点net\Costing\Costing\frmCosting.cs:线12 <登记/>
。在Costing.MDIParent1.costingToolStripMenuItem1_Click(对象发件人,EventArgs e)如E:\Others\Costing软件点net\Costing\Costing\MDIParent1.cs:线456

at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key,EventArgs e)

at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)

。在System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)上System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs E)

在System.Windows

。 Forms.ToolStripItem.FireEventInteractive(EventArgs e,ToolStripItemEve ntType满足)

在System.Windows.Forms.ToolStripItem.FireEvent(EventArgs的,ToolStripItemEventType满足)

在System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs MEA)

在System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)

在System.Windows.Forms.Control.WmMouseUp(Message& m,MouseButtons按钮,Int32点击)

在System.Windows.Forms.Control.WndProc(消息& m)

在System.Windows.Forms.ScrollableControl.WndProc(消息& m)

在System.Windows.Forms.ToolStrip.WndProc(消息& m)

在System.Windows.Forms.ToolStripDropDown.WndProc(消息& m)

在System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)



WRN:Assembly绑定日志记录已关闭。

要启用程序集绑定失败日志记录,请将注册表值[HKLM \Software\Microsoft \Fusion!EnableLog](DWORD)设置为1.

注意:程序集绑定失败日志记录会导致性能损失。

要关闭此功能,请删除reg istry value [HKLM \Software \ Microsoft /\\\\] $!$ $ $ $ $ $ $ $ $ $ $ *************已装载的装配**************

mscorlib

装配版本:4.0 .0.0

Win32版本:4.0.30319.1(RTMRel.030319-0100)

CodeBase:file:/// C:/Windows/Microsoft.NET/Framework/v4 .0.30319 / mscorlib.dll

------------------------------------ ----

成本核算

汇编版本:1.0.0.0

Win32版本:1.0.0.0

CodeBase :file:/// C:/RMS/Costing.exe

---------------------------- ------------

System.Windows.Forms

汇编版本:4.0.0.0

Win32版本: 4.0.30319.1通过内置:RTMRel

基本代码:文件:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System .Windows.Forms.dll

------------------------------------ ----

System.Drawing
汇编版本:4.0.0.0

Win32版本:4.0.30319.1内容:RTMRel

CodeBase:file:/// C:/ Windows /Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

---------------- ------------------------

系统

汇编版本:4.0.0.0

Win32版本:4.0.30319.1内容:RTMRel

CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0 .0__b77a5c561934e089 / System.dll

------------------------------------ ----

System.Data

汇编版本:4.0.0.0

Win32版本:4.0.30319.1(RTMRel.030319-0100)

CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

System.Core

汇编版本:4.0.0.0

Win32版本:4.0.303 19.1构建者:RTMRel

CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

----------------------------------------

System.Xml

汇编版本:4.0.0.0

Win32版本:4.0.30319.1内容:RTMRel

CodeBase :file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

------ ----------------------------------

System.Configuration

汇编版本:4.0.0.0

Win32版本:4.0.30319.1(RTMRel.030319-0100)

CodeBase:file:/// C:/ Windows / Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------- -----------------------

System.Transactions

汇编版本:4.0.0.0

Win32版本:4.0.30319.1(RTMRel.030319-0100)

CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll

--- -------------------------------------

System.EnterpriseServices

汇编版本:4.0.0.0

Win32版本:4.0.30319.1(RTMRel.030319-0100)

CodeBase:file:/// C: /Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll

-------------- --------------------------

System.Numerics

汇编版本:4.0。 0.0

Win32版本:4.0.30319.1内容:RTMRel

CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics /v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

---------------------------- ------------

System.Data.DataSetExtensions

汇编版本:4.0.0.0

Win32版本: 4.0.30319.1建立b Y:RTMRel

基本代码:文件:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions .dll

----------------------------------------



************** JIT调试**************

要启用实时(JIT)调试,此

应用程序或计算机(machine.config)的.config文件必须具有

jitDebugging在system.windows.forms部分设置的值。

应用程序也必须使用调试编译

启用。



例如:



< configuration>

< system.windows.forms jitdebugging =true/>

< / configuration>



启用JIT调试后,任何未处理的异常

将被发送到JIT调试器在计算机上注册

而不是由此对话框处理。

I have developed window application. The form containing report viewer is not being displayed and gives the following error:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.WinForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.ReportViewer.WinForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Costing.frmCosting.InitializeComponent()
at Costing.frmCosting..ctor() in E:\Others\Costing Software dot net\Costing\Costing\frmCosting.cs:line 12
at Costing.MDIParent1.costingToolStripMenuItem1_Click(Object sender, EventArgs e) in E:\Others\Costing Software dot net\Costing\Costing\MDIParent1.cs:line 456
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Costing
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/RMS/Costing.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Data.DataSetExtensions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitdebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

推荐答案

您需要在客户端系统中安装报表查看器。

部署报告和ReportViewer控件 [ ^ ]
You need to install Report viewers in client system.
Deploying Reports and ReportViewer Controls[^]


这篇关于报表查看器未显示在客户端系统上的win app中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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