Not able to generate the Proxy for WCF
-
Hi All, I am using below mentioned code for opening the Host for my WCF Service. Type contract = config.GetServiceContractType("IAsyncInterface"); Binding binding = config.CreateBinding(); string fullBaseAddress = string.Concat(BASE_ADDRESS, type.Name); WCFServiceHost host = new WCFServiceHost(config, type, new Uri(fullBaseAddress)); host.AddServiceEndpoint(contract, binding, ""); ServiceMetadataBehavior metaDataBehavior = new ServiceMetadataBehavior(); metaDataBehavior.HttpGetEnabled = false; host.Description.Behaviors.Add(metaDataBehavior); host.AddServiceEndpoint(typeof(IMetadataExchange), binding, "MEX"); host.Open(); its opening host properly. but when i try to generate the proxy i am getting error like "metadata contains a reference that cannot be resolved net.tcp" Can any one give me a solution for this? Thanks Lijo.