Hello all Trying to set up my first Ado.Net DataService with latest sp1 So far throws me an error This collection already contains an address with scheme http.There can be at most one address per scheme in this collection. Parameter name: item Whats solution to that, anf if anybody has had success with deploying Ado.Net DataServices Thanks. Mike CA
Hi, Personally speaking I can't help yet, the three servers I use here for tests haven't been updated yet. Hopefully someone will ring in for you. Salute, Mark
They do specifically advertise ADO.NET Data Services on their website package... I'm positive that DiscountASP's developers have done their due diligence and tested it successfully. Hopefully, one of those will post a working solution or configuration steps.
Ok, it works. First, you have to get access to IIS 7.0 control panel by: http://kb.discountasp.net/article.aspx?id=10575 Then, go to (for the folder of your web service) authentication and disable all but one. It works!!!!!!!!!!!!!!!!!!
Please post any error messages that you're getting. URL? Aristotle DiscountASP.NET www.DiscountASP.NET
Thanks for your reply <divitae> and others. It appears that Tech Support people themselves are not very clear on the subject, regretfully. I am told my app is hosted on Windows 2003, and the solution above would not work in my instance (II7 works with Windows 2008 only) My quest to get further info regarding Windows 2003 did not bring any results. Still awaiting for possible workarounds. Many thanks in advance to all who responded. To recap the problem as it stands: The app is hosted on Windows 2003 Attempting to get Data service to work. Hosting Tech Support indicated that in Hosting Shared Environment this would be seen along the lines of WCF setup, which requires custom factory. The WCF Route in shared env-trequires configurations settings tweaked/ added in Web.Config Having done so - the next problem that is thrown - regarding endpoints. (the assumption that Data Service End points are configured automatically, somehow does not hold true) Thanks in advance MP.
Here is where i stand / am as of now: #1 was instructed by Tech support people at Discountasp.net org, that Data services are to be treated along the lines with WCF #2 WCF in Shared Environment on Windows 2003 - calls for inheriting from ServiceHostFactory (see snippet) Note: ADNDataService.svc has been created using Data Service Template in VS2008 Professional #3 Noteworthy - wsbinding - was created programmatically, and not through Web.config #4 WebServiceHost and its endpoint configuration call for typeof(xxx), which I assumed is System.Data.Services.IRequestHandler , #5 which in turn gives me the following Error: Error message (partially reproduced): The operation 'ProcessRequestForMessage' could not be loaded because it has a parameter or return type of type System.ServiceModel.Channels.Message or a type that has MessageContractAttribute and other parameters of different types. When using System.ServiceModel.Channels.Message or types with MessageContractAttribute, the method must not use any other types of parameters . . . . . more Class snippet as follows: - public class MyServiceHostFactory68 :ServiceHostFactory { protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses) { // Specify the exact URL of your web service Uri webServiceAddress = new Uri("http://www.gmpsonline.com/ADNDataService.svc"); MyServiceHost68 webServiceHost = new MyServiceHost68(serviceType, webServiceAddress); WSHttpBinding wsbinding = new WSHttpBinding(); webServiceHost.AddServiceEndpoint(typeof(System.Data.Services.IRequestHandler), wsbinding, "http://www.gmpsonline.com/ADNDataService.svc"); return webServiceHost; } }