Help with a remote object hosted on IIS

Posted on 2009-04-15
Last Modified: 2012-05-06
Hi Experts,

I got a remote object hosted on IIS which provide a method to execute update queries onto my database. My client application is a windows service. In the OnShutdown() method, when I call the method to update my DB it throws a SQL exception as below. The query doesnt get executed, which simply marks the client as inactive in my DB table. Is there anyway to achieve the same
Psuedo code:

class myService



   { update table set client=active}


   { update table set client=inactive }


Message: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - A system shutdown is in progress.)

LineNumber: 0

Source: .Net SqlClient Data Provider


Open in new window

Question by:Axonites
    LVL 12

    Expert Comment

    by:Nirmalan Nagenthiran

    In this link contains possible reasons & solutions, hope this helps
    LVL 25

    Expert Comment

    Are you waiting in your windows service untill the updation completes in sql and control comes back to you in windows service?

    Author Comment

    Yes....Can you suggest an alternate way in which my service could inform the sql  server to run the query and carry on execution without waiting for its completion.
    LVL 25

    Accepted Solution


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
    In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now