Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 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 July 14th, 2003, 11:59 AM
Registered User
Join Date: Jul 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default System.TyepInitialization.Exception w connection

I've written a small app that worked fine on my laptop. The laptop is running windows 2000 with the .net framwork and development environment installed. I moved the exe and pdb generated by the build to one of our servers. This server has the .net framework on it. For some reason when I run it on this server I get the following error:

An exception 'System.TyepInitialization.Exception' has occurred in Myprogram.exe

The app did a number of things but, for the sake of debugging this problem, I've stripped eveything else out. All I have now is a public sub main with nothing in it and a global declartion at the top of the module:

  Dim myConnection As New System.Data.OleDb.OleDbConnection()

That's all. If this declaration in there it causes the error. If it is commented out, the program runs (though it doesn't do anything).

We have other exe's running on this same server that also declare a New System.Data.OleDb.OleDbConnection() and they work fine. I added the adodb reference but the problem is still there. Any suggestions?

Old July 18th, 2003, 08:37 AM
Authorized User
Join Date: Jun 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts

You may have already done this but check to make sure the System.Data is under you refrences in the solution explorer.


Similar Threads
Thread Thread Starter Forum Replies Last Post
System out of memory exception cmrhema Visual Studio 2005 0 August 21st, 2007 08:38 AM
Exception Details: System.Net.WebException: The re charnata ASP.NET 2.0 Professional 2 January 5th, 2007 11:05 AM
Howto Serialize System.Exception? jacob C# 3 November 6th, 2006 12:12 PM
System.OutOfMemory Exception Ron Howerton ASP.NET 1.0 and 1.1 Professional 7 November 30th, 2005 10:08 AM
System.Exception .aspx website dephjam C# 3 April 13th, 2005 07:59 PM

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