Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning VB.NET Databases
This is the forum to discuss the Wrox book Beginning VB.NET Databases by Thearon Willis; ISBN: 9780764568008
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET Databases 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 January 19th, 2005, 09:57 AM
Registered User
 
Join Date: Jan 2005
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Object Registery

When I chapter 13 Oracle I received this error :
[red]An unhandled exception of type 'System.Exception' occurred in wroxdataaccess.dll

Additional information: Object reference not set to an instance of an object.

Both these modules had failed:
1-objReg = Registry.LocalMachine.OpenSubKey("SOFTWARE\" & _
                Company & "\" & Application & "\Database", False)


 2- Connection = New OracleConnection( _
                "Data Source=" & objReg.GetValue("Server") & ";" & _
                "User ID=" & Crypto.Decrypt(objReg.GetValue("Login")) & ";" & _
                "Password=" & Crypto.Decrypt(objReg.GetValue("Password")) & ";")

Please advise, I am realy interested of running chapter 13 in Oracle.
Thanks
Sam


Reply With Quote
  #2 (permalink)  
Old January 20th, 2005, 06:34 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Sam,

There are not enough details here to help troubleshoot your problem. You will need to be more specific in your errors and the code you were trying to run.

However, from your post, it looks like the data access component could not read the registry key and create a new connection. This is the same code that should be running in Chapter 12 so my question to you is are you able to run the code in Chapter 12 with no problems?

Thearon
Reply With Quote
  #3 (permalink)  
Old January 20th, 2005, 10:20 AM
Registered User
 
Join Date: Jan 2005
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Thearon,
Thak you very much for your respond. Unfortunately I was not able to run any chapter at all!! the exact error message:
[u]An unhandeled exception of type 'system.exception'occured in wroxdataaccess.dll
Object reference not set to an instance of an object</u>.
that happened agter I logged in(ch.12, ch13..)
the error occured and stoped on finally with the previous error message.
public sub new(byval....)
   ....
  finally
end sub

I hope we can solve this problem because really I liked this book becuase it runs on Oracle.
Thanks for your help.
Sam

Reply With Quote
  #4 (permalink)  
Old January 20th, 2005, 08:01 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Sam,

I think I know what the problem is. You have not created your registry keys so you'll need to back up and start from Chapter 10.

Thearon
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
Problem writing multiple values to registery method VB How-To 1 June 20th, 2006 10:49 PM
Problem deleting registery values with its subkeys method VB How-To 0 June 17th, 2006 10:52 AM
How to populate form textbox with registery key va method Pro VB 6 3 May 23rd, 2006 12:21 AM
How to populate drop down box with registery value method Beginning VB 6 2 April 20th, 2006 03:00 AM
Registery Manipulation x_ray VB.NET 2002/2003 Basics 0 February 22nd, 2006 04:41 PM



All times are GMT -4. The time now is 09:04 AM.


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