472,378 Members | 1,229 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,378 software developers and data experts.

Logon Failed with Crystal Reports and VB.NET

Hi,

I am getting the following error running a crystal report
with VB.NET

Exception Details:
CrystalDecisions.CrystalReports.Engine.LogOnExcept ion:
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.]
.K(String 
, EngineExceptionErrorID  )
.F(Int16 , Int32 )
.E(Int16 )

CrystalDecisions.CrystalReports.Engine.FormatEngin e.GetPag
e(PageRequestContext reqContext)

CrystalDecisions.ReportSource.LocalReportSourceBas e.GetPag
e(PageRequestContext pageReqContext)
CrystalDecisions.Web.ReportAgent.v(Boolean `)
CrystalDecisions.Web.CrystalReportViewer.OnPreRend er
(EventArgs e)
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Page.ProcessRequestMain()


I get the error when running report1 as a web
application. The same report when run as a windows
application runs without any problems.
I ran another sample report as a web application which
just retrieves information from a table in our datatabase
and it ran fine.
The only thing I change while running report1 is change
the table name and report reference.
The difference between the 2 reports is that report1 has
Grouping fields and sample does not. Rest everything is
the same between the 2 runs.

I don't know why I am getting this error. Can anybody
please shed some light on this?

Not much code inside the webform.
InitializeComponent()
''Create an instance of the strongly-typed report object
crReportDocument = New CrystalReport1()
'' Create a new instance of the tablelogoninfos class
which contains
''the tablelogoninfo objects for each table in the
report
crTableLogonInfos = New TableLogOnInfos()

''Create a new instance of the TableLogonInfo
class which contains
''the connection information for each table
crTableLogonInfo = New TableLogOnInfo()

''Set the connection properties
crConnectionInfo = New ConnectionInfo()
With crConnectionInfo
.ServerName = "DEV"
.DatabaseName = "Taos"
.UserID = "sa"
.Password = ""
End With
crTableLogonInfo.ConnectionInfo = crConnectionInfo
crTableLogonInfo.TableName = "Report_StdDemoA"
crTableLogonInfos.Add(crTableLogonInfo)

CrystalReportViewer1.LogOnInfo = crTableLogonInfos

CrystalReportViewer1.ReportSource =
crReportDocument
Thanks a lot in advance....
-Ambika
Jul 21 '05 #1
0 4980

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mukesh Kumar | last post by:
hi all, I have created some independent reports through crystal reports developer edition v 10 and developed a small tool in .net framework v 1.1 to view these reports through the crystal reports...
4
by: Rey | last post by:
Howdy all. Using VSNet 2003 on an XP Pro SP2 boox. Trying to use Crystal Reports to access an mdb file with access security/workspace. Simple report of customers but after spending mucho time...
2
by: Karun Karunakaran | last post by:
Hi, I am using the Crystal Enterprise .NET assemblies to generate and display a crystal report in a webform. This report connects to an SQL server (running locally) using a specific username and...
2
by: GFro | last post by:
I am getting the following error since we upgraded from .NET Framework 1.0 to 1.1. The reports all ran fine yesterday. I get this error in all apps with reports. The apps run fine but the...
1
by: andy lim | last post by:
Hello all, I'm developing a web application using ASP.NET/VB. I have problem in viewing my CR reports. It returns following exception when I tried to view any CR report. ...
3
by: Milan Todorovic | last post by:
Hello, I need help. I have experience in ASP.NET programming, but this is my first dealing with Crystal Reports. I'm trying to make the most basic report purely for testing purposes: connect to...
1
by: John Dalberg | last post by:
Running Crystal Reports with the hotfixes and patches & VS 2003. I created a CR report on my development server which has SQL Server. The report runs fine inside Visual Studio. When I switched...
9
by: mollyf | last post by:
I have tried various suggestions that I have found searching the newsgroups and still haven't been able to figure why I keep getting the logon failed error. I created a report in Crystal (not...
19
by: Michael O'Donnell | last post by:
Hi All Am having major problem with crystal reports...Have designed my report no problem, its when I try to run and display ther report that I am getting a "Login Failed" message. At first I...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...
0
by: F22F35 | last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.