Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 October 13th, 2005, 10:46 AM
Registered User
 
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Crystal Report Logon failed

dear all,

i'm getting error while trying open myreport.aspx.
The problem is “refresh report” doesn’t work when Crystal Report is build under ASP.NET

With connection Window authentication. The error messages shown as below:

LogonException.LogonFailed

here is my code:

        Dim Rpt As New ReportDocument
        Dim Tabels As New TableLogOnInfos
        Dim Tabel As New TableLogOnInfo
        Dim Konek As New ConnectionInfo
        Dim Folder As String

        Folder = Server.MapPath("\reports\myreport.rpt")
        Rpt.Load(Folder)
        With Konek
            .ServerName = "myserver"
            .DatabaseName = "mydb"
        End With

        Tabel.ConnectionInfo = Konek
        Tabels.Add(Tabel)
        cr.LogOnInfo = Tabels
        cr.ReportSource = Rpt
        cr.RefreshReport() <<-- error line

FYI, i use windows authentication to logon to my ms-sqlserver.

what should i do??? coz i also try this code in VB.NET and it's work!
thanks for help.
 
Old October 13th, 2005, 01:06 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

See this thread:
http://www.tek-tips.com/viewthread.cfm?qid=1123137






Similar Threads
Thread Thread Starter Forum Replies Last Post
Database logon problem with Crystal Report jaucourt Crystal Reports 6 September 25th, 2009 11:39 AM
logon error while exporting crystal report hotshot_21 Crystal Reports 0 February 28th, 2006 07:37 AM
Crystal Reports ActiveX Designer : Logon failed. thangna BOOK: Professional Crystal Reports for VS.NET 2 November 24th, 2004 06:37 AM
Crystal Reports ActiveX Designer Logon failed thangna Crystal Reports 1 November 11th, 2004 08:40 PM
Logon failed... exporting crystal reports into pdf JerBlur VB.NET 0 July 23rd, 2004 02:00 AM





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