Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 1st, 2003, 10:01 PM
Registered User
Join Date: Oct 2003
Location: hong kong, , Hong Kong.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Logon Fail in Crtystal Report with ASP.Net

Hi all,
I want to create a crystal report using asp.net running on my Local PC... I have add a physical crystal report into my .net project and
can connect to the my local SQL Server - Northwind Database and drag-N-drop the "Customers" Table's fields to the crystal report.

-My setting-
sql server: using sql and window authentication, use "sa" as username and "password" as password.

However, when I run the code, I receive an error message "Logon Failed"... and my code is shown as below:

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
        Dim crTableLogoninfos As New TableLogOnInfos
        Dim crTableLogoninfo As New TableLogOnInfo
        Dim crConnectionInfo As ConnectionInfo
        Dim crReportDocument As New testRpt

        crTableLogoninfos = New TableLogOnInfos
        crTableLogoninfo = New TableLogOnInfo
        crConnectionInfo = New ConnectionInfo
        With crConnectionInfo
            .ServerName = "MyComputerName"
            .DatabaseName = "NorthWind"
            .UserID = "sa"
            .Password = "password"
        End With

        crTableLogoninfo.ConnectionInfo = crConnectionInfo
        CrystalReportViewer1.LogOnInfo = crTableLogoninfos
        CrystalReportViewer1.ReportSource = crReportDocument

End Sub

Anyone have an idea what's wrong ?


Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logon Problem using Crystal Report and Asp.net ??? charles Crystal Reports 13 March 1st, 2007 02:49 PM
crystal report with asp.net log-on fail exception avinash sharma LNCT Crystal Reports 0 December 6th, 2004 01:42 AM
"Logon failed" error in ASP.NET Dmitriy Pro VB 6 0 August 18th, 2004 12:23 PM
Login Fail - Access a Crystal Report from . NET rsk Crystal Reports 0 August 17th, 2004 07:29 AM
Login fail Err when view report on Report Server dillig BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 July 22nd, 2004 05:31 AM

All times are GMT -4. The time now is 10:31 PM.

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