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 2nd operation fails.

WCF 2nd operation fails.

Scheduled Pinned Locked Moved WCF and WF
helpcsharpdatabasewcfdesign
5 Posts 3 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.
  • M Offline
    M Offline
    Mycroft Holmes
    wrote on last edited by
    #1

    I have not done any research into this yet (it'd Friday evening and I don't have the patience left) but I have a rather weird problem. Using VS2008, Silverlight 3... I have built a WCF service (NOT web service) and a silverlight UI, this works fine, pulls back data from the database and displays it in a datagrid. Except if I stop and restart the app it fails, EVERY time. Oh it throws some generic "service does not like you" error that I'm told is the catch all error. Any suggestions and research links will be appreciated tomorrow morning, till then have a good evening all.

    Never underestimate the power of human stupidity RAH

    M B 2 Replies Last reply
    0
    • M Mycroft Holmes

      I have not done any research into this yet (it'd Friday evening and I don't have the patience left) but I have a rather weird problem. Using VS2008, Silverlight 3... I have built a WCF service (NOT web service) and a silverlight UI, this works fine, pulls back data from the database and displays it in a datagrid. Except if I stop and restart the app it fails, EVERY time. Oh it throws some generic "service does not like you" error that I'm told is the catch all error. Any suggestions and research links will be appreciated tomorrow morning, till then have a good evening all.

      Never underestimate the power of human stupidity RAH

      M Offline
      M Offline
      Michael Eber
      wrote on last edited by
      #2

      It would be better if you listed specifics of your program. First of all, do you keep the data connection open all the time? If so the first thing to look at is making your connection to the database short lived. So every round trip requires creating a client, doing client.Open(), making the call and client.Close() followed by the async response handler. Make sure you are always closing your client and not leaving behind any connections that could cause problems.

      M 1 Reply Last reply
      0
      • M Michael Eber

        It would be better if you listed specifics of your program. First of all, do you keep the data connection open all the time? If so the first thing to look at is making your connection to the database short lived. So every round trip requires creating a client, doing client.Open(), making the call and client.Close() followed by the async response handler. Make sure you are always closing your client and not leaving behind any connections that could cause problems.

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        Thanks Michael, step one is now defined. I assume the data connection is NOT the one between service and the database but the connection between the client and the service. [edit] Step one fixed the problem, thank you [/edit]

        Never underestimate the power of human stupidity RAH

        1 Reply Last reply
        0
        • M Mycroft Holmes

          I have not done any research into this yet (it'd Friday evening and I don't have the patience left) but I have a rather weird problem. Using VS2008, Silverlight 3... I have built a WCF service (NOT web service) and a silverlight UI, this works fine, pulls back data from the database and displays it in a datagrid. Except if I stop and restart the app it fails, EVERY time. Oh it throws some generic "service does not like you" error that I'm told is the catch all error. Any suggestions and research links will be appreciated tomorrow morning, till then have a good evening all.

          Never underestimate the power of human stupidity RAH

          B Offline
          B Offline
          BechBej
          wrote on last edited by
          #4

          Witch application did you stoped and started did you mean the Silverlight UI one

          M 1 Reply Last reply
          0
          • B BechBej

            Witch application did you stoped and started did you mean the Silverlight UI one

            M Offline
            M Offline
            Mycroft Holmes
            wrote on last edited by
            #5

            Yes the UI. I turns out that was only 1 of the problems I had :)

            Never underestimate the power of human stupidity RAH

            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