hello,
i have created some reports with crystal.
Form_Load of my Form :
[code]
// my Class loads a DataSet
AntragReparaturs antrag1 =
new AntragReparaturs();DataSet set1 = antrag1.Report_RepAnnahme_Kunde_GetData(
this.antragsID4Edit);// Instance of my report
Report_RepAnnahme_Kunde rep1 = new Report_RepAnnahme_Kunde();
// SetDataSource on DataSet
rep1.SetDataSource(set1.Tables[0]);
crystalReportViewer1.ReportSource = rep1;
[/code]
this works fine on my development-machine,
but on other computers SetDataSource failed
the error message is
[code]
System.MissingMethodException: Method not found: 'Void CrystalDecisions.ReportAppServer.Controllers.ISCRDatabaseController.ReplaceConnection(System.Object, System.Object, System.Object, System.Object)'. at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type) at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type) at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataTable dataTable) at Main.Controls.Reports.Report_RepAnnahme_Kunde_Form.Report_RepAnnahme_Kunde_Form_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m)
[/code]
I have implemented my Setup-routine like described in :
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=8949&SiteID=1
anybody knows, whats wrong with the installer or the CR-ASSEMBLIES

Problems with SetDataSource
SvenL
Hi everybody,
I had the same problem with the method ApplyLogOnInfo and seems to be impossible to solve it.
Method not found: 'Void CrystalDecisions.ReportAppServer.Controllers.ISCRDatabaseController.ReplaceConnection(System.Object, System.Object, System.Object, System.Object)'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MissingMethodException: Method not found: 'Void CrystalDecisions.ReportAppServer.Controllers.ISCRDatabaseController.ReplaceConnection(System.Object, System.Object, System.Object, System.Object)'.
HELP!!!!!!!!!!
Lorenzo
Arsany
Dim ConnInfo As New ConnectionInfo
ConnInfo =
New ConnectionInfoConnInfo.ServerName = server
ConnInfo.Password = pwd
ConnInfo.UserID = uid
CRViewer.ReportSource = crpt
For Each TLInfo As TableLogOnInfo In CRViewer.LogOnInfoTLInfo.ConnectionInfo = ConnInfo
NextThat should do it
Scott518
Hi,
I get this message too when attempting a SetDatabaseLogon against the ReportDocument (and I have tried all the other methods for setting credentials at runtime as well, with the same results)
A post on the BOBJ forums gave me an idea. Using Lutz's Reflector to examine the CrystalDecision.ReportAppServer.Controllers.dll on my dev machine, I could see the missing method. Moving to the target machine, on which I had installed the redistributable package that ClickOnce deployment pushes out to the client if you mark it as a prerequisite (I didn't get anywhere without it), I tried extracting the same dll from the GAC. Reflector showed that in this version the ReplaceConnection method was indeed missing.
Looking at version numbers, the version the redistributable installed into the GAC was 10.2.9700.0 (commented 'release'), the version extracted from the GAC on my dev machine was 10.2.51014.0 (commented Retail).
I don't know if this is any help to anyone, I have tried to replace the version without that method with the one that does have it, but there is no way of removing the bad version from the GAC without uninstalling the redistributable package, and then you can't install the good version as it is doesn't have a strong name, key etc.
I guess we need to wait until a corrected redistributable is available, this is a real show stopper for me, I've now wasted more than a week trying to sort this out...
Jeremy
SylvainLS
wgw4
I have the same problem and struggling for days now, have you got the solution already please post it here.
thanks
gener