Ok, atleast that's an error...
This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'. Parameter name: item
[ArgumentException: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'. Parameter name: item] System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item) +12089046 System.Collections.Generic.SynchronizedCollection`1.Add(T item) +78 System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses) +72 System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) +141 IdeaBlade.EntityModel.Server.EntityServiceHostFactory.CreateHostCore(Type serviceType, Uri[] baseAddresses) +30 IdeaBlade.EntityModel.Server.EntityServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +40 System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +420 System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1440 System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +44 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +615
[ServiceActivationException: The service '/EntityService.svc' cannot be activated due to an exception during compilation. The exception message is: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'. Parameter name: item.] System.Runtime.AsyncResult.End(IAsyncResult result) +679246 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +190 System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar) +300622 System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +8837348
So just to go through what I've done:
1) Created silverlight project using the same connection string that would be used on the discountasp.net server
1a) added Loaded += delegate { DataContext = new MainPageViewModel(); }; to the MainPage.xaml.cs
1b) put the following in the mainviewmodel.cs file:
Log = new ObservableCollection<string>(); WriteToLog("Initializing View Model"); DD_Tables = new ObservableCollection<DD_Table>(); var mgr = new SQL2008_673586_timeentryEntities(); var query = mgr.DD_Table; query.ExecuteAsync(op => op.Results.ForEach(DD_Tables.Add)); WriteToLog("End of event");
1c) put a bunch of other code required in different places following the SimpleSteps demo.
2) Created a bin, clientbin and log directories in the root of the website.
3) copied everything from the BIN directory in the project to the bin directory of the website
4) Copied the xap file from the project clientbin to the clientbin web folder
5) Copied the default.aspx, global.aspx, silverlight.js, web.config to the root of the website.
That's all I did. I didn't change the web.config in anyway nor did I change permissions on files on the webserver anywhere. The anonymous user on discountasp.net has write access to the files and folders.
What did I miss?
|