Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 530497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:12:10+00:00 2026-05-13T09:12:10+00:00

We have an application running as a Windows service on a production server. The

  • 0

We have an application running as a Windows service on a production server. The application is partitioned into several assemblies mostly on deployment boundaries. I would like to streamline the deployment of hot-fixes to application assemblies. Currently I do the following steps to deploy a hot fix. (we have a duplicate of the production environment for staging, so everything has to be done twice)

  1. Login to server
  2. Stop the service
  3. Backup currently deployed dll
  4. Replace with hotfix (Copy hotfix over existing dll)
  5. Restart service
  6. Roll back in case of unexpected load errors (has not happened, yet)

I think that what I would like is to upload (SFTP) a dll to a preset folder and have the application pick up the new dll.

One solution I’ve considered is to have a separate service running on the server. Let’s call it a hotfix deployment service. It would watch the file system for new files and do steps 2-6 from the list above.

Any insight is appreciated. I’m open to other alternatives as well as long as they reduce the deployment friction.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:12:10+00:00Added an answer on May 13, 2026 at 9:12 am

    Having a separate service is probably your best option.

    You could, potentially, do this in a single service. The “trick” that would be required to making a service self-updating, though, is a bit difficult to implement.

    What you would have to do is have your service start off as nothing but a very lightweight shell service. It could then start a separate, insulated AppDomain, and have that appdomain load your service’s assemblies, and initialize, and run.

    Later, when you wanted to update (which could trigger via any event the service can pick up, including copy of the new assemblies to an update folder [via FileSystemWatcher], explicitly telling it via networking, etc]), it would need to trigger a way to tell the internal AppDomain’s type to stop, then unload the AppDomain. At this point, it could do steps 3 & 4 above. Then, it’d just need to reload the AppDomain, rerun it’s initialization, etc.

    Since the service would be in a separate AppDomain, this could all happen in one executable, without the service stopping. When an AppDomain is unloaded, the assemblies it loads are also unloaded.

    The only requirement here that makes it difficult is that you have to make sure not to pass any types into the main AppDomain from the constructed one, or you’ll load the assemblies into your main AppDomain. This would prevent you from being able to update them at runtime.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an server application (running as a Windows Service) that receives calls from
I have an application running on a Windows Server 2008, that is processing uploaded
I have an adobe air application running on windows. I would like to call
I have an Intranet http application running on several machines in our Windows domain;
We have a java application which run as server running on a remote windows
I have a ASP.NET 1.1 application running on IIS 6 / Windows Server 2003.
I have a WSE 3.0 based web service running in Windows Server 2003 under
I have a .net 3.5 application running in production on Windows XP x86 dualcore.
I have a .net application (running as a windows service). From time to time
I have a wcf application hosted in a windows service running a local windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.