Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 23rd, 2004, 12:26 AM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default crystal reports .net designer login failed error

In the crystal reporter.net designer I tried to add a
dataset to the "DATABASE FIELDS" node of the Field
Explorer tree. I get the following Messagebox:
i am using the visual studio .net dataset class 'projectname.datasetname'
Logon Failed
Details: Object reference not set to an instance of a
object

The message box title is "Crystal Reports ActiveX
Designer"

What are the possible reasons that my dataset is
not working?
i use a dataset called dataset1.xsd
please help :(:(:(

 
Old September 21st, 2004, 07:52 PM
Registered User
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the EXACT same problem. When I attempt to add the dataset to the report, I get the "ADO.NET (XML)" form in which it seems to want to verify the dataset name. I make sure that the dataset name is correct in the drop-down combo box and click OK. I then get the following message in a dialog box:

Window Title: Crystal Reports ActiveX Designer
Message:
Logon Failed
Details: Object reference not set to an instance of a
object
--OK Button--

This is an absolute bummer. I Googled the heck out of this, and Wrox P@P was the only place that had anything relevant to VS 2003. www.businessobjects.com had a Tech Support article regarding VS 2002, saying that (a similar) problem was fixed in the VS 2002 version. I have found nothing related to VS 2003. Anyone?

Thanks a million in advance!!
--Scott Fletcher

 
Old September 21st, 2004, 08:08 PM
Registered User
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, I can't beleive that this fixed the problem, but the report designer started working after I manually edited the report's code-behind file to add a using statement. I added a using statement to reference another assembly in my solution, saved the file, closed the file, and then re-opened the report designer. The report designer started behaving correctly, allowing me to add dataset tables that existed in my solution (both in the report's project as well as reference projects).

The odd thing is that the using statement doesn't seem to be the thing that fixed the problem; when I re-opened the code behind file, the using statement had been overwritten by Crystal's code generator (as I expected). What I didn't expect was that the report designer continued to work OK. it might be that simply editing the file fixed the problem? I don't know, and I don't care. Its working now. Jeez, what a mystery.
--Scott Fletcher
 
Old September 23rd, 2004, 01:38 PM
Registered User
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Apparently, the problem goes away when a .resx file is created underneath the .cs code-behind file. (You can see the .cs and .resx files underneath the .rpt files by clicking the "View All Files" button in the Solution Explorer tool bar.)

I had this problem again with a report that had previously been working, and I noticed that the .resx file was not there anymore. I got another one to appear by editing the .cs file (just adding a blank line in the .cs file). When I did that, a new .resx file appeared and the report was able to see the DataSets again.

Good luck...
--Scott Fletcher





Similar Threads
Thread Thread Starter Forum Replies Last Post
vb file for crystal reports designer sasidhar79 ASP.NET 2.0 Professional 0 February 13th, 2007 01:25 AM
Login Failed. Weird error with viewing reports. macupryk Crystal Reports 2 January 19th, 2006 05:55 AM
Crystal Reports ActiveX Designer : Logon failed. thangna BOOK: Professional Crystal Reports for VS.NET 2 November 24th, 2004 06:37 AM
Crystal Reports ActiveX Designer Logon failed thangna Crystal Reports 1 November 11th, 2004 08:40 PM
login error - passing data set to crystal reports bsharris Crystal Reports 0 September 14th, 2004 03:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.