Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows MySQL VB.NET , +
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 9-Apr-13 8:02am
Comments
Member 9529406 at 9-Apr-13 13:11pm
   
This is VB.NET Project
Kschuler at 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 at 9-Apr-13 23:23pm
   
Setup project... i already install the crystal report.....
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Member 9529406 at 9-Apr-13 13:44pm
   
I'll try it...
Member 9529406 at 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 at 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 at 9-Apr-13 13:55pm
   
ill try....
Member 9529406 at 9-Apr-13 13:56pm
   
Where can I find that GAC Folder???
Sandeep Mewara at 9-Apr-13 14:00pm
   
Google GAC folder. It's Global-Assembly-Cache folder. Type 'assembly' in your 'Start->Run' and see what opens up.
Member 9529406 at 9-Apr-13 14:04pm
   
now i can see it...
 
http://forums.asp.net/t/762128.aspx/1
 
it's on the assembly... so what do i do?? i just copy and past that log4net.dll on the GAC Folder????
 
so windows xp to windows 7 doesnt have any effect on my app??
Sandeep Mewara at 9-Apr-13 14:07pm
   
Yes copy-paste or drag-drop!
 
I doubt if Win7 or XP is reason here as error clearly states that file was not found and based on your follow up questions asked, it looks like you are a beginner and thus there is high chance of you making a mistake in deployment by missing needed 3rd party files.
Member 9529406 at 9-Apr-13 14:11pm
   
yah im a beginner .... in fact im just a student of information technology.. well thank you very much! i hope lot of people like you can help such student like me!
im just gonna wait for my brother to return and ill try this one to his windows 7 laptop! thank you sir!
Member 9529406 at 9-Apr-13 14:12pm
   
maybe its not about the windows xp to win 7 ... because the system is already working.. the only problem is the crystal report... thank you very much! i realize many things about vb.net and crystal reports!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 290
1 Jochen Arndt 165
2 DamithSL 125
3 PIEBALDconsult 110
4 Garth J Lancaster 90
0 OriginalGriff 5,790
1 DamithSL 4,601
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,195


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 8 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100