yogeshptl wrote:
private Database objdb = Manager.CreateDatabase(ConfigurationManager.AppSettings["DBCN"].ToString());
ConfigurationManager.AppSettings["DBCN"] might be null. In fact, that seems the most likely thing. You should read up on how to use the debugger, set a breakpoint, work out what is null, then fix it.