Hi,
Why are you using static string variable in the first place?
Code your connection string something as below:
SqlConnection xconn = new SqlConnection(ConfigurationManager.ConnectionString["connectionStrings"].ToString());
where
connectionStrings is defined in the config file. You might wana also check your Data Source name in the config file.
Try these stuffs and then debug, it should work.
-Anurag