Author: bgeetha.mca@gmail.com | Posted on: 6/5/2008 7:49:05 PM | Views : 310

Hi all,

I am developing Web application in asp.net 2.0 with C#. I have one class file name as DB.cs  which is the database layer. I was created an instance of this class in Application_Start event of Global.asax. I called this class in Business layer. In my localhost it was executing fine and it does not through any error. But when i publish this site in my web host it gives the error "Object is not set an instance of an Object". Am writing my error in text file. There i can see that the object is null for which i have created in Business layer. Here I have given the sample code kindly give me solution as early as possible

In Global.asax 

public void Application_OnStart()

{

DB.IDataStore dataStore = new DB.ANSI.DataStore();

Application["IShop"] = new Core.Shop(dataStore);

}

In Core
public Go to the complete details ...