Print Page | Close Window

Crystal Report log on error

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=8652
Printed Date: 10 Apr 2025 at 2:19pm


Topic: Crystal Report log on error
Posted By: ratul
Subject: Crystal Report log on error
Date Posted: 16 Dec 2009 at 5:34am
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.



Print Page | Close Window