Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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??
Posted
Comments
Member 9529406 10-Apr-13 12:46pm    
I deploy it using setup wizard
Member 9529406 10-Apr-13 13:05pm    
please help me
ZurdoDev 10-Apr-13 13:25pm    
You need to include log4net as part of your deployment. The error tells you the issue.
Member 9529406 11-Apr-13 2:34am    
is the log4net.dll 1.2.10.0 ok for .NET Framework 4???? Please answer me.... please
Member 9529406 11-Apr-13 2:35am    
because I saw something on that dll it says that log4net for .NET Framework 1

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?
 
Share this answer
 
Comments
Member 9529406 11-Apr-13 1:25am    
im just frustrated sorry for the repost of the same topic... dont know what to do..
Member 9529406 11-Apr-13 2:09am    
i try it but it is different from my project.... many of them are from ASP.NET and connected to the net... my project is a window app
Member 9529406 11-Apr-13 2:33am    
is the log4net.dll 1.2.10.0 ok for .NET Framework 4???? Please answer me.... please
Kschuler 11-Apr-13 9:10am    
When you install crystal on the win 7 machine, do you install the 32 bit or 64 bit version? Are you compiling your program are you specifying that you are targeting 32 bit or 64 bit in the compile tab of the project settings?
Member 9529406 11-Apr-13 9:17am    
i install the 64bit crystal report because the machine is win7 64bit....

not yet.... i just set it to 32bit compiling setting.
VS2010 project change (any cpu) to x86. It will display your CR.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900