Logon failed with Crystal Reports

Discussion in 'ASP .Net' started by Carlo Marchesoni, Aug 20, 2003.

  1. I have a Crystal Report that accesses one table in a very
    simple Access Database (no user no password).
    When Exporting the report to PDF format, the browser
    gives the following error:
    Logon failed.
    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.LogOnException:
    Logon failed.

    Source Error:


    Line 57: base.OnInit(e);
    Line 58: // Export
    Line 59: reportDocument1.Export();
    Line 60: // Build, View and Clear
    temporary file
    Line 61: Response.ClearContent();

    did anyone experience this problem and how could I solve
    it ?
    Thanks
    Carlo Marchesoni, Aug 20, 2003
    #1
    1. Advertising

  2. Did you set a ConnectionInfo object for the report document? For an Access
    database, you need sepcify the username as "admin" and password as blank
    string. Form more information about ConnectionInfo, you may refer to:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/crystlrf/ht
    ml/crlrfconnectioninfoclasstopic.asp


    Luke

    "Microsoft Security Announcement: Have you installed the patch for
    Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
    you to review the information at the following link regarding Microsoft
    Security Bulletin MS03-026
    http://www.microsoft.com/security/security_bulletins/ms03-026.asp and/or to
    visit Windows Update at http://windowsupdate.microsoft.com to install the
    patch. Running the SCAN program from the Windows Update site will help to
    insure you are current with all security patches, not just MS03-026."
    ¥xÆW·L³n§Þ³N³B¤ä´©³¡, Aug 21, 2003
    #2
    1. Advertising

  3. Carlo Marchesoni

    MSFT Guest

    Hi Carlo,

    There is no syntac error in your code. If you still get the "Logon failed"
    error", you may check the Windows account used by your program, to see if
    it has enough permission to read the database and write the PDF file.

    Additionally, ServerName (specified with DSN anme) may only contains the
    server inforamtion, not with database name. And you need to set all tables'
    logon inforation in the report.

    Luke

    "Microsoft Security Announcement: Have you installed the patch for
    Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
    you to review the information at the following link regarding Microsoft
    Security Bulletin MS03-026
    http://www.microsoft.com/security/security_bulletins/ms03-026.asp and/or to
    visit Windows Update at http://windowsupdate.microsoft.com to install the
    patch. Running the SCAN program from the Windows Update site will help to
    insure you are current with all security patches, not just MS03-026."
    MSFT, Aug 25, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. igitur
    Replies:
    3
    Views:
    9,679
    sprit01
    Apr 2, 2007
  2. GFro
    Replies:
    2
    Views:
    3,783
    Gregg Froelich
    Jul 23, 2004
  3. Milan Todorovic

    Crystal Reports 'Logon failed' problem

    Milan Todorovic, Feb 1, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    11,109
    =?Utf-8?B?Q2hyaXM=?=
    Mar 18, 2005
  4. John Dalberg
    Replies:
    1
    Views:
    565
    John Dalberg
    Feb 10, 2005
  5. Replies:
    9
    Views:
    6,866
    Joseph Bowen
    Mar 15, 2005
Loading...

Share This Page