473,657 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CrystalReports, Login Failed

Hi,

I want to use Crystal Reports in my asp.net application. I get this error:
###
CrystalDecision s.CrystalReport s.Engine.LogOnE xception: Logon failed.
###

I have read this solution and then I applied solution:
http://support.microsoft.com/default...en-us%3B319264
But I still get logon exception.

Is there any other solution?

My Code:
############### ############### ############### #
RL.ReportFiles. Test002 crReportDocumen t = new RL.ReportFiles. Test002();

TableLogOnInfo crTableLogOnInf o = new TableLogOnInfo( );
ConnectionInfo crConnectionInf o = new ConnectionInfo( );

//Crystal Report Properties
CrystalDecision s.CrystalReport s.Engine.Databa se crDatabase;
CrystalDecision s.CrystalReport s.Engine.Tables crTables;

crConnectionInf o.ServerName = "SAKBULAK";
crConnectionInf o.DatabaseName = "BIZDESKDB" ;
crConnectionInf o.UserID = "BIZDESK_login" ;
crConnectionInf o.Password = "bizsengokdesk" ;
crDatabase = crReportDocumen t.Database;
crTables = crDatabase.Tabl es;

foreach(Crystal Decisions.Cryst alReports.Engin e.Table crTable in crTables)
{
crTableLogOnInf o = crTable.LogOnIn fo;
crTableLogOnInf o.ConnectionInf o = crConnectionInf o;
crTable.ApplyLo gOnInfo(crTable LogOnInfo);
}

reportViewer.Re portSource = crReportDocumen t;
############### ############### ############### #
--
_______________ _______________
Åženol Akbulak
Nov 19 '05 #1
5 1366
Hi Senol,

Welcome to ASPNET newsgroup.
Looking at the natural of the error you encountered, seems a authentication
security issue. Is the SQLServer you are connecting to using Integrated
authentication or mixed mode? If possible you can turn on the SqlProfiler
on the SQLdb server to see whether there occurs authentication fail message
in the profile log. If occur, that means this is a security authentication
problem. Also, I suggest you try test from a simple report first , that'll
help make the problem more convenient to isolate.

In addition, I've found some similiar issue in the public group and some
others also provide some info:

http://www.vbcity.com/forums/faq.asp...stal%20Reports

If you still have no luck on this, I recommend that you try contacting the
CR support guys or newsgroup for some further assistance since this is a
common issue, there may have more sophisticated TS means on this.

#How To Get Help with Crystal Reports - International and U.S.
http://support.microsoft.com/default.aspx?id=100368

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Nov 19 '05 #2
Hi Steven,

My DB is on SQL Server. I used profiler and I saw "login failed" audit on
profiler log. And I see also that although I write this code:
#########
crConnectionInf o.UserID = "MYUSER";
crConnectionInf o.Password = "MYPASSWORD ";
crDatabase = crReportDocumen t.Database;
crTables = crDatabase.Tabl es;

foreach(Crystal Decisions.Cryst alReports.Engin e.Table crTable in crTables)
{
crTableLogOnInf o = crTable.LogOnIn fo;
crTableLogOnInf o.ConnectionInf o = crConnectionInf o;
crTable.ApplyLo gOnInfo(crTable LogOnInfo);
}
#########
it seems LoginUser is "NT AUTHORITY\NETWO RK SERVICE". I dont want to use
integrated security. But it tries to login with integrated security.
"Steven Cheng[MSFT]" wrote:
Hi Senol,

Welcome to ASPNET newsgroup.
Looking at the natural of the error you encountered, seems a authentication
security issue. Is the SQLServer you are connecting to using Integrated
authentication or mixed mode? If possible you can turn on the SqlProfiler
on the SQLdb server to see whether there occurs authentication fail message
in the profile log. If occur, that means this is a security authentication
problem. Also, I suggest you try test from a simple report first , that'll
help make the problem more convenient to isolate.

In addition, I've found some similiar issue in the public group and some
others also provide some info:

http://www.vbcity.com/forums/faq.asp...stal%20Reports

If you still have no luck on this, I recommend that you try contacting the
CR support guys or newsgroup for some further assistance since this is a
common issue, there may have more sophisticated TS means on this.

