Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I copied a exe of my vb 2008 to another pc a had to run, but an error regarding .NET Framework shows, I then downloaded and installed .NET Framework 4 to that pc, after Installing, i then tried to run my Exe but still, the same error Appeared?
Posted
Comments
OriginalGriff 27-Jan-12 3:05am    
What error message?
Alan Tuscano 27-Jan-12 3:10am    
Microsoft .Net Framework.

Unhandled Exception has occurred in your application.

Fill: SelectCommand. Connection Property has not been initialized
Sergey Alexandrovich Kryukov 27-Jan-12 3:06am    
Alan, do you understand that we don't have access to your hard drive to see what's going on?

What is "VB2008 Exe"? There is no such thing.
What is "VB"? It it "VB.NET"? Well, this is not really "VB".

You only change to get some help is above this comment -- "Improve question". Use it!
--SA
Alan Tuscano 27-Jan-12 3:14am    
Hi SA,
I'm using Visual Studio 2008, i had a Visual Basic Application (is that vb.net?, i'm not sure coz this is my first time using Visual Basic), copied the application to another pc, and that error appeared.

Is there a way that i can post the screenshot of the error here?
OriginalGriff 27-Jan-12 3:26am    
It's easier just to copy and paste the error message!

Visual Basic Applications (i.e. Windows applications written in VB) are not quite the same as VB.NET applications - the latter normally refers to a web-based server application communicating via a browser, rather than a windows stand alone exe.

1 solution

"Unhandled Exception has occurred in your application.

Fill: SelectCommand. Connection Property has not been initialized"


This means that you have tried to open a SqlCommand object without establishing a SqlConnection and tying the two together first: it has nothing to do with installing .NET on your PC!

Have a look at MSDN - it shows you how to do it properly: Populating a DataSet from a DataAdapter[^]
 
Share this answer
 
Comments
Alan Tuscano 29-Jan-12 20:23pm    
Hi OriginalGriff,

Sorry I was out for 2 days, I was busy doing charitable(outreach project) with my group.. Got this one covered Now, and its working.

Thnx again.
Member 10688669 25-Mar-14 8:40am    
can you please provide here solution?
OriginalGriff 25-Mar-14 9:34am    
Um...no?
Not without your code...so look at it, and find out why your connection is not initialized - I can't do it from here! :laugh:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900