Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
| Search | Today's Posts | Mark Forums Read
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 18th, 2004, 12:23 PM
Friend of Wrox
 
Join Date: Jul 2003
Location: , , .
Posts: 121
Thanks: 1
Thanked 0 Times in 0 Posts
Default "Logon failed" error in ASP.NET

Hello everybody,
I am using Crystal Report in my ASP.NET application. If I try to open the report with Crystal Viewer on my WEB page I am getting this error:

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.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()

My code behind is:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here

        If Session("ReportName") = "rptNonUpdatedRecords" Then
            Dim crpt As rptNonUpdatedRecords
            crpt = New rptNonUpdatedRecords
            For Each myTable In crpt.Database.Tables
                myLogin = myTable.LogOnInfo
                myLogin.ConnectionInfo.ServerName = "GRAND01"
                myLogin.ConnectionInfo.DatabaseName = "D:\HAB_WEB\HABDatabases\HAB_LOGIN.mdb"
                myLogin.ConnectionInfo.Password = ""
                myLogin.ConnectionInfo.UserID = ""
                myTable.ApplyLogOnInfo(myLogin)
            Next
            CrystalReportViewer1.ReportSource = Server.MapPath("rptNonUpdatedRecords.rpt")
            'CrystalReportViewer1.DataBind()
        End If

End Sub

I am using an Access 2000 database to fit data for the reports, no User Id, no Passwords. What am I doing wrong or missing?
Please help!!!!!

-Dmitriy


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Message: Asp.Net Server failed to start ... ramakrishna.one .NET Framework 2.0 0 June 9th, 2007 03:23 AM
logon failed serdarbyktmz Crystal Reports 0 April 18th, 2007 10:22 AM
Logon Failed! VannAustin BOOK: Professional Crystal Reports for VS.NET 0 March 3rd, 2005 05:13 AM
LOGON FAILED! winnie1778 Crystal Reports 1 January 25th, 2005 04:28 AM
Logon failed. msrnivas .NET Web Services 3 January 24th, 2005 02:56 PM





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