CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed

1,341 views
Skip to first unread message

tearz

unread,
Sep 22, 2008, 12:39:56 AM9/22/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi,

Urgently require advise on how to rectify the following issue.

I've deployed a new application developed using VS2008, complied
in .NET
Framework 2.0, into a web server whose applications were developed
with
VS2003.
My new application developed from VS2008 does not have any crystal
report components. Its only a simple Webform and connecting to DB for
retreivals & updates. I've removed this application from webserver.

however its the deployment of this application is affecting the those
application developed with VS2003 with crystal report components.

After my deployment, older applications that used .NET Crystal Report
component developed with VS2003 were affected. Is there any advise on
what
can i do to the web server?

Web server is already have.NET Framework 1.0, 1.1 and 2.0.

I've tried the following to rectify but NONE seem to work
1) aspnet_regiis -u and aspnet_regiis -i for .NET framework 1.1
2) redeploy the older applications to webserver
3) remap the fields using Set datasource and re-deploy
4) running the .NET framework 1.1's setup files hoping to repair any
damage files due to the deployment of VS2008's application.


This is the error I've got is as below

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.GetLastPageNumber(ReportPageRequestContext
reqContext) +182

CrystalDecisions.ReportSource.LocalReportSourceBase.GetLastPageNumber(ReportPageRequestContext
reqContext) +174
CrystalDecisions.Web.ReportAgent.get_LastPageNumber() +34
CrystalDecisions.Web.ReportAgent.u(Boolean n) +104
CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e)
+108
System.Web.UI.Control.PreRenderRecursiveInternal() +62
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Page.ProcessRequestMain() +1499


Thanks for any reponse.

Hope to hear from anyone soon. Very urgent!

Hrishi R

unread,
Sep 23, 2008, 1:06:57 AM9/23/08
to DotNetDe...@googlegroups.com
Hi,

Have you tried settiing the data source again and then deploying?

Log On Error means may be some problem with the data source settings.

I think this may be the cause.

Regards
Hrishi

tearz

unread,
Sep 23, 2008, 2:49:20 AM9/23/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi Hri,

the data source are set in the .vb files, here's one of the example

rpt.SetDataSource(dst)

its using a XML schema as the datasource, currently i can only set the
XSD file from VS2003, anywhere else can i set this? my webserver does
not have any VS installed.

thanks!

On Sep 23, 1:06 pm, "Hrishi R" <hris...@gmail.com> wrote:
> Hi,
>
> Have you tried settiing the data source again and then deploying?
>
> Log On Error means may be some problem with the data source settings.
>
> I think this may be the cause.
>
> Regards
> Hrishi
>
> > CrystalDecisions.CrystalReports.Engine.FormatEngine.GetLastPageNumber(Repor­tPageRequestContext
> > reqContext) +182
>
> > CrystalDecisions.ReportSource.LocalReportSourceBase.GetLastPageNumber(Repor­tPageRequestContext
> > reqContext) +174
> > CrystalDecisions.Web.ReportAgent.get_LastPageNumber() +34
> > CrystalDecisions.Web.ReportAgent.u(Boolean  n) +104
> > CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e)
> > +108
> > System.Web.UI.Control.PreRenderRecursiveInternal() +62
> > System.Web.UI.Control.PreRenderRecursiveInternal() +125
> > System.Web.UI.Control.PreRenderRecursiveInternal() +125
> > System.Web.UI.Page.ProcessRequestMain() +1499
>
> > Thanks for any reponse.
>
> > Hope to hear from anyone soon. Very urgent!- Hide quoted text -
>
> - Show quoted text -

kierenj

unread,
Sep 24, 2008, 5:14:37 AM9/24/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I've had the displeasure of working with Crystal Reports for too many
years..

Logon problems are a pain. The Crystal reports document object model
has a method, SetDatabaseLogon, if its viable to set the username and
password from within the code, it overrides the .rpt file details and
may fix this issue. There are many hidden bugs and issues throughout
Crystal Reports and it may be that some so-called 'defensive
programming' like this is required.

Hope this helps
Reply all
Reply to author
Forward
0 new messages