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 8528575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:49:55+00:00 2026-06-11T08:49:55+00:00

We created an extendable project in wcf using reflection. the web service loads different

  • 0

We created an extendable project in wcf using reflection.
the web service loads different modules in run time depends on the input request.
We use .NET reflection for dynamically loading of module libraries.
The system runs on IIS.

During our tests we noticed that we couldn’t replace our existing dlls once loaded via Reflection. We tried to copy our new dll into bin directory but we received an error similar ‘ the dll used by an application ‘
We can assure its only our system use that dll.
However replacing the dll could possible stopping the IIS.
But we require replacing the dll without stopping the IIS. Is there anyway we can handle this in code level ?

Appreciate your quick response.

IOrder orderImpl = null;

try
{

string path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\" + assemInfo.AssemblyQualifiedName + ".dll";
path = path.Replace("file:\\", "");
Assembly a = Assembly.LoadFile(path);

Type commandType = a.GetType(assemInfo.AssemblyQualifiedName + "." + assemInfo.ClassName);

orderImpl = (IOrder)commandType.GetConstructor(new System.Type[] { typeof(LocalOrderRequest) }).Invoke(new object[] { order });

}
catch (Exception ex)
{
throw new OrderImplException("-1", ex.Message);
}

Thanks
RSF

  • 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-06-11T08:49:56+00:00Added an answer on June 11, 2026 at 8:49 am

    I’m going to make two assumptions from your question: 1) Uptime is critical to your app and that’s why it can’t be shut down for 30-seconds to update it; 2) It is not in a fault-tolerant, load-balanced farm.

    If that’s the case, then solving #2 will also resolve how to update the DLL with no downtime.

    For an app that can’t be shutdown for a few seconds to update a DLL, you should have an infrastructure that supports that needed stability. The risk of an unexpected outage is far greater than the impact of updating the app.

    You should have more than one server behind a load-balancer that provides fault-tolerant routing if one of the servers goes down.

    By doing this, you minimize the risk of downtime from failure and you can update the DLLs by shutting of IIS on one node, updating it, then restarting it. The load-balancing will recognize that the node is down and route traffic to the good node(s) until the updated one is again available. Repeat with the other node(s) and you’ve updated your app with no downtime.

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

Sidebar

Related Questions

Created .NET WCF service, tested it - works. Generated schemas from Data and service
I'm trying to follow a guide from http://kellabyte.com/2010/11/13/building-extensible-wcf-service-interfaces-with-datacontractresolver/ to create and attach a DataContractSerializer.
I created a python server on port 8000 using python -m SimpleHTTPServer . When
I am planning to create different layers, so in my Visual Studio Project, I
For our Silverlight Project (SL4) I'm using a Model which might contain Lists (
I have created a class doing some jobs like GridView inherit from System.Web.UI.WebControls.WebControl. public
I am using Eclipse/PyDev to develop a Google App Engine project called GAEServer. One
I have a problem implementing this logic in my project. Im using ServiceLoader and
All entity created by EF is partial class. so it is extendable. Suppose I
Created Private Key & Self signed certficate in a Key Store keytool -genkey -alias

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.