cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports errors - .NET 1.1

Former Member
0 Kudos

We have a windows service, which runs on a windows 2000 server.

Uptil March 2008 we have had no problems on this server, however recently it has been logging a plethora of errors

I am listing out one such exception here

2) Exception Information ********************************************* Exception Type: CrystalDecisions.CrystalReports.Engine.LogOnException ErrorID: LogOnFailed Message: Error in File C:\DOCUME1\sa_MFSA\LOCALS1\Temp\{5700EEB8-3A02-4906-8323-9DCC731F3F56}.rpt: Unable to connect: incorrect log on parameters. TargetSite: Boolean ThrowDotNetException(System.Exception) HelpLink: NULL Source: CrystalDecisions.ReportAppServer.DataSetConversion ============================================================================================ 3) Exception Information ********************************************* Exception Type: System.Runtime.InteropServices.COMException ErrorCode: -2147217393 Message: Error in File C:\DOCUME1\sa_MFSA\LOCALS1\Temp\{5700EEB8-3A02-4906-8323-9DCC731F3F56}.rpt: Unable to connect: incorrect log on parameters. TargetSite: Int32 GetLastPageNumber(CrystalDecisions.ReportAppServer.ReportDefModel.RequestContext) HelpLink: NULL Source: RptControllers.dll StackTrace Information ********************************************* at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)

I have checked all security permissions and they look fine to me.

We are using Crystal reports XI, and .NET framework 1.1

I would like to add, none of the reports connect to a database. they use xml and datasets for the merging reports.

There have been no changes to these reports lately!

Could someone point me in the right direction?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, Rajesh;

The error could very well be a permissions issue.

To find out for sure, use Microsoft's Process Monitor tool to log the program. Look for any failures in the list related to the report, and it should indicate if it is permissions or not.

http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx?PHPSESSID=d926

Regards,

Jonathan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Rajesh,

Can you make sure that the reports still show up properly in designer? Also try using the code to generate xml files which can be used in the reports as a xml datasource. When you try to update the existing fields using the xml it should get mapped properly. This is just to make sure that the xml is of the same schema as the report.

Code :

//to generate the xml schema file
datasetObject.WriteXmlSchema("c:\\temp\\myData1.xsd");
//to generate the xml file
datasetObject.WriteXml("c:\\temp\\myData1.xml",XmlWriteMode.WriteSchema);

Hope it helps!

AG.