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. WCF Test Client/Service Host not starting [SORTED]

WCF Test Client/Service Host not starting [SORTED]

Scheduled Pinned Locked Moved WCF and WF
csharphelpquestionvisual-studiowinforms
1 Posts 1 Posters 1 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.
  • W Offline
    W Offline
    Worried Brown Eyes
    wrote on last edited by
    #1

    Hi all I have just started developing WCF services & things were going well until yesterday afternoon. I could press F5 in VS 2008 & the host & client would pop up allowing me to interact with the dev stuff. Then I added client project to do some calls and got a couple of exceptions. Now when I hit F5, VS locks up & nothing happens - I can't see anything in the event viewer logs to give me any clues. One thing I have discovered is that if I comment out the following line, it will start successfully, so I'm guessing it's detecting that there's already an instance running and not letting another one start.

    [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]

    Has anyone come across this & knows how to fix it? If my assumption about a previous instance is correct, how do I go about clearing it? Regards & TIA, Stewart I sorted this out myself eventually. The instance context mode was a red herring - removing it stopped the constructor running, which is where the problem was. It was still a misleading situation though - starting the service using F11 didn't move to the first line in debug mode as I expected, but the actual problem was an infinite loop thanks to a stray !. I had to move everything to a winforms app to spot it. I live & learn. Regards, Stewart

    modified on Wednesday, September 14, 2011 2:06 PM

    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