#How To Get Help with Crystal Reports - International and U.S.
http://support.microsoft.com/default.aspx?id=100368

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #3
Thanks for your reply Senol,

Not sure what the Crystal Report has done internally on the authentication,
curently what we can check is the SQLServer db's authenticaiton mode, is
it configured as Integrated windows only or mixed mode? If it has already
set as integrated windows only, I'm afraid there must have something in CR
need to configure to use SQLServer authentcation mode. I think you can
contact the CR support guys to see whether they've addressed such problem.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #4
Thank you Seteven.

With your help, I relized that I must use mixed mode when I create new
report. I did a successful test.

Thank you again. Have a nice day.

"Steven Cheng[MSFT]" wrote:
Thanks for your reply Senol,

Not sure what the Crystal Report has done internally on the authentication,
curently what we can check is the SQLServer db's authenticaiton mode, is
it configured as Integrated windows only or mixed mode? If it has already
set as integrated windows only, I'm afraid there must have something in CR
need to configure to use SQLServer authentcation mode. I think you can
contact the CR support guys to see whether they've addressed such problem.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #5
Cool!

Wish you good luck!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #6

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

Similar topics

4
11398
by: anannj | last post by:
Hi everyone, I have a Crystal Report with a subreport in a windows application, which is to be exported to the pdf file. I followed the instructions on http://support.crystaldecisions.com/library/kbase/articles/c2010275.asp to set up the log on information. But I always got the exception at the statement: tbl.Location = ...; The error message is listed below:
4
7227
by: rrober07 | last post by:
Hello, My Setup is I have a Web Server machine(Devweb01), Database SQL Machine(Devsql01), a Client Machine(local machine) I have configured the SQL machine as follows: 1) Added local Aspnet user account (with same password as aspnet user on IIS (Devweb01)) 2) edited local machine.config file <ProcessModel> Password attribute to same password (both on IIS and SQL Machine) 3) SQL Server security is Sql Server and Windows
0
986
by: Rey | last post by:
Howdy all. Using VS.Net 2003 on an XP Pro SP2 box, I'm geting an err: CS1026: ) expected Project is just a simple report w/data from an access mdb to see how it works on a web form using C#. Crystalreports viewer works in a winform but so far - for me - not in a web form... In design, the data can be previewed but get err when attempting to
0
5235
by: Pavan | last post by:
THIS IS THE ERROR I GOT: --------------------------- Report Generation Error --------------------------- <Our System specific error raised by out VB.NET application..inserted by Developer>
0
3162
by: Dipen | last post by:
Hello All, I am using crystal report in my application. Everything is right but i end up with the following error. Failed to open a rowset. 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.
12
6559
by: Michael | last post by:
Please Help me. I've got a .Net 2003 program that attaches to a SQL Server machine and I'm getting the above error when a user tries to log in. The SQL server is setup to use Windows Auth. and I have added the new user to the database and have given the user access to the database for the app. But everytime I try and login using this users ID, I always get the error: Login failed for user Christian.Gaut If I login using my userid and...
1
1972
by: clusardi2k | last post by:
Hello, the step that I did to get to my current question are: I began to use the keyword DataDirectory and the next line of code. When I ran the application, I would be asked for a Login ID and password. If I clicked the cancell button on that Login window I would not see the report at all. CrystalReport1.Load(Application.StartupPath & "\..\..\CrystalReport1.rpt")
0
1006
by: PerumalSamy | last post by:
Hi, the following code is what i created for crystal report.I am using ACCESS database and vb.net coding. While i running the program i am getting error as CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed. any idea? Private sub pageload() dim crrptdoc as crystalreport1=new crystalreport1 crrptdoc.setDatabaseLogon("sa","") crystalreportviewer1.displaygrouptree=false crystalreportviewer1.reportsource=crrptdoc...
10
5268
by: BLUE | last post by:
I'm using SQL Server 2005 Developer Edition on Windows XP SP2 with this setting: <add name="SqlServerTrustedConn" providerName="System.Data.SqlClient" connectionString="Data Source=localhost;Initial Catalog=GTSDB;Integrated Security=SSPI;" /> All worked great with my windows application.
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8726
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8603
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1604
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.