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. Type Reuse problem in WCF

Type Reuse problem in WCF

Scheduled Pinned Locked Moved WCF and WF
csharpwcfai-codinghelpquestion
2 Posts 2 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.
  • D Offline
    D Offline
    Don Rolando
    wrote on last edited by
    #1

    Hi everyone, I have some very strange problem! I have my own WSHttpBinding-based webservice and it worked always fine. Furhtermore I have a client consuming it; since I have created some special classes I used "reuse types" there, so my referenced assembly and the original classes can be used within the original namespaces. So far so good! Since I always only updated the service reference I missed the point where my service got problems with reusing types. :( Whenever I add the service to a new client, code generation fails when I mark "reuse types"! My old client breaks if I re-configer it. As long as I only update it, it's ok, but that's certainly no solution, because there seems to be some problem with my service! Any hints for me where to search for the problem? Best regards, Roland

    J 1 Reply Last reply
    0
    • D Don Rolando

      Hi everyone, I have some very strange problem! I have my own WSHttpBinding-based webservice and it worked always fine. Furhtermore I have a client consuming it; since I have created some special classes I used "reuse types" there, so my referenced assembly and the original classes can be used within the original namespaces. So far so good! Since I always only updated the service reference I missed the point where my service got problems with reusing types. :( Whenever I add the service to a new client, code generation fails when I mark "reuse types"! My old client breaks if I re-configer it. As long as I only update it, it's ok, but that's certainly no solution, because there seems to be some problem with my service! Any hints for me where to search for the problem? Best regards, Roland

      J Offline
      J Offline
      Jammer 0
      wrote on last edited by
      #2

      I battled with this for a while myself. Basically, Some object in your domain object dll itself references something that isn't directly available to the client. When this scenario happens proxy objects are generated for everything not just the object that the client doesn't have a static reference to ... Make sense?

      Jammer My Blog | Article(s)

      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