p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Crystal Reports (http://p2p.wrox.com/forumdisplay.php?f=113)
-   -   logon failed (http://p2p.wrox.com/showthread.php?t=25886)

Rohit Ranjan February 22nd, 2005 06:50 AM

logon failed
 
Hi,
I am getting the error logon failed when I am running a web application with a crystalreport.The error is:

Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnExcept ion: 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.FormatEngin e.GetPage(PageRequestContext reqContext)
   CrystalDecisions.ReportSource.LocalReportSourceBas e.GetPage(PageRequestContext pageReqContext)
   CrystalDecisions.Web.ReportAgent.u(Boolean N)
   CrystalDecisions.Web.CrystalReportViewer.OnPreRend er(EventArgs e)
   System.Web.UI.Control.PreRenderRecursiveInternal()
   System.Web.UI.Control.PreRenderRecursiveInternal()
   System.Web.UI.Control.PreRenderRecursiveInternal()
   System.Web.UI.Page.ProcessRequestMain()

 Can anyone help.
regards,


Rohit

HenrryVargas February 28th, 2005 06:19 PM

   Dim logOnInfo As New TableLogOnInfo
        logOnInfo = cr.Database.Tables.Item(0).LogOnInfo
        logOnInfo.ReportName = "rptfactsov.rpt"

        ' Establecer los parámetros de conexión.

        logOnInfo.ConnectionInfo.ServerName = database
        logOnInfo.ConnectionInfo.Password = password
        logOnInfo.ConnectionInfo.UserID = user
        cr.Database.Tables.Item(0).ApplyLogOnInfo(logOnInf o)



All times are GMT -4. The time now is 04:33 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.