Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports 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
 
Old March 5th, 2004, 08:23 AM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Logon Failed: Unhadled Exception

Facing this problem when trying to open a report in .Net web application. How to resolve it?
 
Old March 5th, 2004, 11:38 AM
Registered User
 
Join Date: Mar 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What version of Crystal is the Report in?
What is the data source for the report?

Chris Lane
 
Old March 15th, 2004, 05:49 PM
Registered User
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have about the same problem. I try to make my first report but when I try to open it in the browser I get the message Logon failed. I have MS SQL Server, VS.NET 2002 with SP2 and Windows XP. During the development I use Integrated security. CrystalDecisions has an article (c2010371), not for integrated security, which suggested the following solution that didn't solve my problem:

 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    Dim crtableLogoninfos As New TableLogOnInfos()
    Dim crtableLogoninfo As New TableLogOnInfo()
    Dim crConnectionInfo As New ConnectionInfo()
    Dim CrTables As Tables
    Dim CrTable As Table
    Dim TableCounter As Integer
    Dim crReportDocument As New report1()

    With crConnectionInfo
      .ServerName = "severname"
      .UserID = "userid"
      .Password = "password"
      .DatabaseName = "databasename"
    End With

    CrTables = crReportDocument.Database.Tables
    For Each CrTable In CrTables
      crtableLogoninfo = CrTable.LogOnInfo
      crtableLogoninfo.ConnectionInfo = crConnectionInfo
      CrTable.ApplyLogOnInfo(CrTable.LogOnInfo)
    Next

    CrystalReportViewer1.ReportSource = crReportDocument

  End Sub

  Private Sub CrystalReportViewer1_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Init

  End Sub

Just now I have no more ideas so if anyone could help me I would :)

Eje





Similar Threads
Thread Thread Starter Forum Replies Last Post
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 Rohit Ranjan Crystal Reports 1 February 28th, 2005 06:19 PM
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.