Skip to Content

LogOnException Error at logon > COMException: No Error

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

public bool SetReportDataBaseConnection(DatabaseInfo dbconnection)

{

if (ReferenceEquals(DatabaseConnection, dbconnection) && ReportDbSet)

return true;

DatabaseConnection = dbconnection;

if (ReportLoaded)

{

var crConnectionInfo = new ConnectionInfo

{

UserID = DatabaseConnection.Username,

Password = DatabaseConnection.Password,

DatabaseName = DatabaseConnection.InitialCatalog,

ServerName = DatabaseConnection.Host

};

var crTableLogOnInfo = new TableLogOnInfo { 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;

return true;

}

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 15, 2013 at 12:27 AM

    Hello Steven

    If the report and app work in one place then invariably the issue is environmental. E.g.; more than likely you are looking at incorrect DB client, incorrectly installed DB client, 64 bit DB client vs. 32 bit DB client, etc., etc. You'll have to look at the difference between working and non working computers. Also se the following:

    Troubleshooting Guide to Database Connectivity Issues with Crystal Reports in Visual Studio .NET Applications

    - Ludek

    Follow us on Twitter

    Got Enhancement ideas? Try the SAP Idea Place

    Share Your Knowledge in SCN Topic Spaces

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.