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. The Lounge
  3. Why VS2008 sucks today

Why VS2008 sucks today

Scheduled Pinned Locked Moved The Lounge
csharpwcfannouncement
6 Posts 5 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.
  • N Offline
    N Offline
    N a v a n e e t h
    wrote on last edited by
    #1

    In my WCF client project I have "Reuse types in referenced assemblies" option enabled. But every time when I update the service reference, it regenerates all the types and compilation fails because of multiple types with same name. I am modifying the references file manually to correct this now :doh:

    Best wishes, Navaneeth

    S L P W 4 Replies Last reply
    0
    • N N a v a n e e t h

      In my WCF client project I have "Reuse types in referenced assemblies" option enabled. But every time when I update the service reference, it regenerates all the types and compilation fails because of multiple types with same name. I am modifying the references file manually to correct this now :doh:

      Best wishes, Navaneeth

      S Offline
      S Offline
      Super Lloyd
      wrote on last edited by
      #2

      do't do that! I found it more reliable more simple more betterer to just reference the same contract and data assembly on both the client and server side than using VS's autogenerated service reference!

      A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

      L 1 Reply Last reply
      0
      • N N a v a n e e t h

        In my WCF client project I have "Reuse types in referenced assemblies" option enabled. But every time when I update the service reference, it regenerates all the types and compilation fails because of multiple types with same name. I am modifying the references file manually to correct this now :doh:

        Best wishes, Navaneeth

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        I found when I have VS2010 Beta 1 installed this functionality broke in VS2008. With Beta 2, it seems ok again. You dont have that installed perhaps?

        xacc.ide
        IronScheme - 1.0 RC 1 - out now!
        ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

        1 Reply Last reply
        0
        • S Super Lloyd

          do't do that! I found it more reliable more simple more betterer to just reference the same contract and data assembly on both the client and server side than using VS's autogenerated service reference!

          A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          But the reusing types option is sometimes important and unavoidable.

          xacc.ide
          IronScheme - 1.0 RC 1 - out now!
          ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

          1 Reply Last reply
          0
          • N N a v a n e e t h

            In my WCF client project I have "Reuse types in referenced assemblies" option enabled. But every time when I update the service reference, it regenerates all the types and compilation fails because of multiple types with same name. I am modifying the references file manually to correct this now :doh:

            Best wishes, Navaneeth

            P Offline
            P Offline
            peterchen
            wrote on last edited by
            #5

            N a v a n e e t h wrote:

            W?F

            There's your problem :rolleyes:

            Personally, I love the idea that Raymond spends his nights posting bad regexs to mailing lists under the pseudonym of Jane Smith. He'd be like a super hero, only more nerdy and less useful. [Trevel]
            | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server

            1 Reply Last reply
            0
            • N N a v a n e e t h

              In my WCF client project I have "Reuse types in referenced assemblies" option enabled. But every time when I update the service reference, it regenerates all the types and compilation fails because of multiple types with same name. I am modifying the references file manually to correct this now :doh:

              Best wishes, Navaneeth

              W Offline
              W Offline
              wout de zeeuw
              wrote on last edited by
              #6

              Not, you're just doing it wrong. Don't reference the WCF service, but just reuse all your types and service interface and use channelfactory to create your proxy.

              Wout

              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