I upload a site but it display an error "Object reference not set to an instance of an object"
-
I upload a site but it display an error "Object reference not set to an instance of an object".In my class it display an error in these lines Dim st As String = ConfigurationSettings.AppSettings("str") Line 9: Public con As New MySqlConnection(st) How can i solve this problem.I am using mysql dataconnection.
-
I upload a site but it display an error "Object reference not set to an instance of an object".In my class it display an error in these lines Dim st As String = ConfigurationSettings.AppSettings("str") Line 9: Public con As New MySqlConnection(st) How can i solve this problem.I am using mysql dataconnection.
I'd guess that your problem is that the config file is not set up properly, and your code doesn't check for nulls.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )