473,395 Members | 1,458 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

ERROR:Crystal Reports - Logon failed.

Hi all.

I want to get data from Sybase ASA9 to report named Subjektai.rpt in web
form. I made ODBC connection to DB and it looks OK. But whe i run project i
get an error like this.

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.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.]
.F(String  , EngineExceptionErrorID 
)
.A(Int16 , Int32 )
.@(Int16 )

CrystalDecisions.CrystalReports.Engine.FormatEngin e.GetPage(PageRequestConte
xt reqContext)

CrystalDecisions.ReportSource.LocalReportSourceBas e.GetPage(PageRequestConte
xt pageReqContext)
CrystalDecisions.Web.ReportAgent.u(Boolean N)
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()

What's wrong. I figured out that when logon information is applyed to
myTable in "myTable.ApplyLogOnInfo(myLogin);" it doesn't get a Password.
Password is blank.

Help anyone.

//////////////////////////////////

Subjektai crpt = new Subjektai();

CrystalDecisions.Shared.TableLogOnInfo myLogin;
foreach(CrystalDecisions.CrystalReports.Engine.Tab le myTable in
crpt.Database.Tables)

{

myLogin = myTable.LogOnInfo;

myLogin.ConnectionInfo.Password = "www";

myLogin.ConnectionInfo.UserID = "web";

myTable.ApplyLogOnInfo(myLogin); /////////////////////////
here is a problem it doesn't set password

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

}

CrystalReportViewer1.ReportSource = crpt;

/////////////////////////////////////////

And another problem: i can't make using report wizard OLE DB connection.
Drivers are installed. Why?

Help please.
Jul 21 '05 #1
2 2214
Shouldn't it be

myLogin = new myTable.LogOnInfo
"Gidrazas" <gi**************@centras.lt> wrote in message
news:#a**************@TK2MSFTNGP09.phx.gbl...
Hi all.

I want to get data from Sybase ASA9 to report named Subjektai.rpt in web
form. I made ODBC connection to DB and it looks OK. But whe i run project i get an error like this.

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.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.]
.F(String  , EngineExceptionErrorID 
)
.A(Int16 , Int32 )
.@(Int16 )

CrystalDecisions.CrystalReports.Engine.FormatEngin e.GetPage(PageRequestConte xt reqContext)

CrystalDecisions.ReportSource.LocalReportSourceBas e.GetPage(PageRequestConte xt pageReqContext)
CrystalDecisions.Web.ReportAgent.u(Boolean N)
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()

What's wrong. I figured out that when logon information is applyed to
myTable in "myTable.ApplyLogOnInfo(myLogin);" it doesn't get a Password.
Password is blank.

Help anyone.

//////////////////////////////////

Subjektai crpt = new Subjektai();

CrystalDecisions.Shared.TableLogOnInfo myLogin;
foreach(CrystalDecisions.CrystalReports.Engine.Tab le myTable in
crpt.Database.Tables)

{

myLogin = myTable.LogOnInfo;

myLogin.ConnectionInfo.Password = "www";

myLogin.ConnectionInfo.UserID = "web";

myTable.ApplyLogOnInfo(myLogin); /////////////////////////
here is a problem it doesn't set password

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

}

CrystalReportViewer1.ReportSource = crpt;

/////////////////////////////////////////

And another problem: i can't make using report wizard OLE DB connection.
Drivers are installed. Why?

Help please.

Jul 21 '05 #2
Nope. It's not working.

Did i mentioned that

{

myLogin = myTable.LogOnInfo;

myLogin.ConnectionInfo.Password = "www";

myLogin.ConnectionInfo.UserID = "web";

myTable.ApplyLogOnInfo(myLogin); ///////////////////////// here is a problem it doesn't set password

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

}


sets UserId, Server, DataBase,.. everything except Password?

Why is it so?

"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Shouldn't it be

myLogin = new myTable.LogOnInfo

Jul 21 '05 #3

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

Similar topics

0
by: BT | last post by:
Hi, I am trying to install php-mysql-4.0.6-7.i386.rpm(to get php to work with mysql as suggested for my earlier error). I get the following error for rpm -i php-mysql-4.0.6-7.i386.rpm. Error...
5
by: Greg | last post by:
Set Up Error - Failed to load resources from resource file Please check your set up. This plesently cordal and verbose error is greeting me in a very random and unpredictable way in a current VB...
0
by: Paul | last post by:
I have an existing application that has been installed and running for several months. I recently made a minor change to this application. When the application is installed on the user machine and...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
2
by: Dave Bartlett | last post by:
Hello, Just wondering if anyone new of a nice way to capture ASP.NET page error reports at runtime and deliver them via email? Thanks
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
0
by: bruce | last post by:
ASP.NET app running for about a year with no problem and suddenly this week it's giving error message. The same as the one decribed by another user. Even stranger is that we only have this problem...
1
by: Sebastian Mark | last post by:
Did anyone got error like that? When I'm trying to Update WebReference in my project this is an error I'm getting "Custom tool error: Failed to generate dataset. Undefined data type:...
6
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I'm running VS 2003/ASP.NET 1.1.4322.0 on XP SP2 All of a sudden I started to getting... "Error while trying to run project: Unable to start debugging on the web server. Server side-error...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.