Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Object reference not set to an instance of an object.

$
0
0

I have developed a project in .Netfromework 3.5., I used linQ also... Its working in my local machine.

Now my hosting server have .net fromwork2.0 and 4.0, I have pushed under 4.0 version, but i run that in live, its getting error like.,

Object reference not set to an instance of an object. 

public static string CONNECTION_STRING = ConfigurationManager.ConnectionStrings["GKAstroConStr"].ConnectionString;
but i gave the same key["GKAstroConStr"] in my webconfig file. How can i solve this error.

Viewing all articles
Browse latest Browse all 23244

Trending Articles



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