I have created WCF Data service and I hosted in visual studio ASP.net development server.My problem is that my service will run only when I build my application through VS2010, if I try running exe using debug/release folder dataservice is not launching. It should run when I click on my application exe file.
Below code sinnpet describe how I starting my data service.
WebServiceHost dbServiceHost= new WebServiceHost(typeof(MyDataService));
dbServiceHost.Open();
Any early help would be appreciated
You need to use the
DataServiceHost
(in assemblySystem.Data.Services
; descends fromWebServiceHost
) to host your WCF Data Service: