• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 971
  • Last Modified:

Application fails to run while executing the Initialize Component

I have C#.Net Windows application, I use a dataset and have done the databinding for the textbox controls in this application.

The application works fine on the development system.

But  fails in the Initialize component procedure, when it was installed on a deployment system. The system has the .Net Framework.

What could be cause for this failure.
 
0
esko_user
Asked:
esko_user
  • 2
  • 2
1 Solution
 
princeatapiCommented:
May i know what is the exact error message returned by the server ?
0
 
ajitha75Commented:
Do you have extra code in InitializeComponent? Can you paste your InitializeComponent code here..
0
 
esko_userAuthor Commented:
I found this error is due to the crystal report references. I have added the neccesary dll in my installer and now i get the below error..

System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
   at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()

I could not get the dll CrystalDecisions.ReportAppServer.CommLayer on my system.

How can i solve this..?
0
 
ajitha75Commented:
Are you using Windows Installer Project ? To which folder have you added the assembly? Try using the Special Folder "Global Assembly Cache Folder"

Thanks
Ajitha
0
 
esko_userAuthor Commented:
I got the solution from the microsoft site,

We have to first install the CRRedist2008_x86.msi which will configure crystal report runtime components and then install the application.

http://msdn.microsoft.com/en-us/library/ms225231.aspx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now