Re: ERROR:Crystal Reports - Logon failed.
From: Jeff Dillon (jeff_at_removeemergencyreporting.com)
Date: 12/15/04
- Next message: Roger Bonine: "Object design question (two, actually)"
- Previous message: Nick Malik: "Re: Objects, objects, so many objects! ;-)"
- In reply to: Gidrazas: "ERROR:Crystal Reports - Logon failed."
- Next in thread: Gidrazas: "Re: ERROR:Crystal Reports - Logon failed."
- Reply: Gidrazas: "Re: ERROR:Crystal Reports - Logon failed."
- Messages sorted by: [ date ] [ thread ]
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.
>
>
- Next message: Roger Bonine: "Object design question (two, actually)"
- Previous message: Nick Malik: "Re: Objects, objects, so many objects! ;-)"
- In reply to: Gidrazas: "ERROR:Crystal Reports - Logon failed."
- Next in thread: Gidrazas: "Re: ERROR:Crystal Reports - Logon failed."
- Reply: Gidrazas: "Re: ERROR:Crystal Reports - Logon failed."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|