PC Review


Reply
Thread Tools Rate Thread

Crystal Reports Login Problem...different I think

 
 
stephan@pathcom.com
Guest
Posts: n/a
 
      20th Jan 2005
A dollar to anyone with a working solution...

Hello everyone, there are 101+ posts regarding the login exception but
I think mine may be different as I have read through all the posts and
couldn't find a single reference to my issue.

Setup:
I've built a class that exposes a public method which returns a
datatable. I have created a report and set up it's data connection to
point to this compiled class. The report runs great and without issue.

However, I would like to access this report from a web page and so
using the ReportDocument I load the report and try to export it I get
the following error. I am trying to build Reports classes that I can
use for all my reports and have the reports bind to the .dll.

Like I said, the report generates properly when I run just the report,
however, when I try to call the report from a webpage I get this issue.
I'm confused because the .dll should be managing all the login
credentials and simply send back a datatable. I don't understand why
Crystal is trying to play with the login.

Any thoughts? It seems like everyone else is adding the report to the
project. I don't want to do that. I don't want the reports to be part
of the project at all.

Thanks.




CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
Details: mscorlib : File or assembly name AUS.Common.Reports.dll, or
one of its dependencies, was not found. Failed to open a rowset. Error
in File C:\WINNT\TEMP\{8188BFC4-0624-4BF0-9BFC-E7725B25BE0F}.rpt:
Unable to connect: incorrect log on parameters. --->
System.Runtime.InteropServices.COMException (0x8004100F): Logon failed.
Details: mscorlib : File or assembly name AUS.Common.Reports.dll, or
one of its dependencies, was not found. Failed to open a rowset. Error
in File C:\WINNT\TEMP\{8188BFC4-0624-4BF0-9BFC-E7725B25BE0F}.rpt:
Unable to connect: incorrect log on parameters. at
CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions
pExportOptions, RequestContext pRequestContext) at
CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext
reqContext) --- End of inner exception stack trace --- at
CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception
e) at
CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext
reqContext) at
CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext
reqContext) at
CrystalDecisions.CrystalReports.Engine.ReportDocument.y(ExportOptions
1) at
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions
options, HttpResponse response, Boolean asAttachment, String
attachmentName) at
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType
formatType, HttpResponse response, Boolean asAttachment, String
attachmentName) at WebApplication3.WebForm1.test1() in
c:\inetpub\wwwroot\webapplication3\webform1.aspx.cs:line 55

 
Reply With Quote
 
 
 
 
Elton Wang
Guest
Posts: n/a
 
      21st Jan 2005
Hi Stephan,

How does your crystal report bind it's data source? Could
you give more detail info?

Elton Wang
(E-Mail Removed)

>-----Original Message-----
>A dollar to anyone with a working solution...
>
>Hello everyone, there are 101+ posts regarding the login

exception but
>I think mine may be different as I have read through all

the posts and
>couldn't find a single reference to my issue.
>
>Setup:
>I've built a class that exposes a public method which

returns a
>datatable. I have created a report and set up it's data

connection to
>point to this compiled class. The report runs great and

without issue.
>
>However, I would like to access this report from a web

page and so
>using the ReportDocument I load the report and try to

export it I get
>the following error. I am trying to build Reports

classes that I can
>use for all my reports and have the reports bind to

the .dll.
>
>Like I said, the report generates properly when I run

just the report,
>however, when I try to call the report from a webpage I

get this issue.
>I'm confused because the .dll should be managing all the

login
>credentials and simply send back a datatable. I don't

understand why
>Crystal is trying to play with the login.
>
>Any thoughts? It seems like everyone else is adding the

report to the
>project. I don't want to do that. I don't want the

reports to be part
>of the project at all.
>
>Thanks.
>
>
>
>
>CrystalDecisions.CrystalReports.Engine.LogOnException:

Logon failed.
>Details: mscorlib : File or assembly name

AUS.Common.Reports.dll, or
>one of its dependencies, was not found. Failed to open a

rowset. Error
>in File C:\WINNT\TEMP\{8188BFC4-0624-4BF0-9BFC-

E7725B25BE0F}.rpt:
>Unable to connect: incorrect log on parameters. --->
>System.Runtime.InteropServices.COMException (0x8004100F):

Logon failed.
>Details: mscorlib : File or assembly name

AUS.Common.Reports.dll, or
>one of its dependencies, was not found. Failed to open a

rowset. Error
>in File C:\WINNT\TEMP\{8188BFC4-0624-4BF0-9BFC-

E7725B25BE0F}.rpt:
>Unable to connect: incorrect log on parameters. at
>CrystalDecisions.ReportAppServer.Controllers.ReportSourceC

lass.Export(ExportOptions
>pExportOptions, RequestContext pRequestContext) at
>CrystalDecisions.ReportSource.EromReportSourceBase.ExportT

oStream(ExportRequestContext
>reqContext) --- End of inner exception stack trace --- at
>CrystalDecisions.ReportAppServer.ConvertDotNetToErom.Throw

DotNetException(Exception
>e) at
>CrystalDecisions.ReportSource.EromReportSourceBase.ExportT

oStream(ExportRequestContext
>reqContext) at
>CrystalDecisions.CrystalReports.Engine.FormatEngine.Export

ToStream(ExportRequestContext
>reqContext) at
>CrystalDecisions.CrystalReports.Engine.ReportDocument.y

(ExportOptions
>1) at
>CrystalDecisions.CrystalReports.Engine.ReportDocument.Expo

rtToHttpResponse(ExportOptions
>options, HttpResponse response, Boolean asAttachment,

String
>attachmentName) at
>CrystalDecisions.CrystalReports.Engine.ReportDocument.Expo

rtToHttpResponse(ExportFormatType
>formatType, HttpResponse response, Boolean asAttachment,

String
>attachmentName) at WebApplication3.WebForm1.test1() in
>c:\inetpub\wwwroot\webapplication3\webform1.aspx.cs:line

55
>
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports Problem - Database Login gduvall@rejis.org Microsoft Dot NET 3 5th Jul 2007 06:01 PM
Login problem while Accesssing password protected Access DataBase with Crystal Reports innocentpal@gmail.com Microsoft Access 1 21st Aug 2006 01:04 PM
GAC entries for Crystal Reports + database login problem mikemeamail@net2000.ch Microsoft Dot NET Framework 0 12th Jun 2006 01:28 PM
Crystal Reports - Database Login? Chris Ashley Microsoft VB .NET 1 12th Nov 2004 04:35 PM
Crystal reports login screen problem Alpana Bajaj Microsoft Dot NET Framework Forms 0 28th Jan 2004 03:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:43 AM.