I have wcf web services that I host in IIS on localhost. I want to have access to them from Unity3d, but when playing a scene I get the following error:
InvalidOperationException: Client endpoint configuration 'BasicHTTPEndpoint' was not found in 0 endpoints. System.ServiceModel.ChannelFactory.ApplyConfiguration (System.String endpointConfig) System.ServiceModel.ChannelFactory.InitializeEndpoint (System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) System.ServiceModel.ChannelFactory`1[IUnityStore]..ctor (System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) System.ServiceModel.ClientBase`1[TChannel].Initialize (System.ServiceModel.InstanceContext instance, System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) System.ServiceModel.ClientBase`1[TChannel]..ctor (System.ServiceModel.InstanceContext instance, System.String endpointConfigurationName) System.ServiceModel.ClientBase`1[TChannel]..ctor (System.String endpointConfigurationName) UnityStoreClient..ctor (System.String endpointConfigurationName) firstCall.Start () (at Assets/Scripts/firstCall.cs:8)
Web service is created as:
UnityStoreClient uc = new UnityStoreClient("BasicHTTPEndpoint"); uc.Open();
I have a configuration file in the folder with my scripts, but I do not know if I should do anything with it. I created a unity class with svcutil from Visual Studio 2010.
source share