Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 23rd, 2004, 12:26 AM
Registered User
 
Join Date: Feb 2004
Location: col, , Sri Lanka.
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 :(:(:(

Reply With Quote
  #2 (permalink)  
Old September 21st, 2004, 07:52 PM
Registered User
 
Join Date: Sep 2004
Location: , , .
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

Reply With Quote
  #3 (permalink)  
Old September 21st, 2004, 08:08 PM
Registered User
 
Join Date: Sep 2004
Location: , , .
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
Reply With Quote
  #4 (permalink)  
Old September 23rd, 2004, 01:38 PM
Registered User
 
Join Date: Sep 2004
Location: , , .
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:52 AM.


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