Wrox Programmer Forums
|
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 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 January 19th, 2005, 09:57 AM
Registered User
 
Join Date: Jan 2005
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


 
Old January 20th, 2005, 06:34 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
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
 
Old January 20th, 2005, 10:20 AM
Registered User
 
Join Date: Jan 2005
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

 
Old January 20th, 2005, 08:01 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
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





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





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