Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Deploying from winXP to win7 with Crystal Report! HELP! pls


I try to deploy my system in my own machine having Windows XP as the OS.. after it, it was successfully run .. all are running well...after that i try to deploy it to different machine.. that different machine has a Windows7-64bit OS..... after installing all the necesarry things like the database(i use mysql as database), mysqlconnector..... the system runs then.. all buttons are functioning well except for the reports(that reports was on crystal report) that should be printed... there is an error ... the error is something like this and i dont know what to do....:

"

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.FileNotFoundException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
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()

.........

"

can anyone save me??? please....
Posted
Comments
Member 9529406 9-Apr-13 13:11pm    
This is VB.NET Project
Kschuler 9-Apr-13 15:13pm    
How are you deploying it? ClickOnce? A Setup Project? And you say that you installed all the neccesary things on the Win 7 machine, like the database but did you install crystal reports?
Member 9529406 9-Apr-13 23:23pm    
Setup project... i already install the crystal report.....

Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
Error clearly states that your application failed to find the log4net assembly. Make sure you provide a log4net.dll v1.2 as expected. This might be installed/present on your local system, pick that and provide on server along with your application.
 
Share this answer
 
Comments
Member 9529406 9-Apr-13 13:44pm    
I'll try it...
Member 9529406 9-Apr-13 13:47pm    
I already put it on the bin folder of my project then i start rebuild another setup file... but nothing happens...... it has the same error...... please help me..... i wonder if there is a conflict between making a project from windows xp and deploying it on a windows 7 64bit platform
Sandeep Mewara 9-Apr-13 13:51pm    
Putting in bin and creating another setup might not ensure its inclusion. For a quick test, drop that dll in server (where you are deploying your app) GAC folder.

I doubt if it has to do with XP-Win7.
Member 9529406 9-Apr-13 13:55pm    
ill try....
Member 9529406 9-Apr-13 13:56pm    
Where can I find that GAC Folder???
yo encontré la solución la instalación del CrystalReport CRRuntime (64 o 32) en el cliente no de pende del sistema operativo ni del procesador sino funciona con la de 64 prueben con la de 32 o las dos así solucione mi problema. att chulocario
 
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