Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27153

"Null reference exception was unhandled" o XP

$
0
0
I'm working on a project under VS2005 and .net Framework 2.0. Before that, I worked on a computer with Win7 x64 and everything was fine. But after moving on an old PC with WXP I've got a message: "Null reference exception was unhandled"


Dim dt2 As DataTable = ds2.Tables("clNumber")
Dim row2 As DataRow

For Each row2 In dt2.Rows '<<<<<< program stopped here
cboCity.Text = row2("City_Name")
Next row2

As I previously said, everything worked fine on Win7 x64.

Any suggestion?

Viewing all articles
Browse latest Browse all 27153

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>