CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2009
    Posts
    1

    [HELP] Logon failed error in Crytal Report

    Hi,

    I have crate a crystal Report using 9.1 version. its working properly in Windows Xp. But when I upload in Client machine (Windows 2003) its give "log on failed Error" . I have already gave Network Service, AspNet user etc. permissions to c:\windows\temp folder .And I am also restart the server. But still the problem not solved. The error is occurred in following line :

    crReport.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat,Server.MapPath("pdf/"+s_proposal_id+".pdf"));

    Please help me to way out from this problem.

    The error is given bellow :

    Server Error in '/' Application.
    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:

    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.]
    .I(String , EngineExceptionErrorID ) +506
    .D(Int16 , Int32 ) +537
    CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext) +469
    CrystalDecisions.CrystalReports.Engine.FormatEngine.Export() +107
    CrystalDecisions.CrystalReports.Engine.ReportDocument.Export() +67


    Thanks in advance.

  2. #2
    Join Date
    Dec 2009
    Posts
    6

    Re: [HELP] Logon failed error in Crytal Report

    Since the error is "LogOn Failed", give details of how the Crystal Report file (.rpt) is loaded and how it is connecting to the database. How do you know that the error is at:

    crReport.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat,Server.MapPath("pdf/"+s_proposal_id+".pdf"));

    Your codes may help to solve the issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured