In my program i have the problem that there occurs the error down blow. (LogOnException Error at logon > COMException: No Error)
This happens e.g. on virtual desktops (vmware) with windows 7 32 bit.
On some notebooks with windows 7 32bit or XP SP3 or the developer environment the error does not occur.
In this case i talk about the same report that i have testet. this report works with the same crystalruntime called from the same program, the same way.
The program ist called from a network drive.
there is no firewall that blocks traffic or anything else.
the report works well in the crystal designer.
I actually updated the runtime to CRRuntime_32bit_13_0_4.msi but the error is still there.
the error is thrown at VerifyDatabase().
Here you can download the report mybe it helps http://filex.mcon-mannheim.de/filex/zone/steven.spyrka/-1804743143
publicbool SetReportDataBaseConnection(DatabaseInfo dbconnection)
{
if (ReferenceEquals(DatabaseConnection, dbconnection) && ReportDbSet)
returntrue;
DatabaseConnection = dbconnection;
if (ReportLoaded)
{
var crConnectionInfo = newConnectionInfo
{
UserID = DatabaseConnection.Username,
Password = DatabaseConnection.Password,
DatabaseName = DatabaseConnection.InitialCatalog,
ServerName = DatabaseConnection.Host
};
var crTableLogOnInfo = newTableLogOnInfo { ConnectionInfo = crConnectionInfo };
Report.SetDatabaseLogon(DatabaseConnection.Username,
DatabaseConnection.Password,
DatabaseConnection.Host,
DatabaseConnection.InitialCatalog);
foreach (IConnectionInfo iinfo in Report.DataSourceConnections)
{
iinfo.SetConnection(DatabaseConnection.Host, DatabaseConnection.InitialCatalog,
DatabaseConnection.Username, DatabaseConnection.Password);
iinfo.SetLogon(DatabaseConnection.Username, DatabaseConnection.Password);
}
foreach (crystal.Table t in Report.Database.Tables)
t.ApplyLogOnInfo(crTableLogOnInfo);
#region Subreports setzen
foreach (crystal.ReportDocument subReport in Report.Subreports)
{
subReport.SetDatabaseLogon(DatabaseConnection.Username,
DatabaseConnection.Password,
DatabaseConnection.Host,
DatabaseConnection.InitialCatalog);
foreach (IConnectionInfo iinfo in subReport.DataSourceConnections)
{
iinfo.SetConnection(DatabaseConnection.Host, DatabaseConnection.InitialCatalog,
DatabaseConnection.Username, DatabaseConnection.Password);
iinfo.SetLogon(DatabaseConnection.Username, DatabaseConnection.Password);
}
foreach (crystal.Table t in subReport.Database.Tables)
t.ApplyLogOnInfo(crTableLogOnInfo);
}
#endregion
Report.VerifyDatabase();
ReportDbSet = true;
returntrue;
}
return ReportLoaded;
}
This is the code. Did i lose sight of something?
************** Ausnahmetext **************
CrystalDecisions.CrystalReports.Engine.LogOnException: Fehler bei Anmeldung. ---> System.Runtime.InteropServices.COMException:
Kein Fehler.
bei CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.VerifyDatabase()
bei CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.VerifyDatabase()
bei CrystalDecisions.CrystalReports.Engine.ReportDocument.VerifyDatabase()
--- Ende der internen Ausnahmestapelüberwachung ---
bei CrystalDecisions.CrystalReports.Engine.ReportDocument.VerifyDatabase()
bei ecs.core.reporting.Crystal.SetReportDataBaseConnection(DatabaseInfo dbconnection)
bei ecs.core.reporting.Crystal.SetReportDataBaseConnection()
bei ecs.core.reporting.Crystal.Print(ParameterInfos parameter)
bei ecs.core.reporting.ReportViewer.LoadViewer(basicGeneric[] instances, Boolean listAll, PrintOptions options)
bei ecs.core.gui.main.controls.ucCustomerEdit.btnPrint_Click(Object sender, EventArgs e)
bei System.Windows.Forms.Control.OnClick(EventArgs e)
bei DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)
bei DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)
bei DevExpress.XtraEditors.BaseControl.WndProc(Message& msg)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
This are the essential loaded DDLs:
CrystalDecisions.CrystalReports.Engine
Assembly-Version: 13.0.2000.0.
Win32-Version: 13.0.4.705.
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/13.0.2000.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll.
----------------------------------------
CrystalDecisions.Shared
Assembly-Version: 13.0.2000.0.
Win32-Version: 13.0.4.705.
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll.
----------------------------------------
CrystalDecisions.ReportAppServer.CommLayer
Assembly-Version: 13.0.2000.0.
Win32-Version: 13.0.4.705.
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll.
----------------------------------------
CrystalDecisions.ReportAppServer.ClientDoc
Assembly-Version: 13.0.2000.0.
Win32-Version: 13.0.4.705.
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll.
----------------------------------------
CrystalDecisions.ReportAppServer.DataDefModel
Assembly-Version: 13.0.2000.0.
Win32-Version: 13.0.4.705.
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll.
----------------------------------------
CrystalDecisions.ReportAppServer.CubeDefModel
Assembly-Version: 13.0.2000.0.
Win32-Version: 13.0.4.705.
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CubeDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll.
----------------------------------------
CrystalDecisions.ReportAppServer.ReportDefModel
Assembly-Version: 13.0.2000.0.
Win32-Version: 13.0.4.705.
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll.
----------------------------------------
CrystalDecisions.ReportAppServer.Controllers
Assembly-Version: 13.0.2000.0.
Win32-Version: 13.0.4.705.
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll.
----------------------------------------
CrystalDecisions.ReportAppServer.DataSetConversion
Assembly-Version: 13.0.2000.0.
Win32-Version: 13.0.4.705.
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll.
----------------------------------------
CrystalDecisions.Shared.resources
Assembly-Version: 13.0.2000.0.
Win32-Version: 13.0.4.705.
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared.resources/13.0.2000.0_de_692fbea5521e1304/CrystalDecisions.Shared.resources.dll.
----------------------------------------
CrystalDecisions.ReportAppServer.XmlSerialize
Assembly-Version: 13.0.2000.0.
Win32-Version: 13.0.4.705.
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.XmlSerialize/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.XmlSerialize.dll.
----------------------------------------
CrystalDecisions.CrystalReports.Engine.resources
Assembly-Version: 13.0.2000.0.
Win32-Version: 13.0.4.705.
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine.resources/13.0.2000.0_de_692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.resources.dll.
----------------------------------------
Thanks and kind regards for any help