部署我的VB.NET应用程序帮助后,我的Crystal Report无法正常工作! [英] My Crystal Report is not working in after deployment of my VB.NET app HELP!
问题描述
我的开发机器是windows xp 32bit ....我在windows 7 64bit机器上部署我的vb.net应用程序
当我尝试运行带有水晶报告的表单时...我得到此错误
有关调用
实时(JIT)调试而不是此对话框的详细信息,请参阅此消息的结尾盒子。
**************异常文本**************
System.InvalidOperationException:创建表单时出错。有关详细信息,请参阅Exception.InnerException。错误是:'CrystalDecisions.Shared.SharedUtils'的类型初始值设定项引发了异常。 ---> System.TypeInitializationException:'CrystalDecisions.Shared.SharedUtils'的类型初始值设定项引发了异常。 ---> System.IO.FileLoadException:无法加载文件或程序集'log4net,Version = 1.2.10.0,Culture = neutral,PublicKeyToken = 692fbea5521e1304'或其依赖项之一。定位的程序集的清单定义与程序集引用不匹配。 (来自HRESULT的异常:0x80131040)
在CrystalDecisions.Shared.SharedUtils..cctor()
---内部异常堆栈跟踪结束---
在CrystalDecisions.Shared.SharedUtils.get_CurrentControl()在CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture
()
在CrystalDecisions.Shared.LocaleManager..ctor( )
在CrystalDecisions.Windows.Forms.CrystalReportViewer.InitReportViewer()
在CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()
在WindowsApplication1.frmPrintMemberSum.InitializeComponent()在C:\Documents和Settings\Owner\Desktop\Middle_East\Gym_Management_System\WindowsApplication1\WindowsApplication1\frmPrintMemberSum.Designer.vb:线26
$ b WindowsApplication1.frmPrintMemberSum..ctor上的$ b
---内部异常堆栈跟踪结束---
at WindowsApplication1.My.MyProject.MyForms.Create__Instance __ [ T](T实例)在17d14f5c-a337-4978-8281-53493378c1071.vb:线190
$在WindowsApplication1.My.MyProject.MyForms.get_frmPrintMemberSum()
中B $ B WindowsApplication1.frmMain.MembershipSummaryToolStripMenuItem_Click(对象发件人,EventArgs e)在C:\Documents和Settings\Owner\Desktop\Middle_East\Gym_Management_System\WindowsApplication1\WindowsApplication1\frmMain.vb:线205
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)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
在System.Windows。 Forms.ToolStripItem.FireEventInteractive(EventArgs的,ToolStripItemEventType满足)
在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(Message&m)
在System.Windows.Forms。 ScrollableControl.WndProc(Message&m)
在System.Windows.Forms.ToolStrip.WndProc(Message&m)
在System.Windows.Forms.ToolStripDropDown.WndProc(Message&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)中获得
所有程序集都在Win32版本上...我已经把log4net.dll放到了GAC文件夹但没有任何反应我得到了同样的错误...我不能ind任何解决这个问题的方法.. somebodey可以帮助我吗?
my dev machine is a windows xp 32bit.... i deploy my vb.net app on a windows 7 64bit machine
when i try to run the form with crystal report... i got this error
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at CrystalDecisions.Shared.SharedUtils..cctor()
--- End of inner exception stack trace ---
at CrystalDecisions.Shared.SharedUtils.get_CurrentControl()
at CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture()
at CrystalDecisions.Shared.LocaleManager..ctor()
at CrystalDecisions.Windows.Forms.CrystalReportViewer.InitReportViewer()
at CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()
at WindowsApplication1.frmPrintMemberSum.InitializeComponent() in C:\Documents and Settings\Owner\Desktop\Middle_East\Gym_Management_System\WindowsApplication1\WindowsApplication1\frmPrintMemberSum.Designer.vb:line 26
at WindowsApplication1.frmPrintMemberSum..ctor()
--- End of inner exception stack trace ---
at WindowsApplication1.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at WindowsApplication1.My.MyProject.MyForms.get_frmPrintMemberSum()
at WindowsApplication1.frmMain.MembershipSummaryToolStripMenuItem_Click(Object sender, EventArgs e) in C:\Documents and Settings\Owner\Desktop\Middle_East\Gym_Management_System\WindowsApplication1\WindowsApplication1\frmMain.vb:line 205
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)
All assemblies are on Win32 version... i already put that log4net.dll to the GAC folder but nothing happens i got the same error... i cant find any ways to fix this problem.. can somebodey help me??
推荐答案
你已经发布了这个问题 [ ^ ]。请不要两次发布相同的问题。如果你没有收到回复,请尝试添加更多信息,以便人们可以帮助你。
那就是说,你有 googled [ ^ ]错误信息?有几个结果链接到论坛,人们遇到类似问题并解决了这些问题。
喜欢这一个。 [ ^ ]或这一个。 [ ^ ]
你试过这些吗?
You've already posted this question[^]. Please do not post the same question twice. If you are not getting responses try to add more information so people can help you.
That said, have you googled[^] the error message? There are a couple of results that link to forums where people have had similar issues and have solved them.
Like this one.[^] Or this one.[^]
Have you tried these?
VS2010项目更改(任何cpu)到x86。它将显示您的CR。
VS2010 project change (any cpu) to x86. It will display your CR.
这篇关于部署我的VB.NET应用程序帮助后,我的Crystal Report无法正常工作!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!