Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. Not able to generate the Proxy for WCF

Not able to generate the Proxy for WCF

Scheduled Pinned Locked Moved WCF and WF
wcfcsharpwpfhelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lijo Rajan
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups