473,473 Members | 1,793 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

"Logon failed" for Crystal Report

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 password. I use
the InfoStore object to query for the report from the CE server (also
running locally) and bind it to the CrystalReportViewer control in the
webform.

I am getting an "SQL Server logon failed" when I try to generate this
report from the ASPX page. This happens even when the
username/password is specified for this report in the Crystal
Enterprise server (under Database tab of Crystal Management Console).

But I can generate the same report successfully from the Crystal
Management Console. Also, I am able to display reports that do not
require logon credentials (like reports based off .mdb files) using
the same code.

And of course, the SQL server has mixed mode authentication enabled.

Can someone help me out here?

Thanks,
Karun.
Nov 18 '05 #1
2 3864
Is it this?
PRB: Crystal Report in Web Application Fails to Log On to SQL Server

"For security reasons, the SQL Server password is not persisted in the
Crystal Report at run time. "

http://support.microsoft.com/default...b;en-us;319264

"Karun Karunakaran" <ks*****@hotmail.com> wrote in message
news:b0**************************@posting.google.c om...
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 password. I use
the InfoStore object to query for the report from the CE server (also
running locally) and bind it to the CrystalReportViewer control in the
webform.

I am getting an "SQL Server logon failed" when I try to generate this
report from the ASPX page. This happens even when the
username/password is specified for this report in the Crystal
Enterprise server (under Database tab of Crystal Management Console).

But I can generate the same report successfully from the Crystal
Management Console. Also, I am able to display reports that do not
require logon credentials (like reports based off .mdb files) using
the same code.

And of course, the SQL server has mixed mode authentication enabled.

Can someone help me out here?

Thanks,
Karun.


Nov 18 '05 #2
Hi Ken

Thanks for your reply. Looks like that is exactly the problem. But the solution described in that article applies only to ReportDocument objects created by giving the name of the .rpt file; it does not apply to reports queried from the InfoStore. This is what I am doing

'User given a list of reports from which he selects one. The corresponding ReportID is used below
Dim Result As InfoObjects = objInfoStore.Query("SELECT * From CI_INFOOBJECTS Where SI_ID=<ReportID>"
Dim rptObject As Report = CType(Result(1),Report

crRptViewer.ReportSource = rptObjec

The issue here is, since different reports query different databases, I cannot supply the username/password in the application code. Is there any way I can get around this

Thanks
Karun

----- Ken Cox [Microsoft MVP] wrote: ----

Is it this
PRB: Crystal Report in Web Application Fails to Log On to SQL Serve

"For security reasons, the SQL Server password is not persisted in the
Crystal Report at run time.

http://support.microsoft.com/default...kb;en-us;31926

<snip>
Nov 18 '05 #3

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

Similar topics

1
by: VC | last post by:
Hello, I have an issue here. Hope someone can help me. Issue: Developer is using a web application from one server (IIS) (say Server A). A second server (say Server B, which is SQL Server...
0
by: sztonix | last post by:
Hi all, I encountered a crystal report deployment problem. I make reports with Crystal Report for Visual Studio .NET 2003. It works fine in the development machine. And then make setup...
1
by: keefah | last post by:
Hi, I can't seem to get past this problem, though I've tried multiple examples off the web. I've registered integrated Crystal (VS.NET 2003 Pro). I've made sure the assemblies are all there. I've...
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...
1
by: Roy | last post by:
Hey all, I have a VB App which uses the bundled version of Crystal Reports for VS.NET 2003. It works fine in when I run it using VS *but* when I deploy it anywhere (including the development PC...
2
by: Jeff_Mac | last post by:
Hi there. I'm a bit of a newbie, and I would appreciate any help that anyone can give me on an error I'm getting with Crystal Reports. Every time I attempt to view a report using the Crystal...
2
by: InvisibleDuncan | last post by:
I have a Crystal report that, if certain parameters are entered, returns no data. This is fine if I call it from VB6 - it just returns a blank report. However, from VB.Net, it gives me an error...
0
by: Darrell | last post by:
I am using VS 2005 Beta 2 on XP Pro. I have created a WebService with an "empty" Crystal Report. The only thing in this report is a text element saying "Hello World!". If I run the WebService...
1
by: aaaaaa | last post by:
running a crystal (v10) reporting app on a virtual web server and getting the "Validation of viewstate MAC failed...." error when opening the crystal viewer. Any help please!!!
0
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,...
0
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,...
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
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.