Hello,
I have this sevice that should work with database and send query results to the clients. The service itself works with DAL and has a typed dataset to connect to the database.
I run the service with console application project using the ServiceHost instance. (found in System.ServiceModel)
Code:
using (ServiceHost host = new ServiceHost(typeof(Service1)))
{
host.Open();
Console.ReadLine();
}
Everything runs smoothly until I try to fill onc of the tables with the adapter provided by the data set.
When the fill function fired I get the following exception:
"Object reference not set to an instance of an object"
After testing I've undertood that this exception can be solved by putting the host launcher and the service itself in the same project under Visual Studio. But that wasn't the original idea.
Can somone help please?
Thanks ,
Dimkin