Re: ERROR:Crystal Reports - Logon failed.

From: Jeff Dillon (jeff_at_removeemergencyreporting.com)
Date: 12/15/04


Date: Wed, 15 Dec 2004 08:27:00 -0800

Shouldn't it be

myLogin = new myTable.LogOnInfo
"Gidrazas" <gidrazas.no.spam@centras.lt> wrote in message
news:#afhbMn4EHA.3472@TK2MSFTNGP09.phx.gbl...
> Hi all.
>
> I want to get data from Sybase ASA9 to report named Subjektai.rpt in web
> form. I made ODBC connection to DB and it looks OK. But whe i run project
i
> get an error like this.
>
>
>
> Logon failed.
> 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: CrystalDecisions.CrystalReports.Engine.LogOnException:
> Logon failed.
>
> Source Error:
>
> An unhandled exception was generated during the execution of the
> current web request. Information regarding the origin and location of the
> exception can be identified using the exception stack trace below.
>
> Stack Trace:
>
> [LogOnException: Logon failed.]
> .F(String  , EngineExceptionErrorID 
> )
> .A(Int16 , Int32 )
> .@(Int16 )
>
>
CrystalDecisions.CrystalReports.Engine.FormatEngine.GetPage(PageRequestConte
> xt reqContext)
>
>
CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestConte
> xt pageReqContext)
> CrystalDecisions.Web.ReportAgent.u(Boolean N)
> CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e)
> System.Web.UI.Control.PreRenderRecursiveInternal()
> System.Web.UI.Control.PreRenderRecursiveInternal()
> System.Web.UI.Control.PreRenderRecursiveInternal()
> System.Web.UI.Page.ProcessRequestMain()
>
>
>
> What's wrong. I figured out that when logon information is applyed to
> myTable in "myTable.ApplyLogOnInfo(myLogin);" it doesn't get a Password.
> Password is blank.
>
> Help anyone.
>
> //////////////////////////////////
>
> Subjektai crpt = new Subjektai();
>
> CrystalDecisions.Shared.TableLogOnInfo myLogin;
>
>
> foreach(CrystalDecisions.CrystalReports.Engine.Table myTable in
> crpt.Database.Tables)
>
> {
>
> myLogin = myTable.LogOnInfo;
>
> myLogin.ConnectionInfo.Password = "www";
>
> myLogin.ConnectionInfo.UserID = "web";
>
> myTable.ApplyLogOnInfo(myLogin); /////////////////////////
> here is a problem it doesn't set password
>
> //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> }
>
> CrystalReportViewer1.ReportSource = crpt;
>
> /////////////////////////////////////////
>
> And another problem: i can't make using report wizard OLE DB connection.
> Drivers are installed. Why?
>
> Help please.
>
>



Relevant Pages

  • Re: Server Error in / Application
    ... > the current web request. ... > An unhandled exception was generated during the execution of the ... > the exception can be identified using the exception stack trace below. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Errors on Stress Test
    ... Just a stab in the dark, but any time you get random errors under load in a ... An unhandled exception occurred during the execution of the ... > current web request. ... > be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Errors on Stress Test
    ... Just a stab in the dark, but any time you get random errors under load in a ... An unhandled exception occurred during the execution of the ... > current web request. ... > be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.general)
  • Re: Server Error in / Application.
    ... The error looks like it could be coming from the unsupported MS Treeview ... An unhandled exception occurred during the execution of the ... > current web request. ... > be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Error problem: asp.net app trying to reference local file?
    ... An unhandled exception occurred during the execution of the ... current web request. ... can be identified using the exception stack trace below. ... sourceControl, String eventArgument) +18 ...
    (microsoft.public.dotnet.framework.aspnet)