Loading remote assembly from the webservice in C#

This technique may be helpful for creating distributed applications or application that needs to be updateable through LAN or internet. What do you need to know:

  • What is a strong name
  • What is assembly
  • How to use the command line (cmd.exe)
  • How to use the CSC compiler
  • Hot to configure the application, What is the config file
  • What is IIS


  • Create strong-named assembly

  • Compile it

  • Place at your server

  • Create a Solution that will use this assembly

  • Create a Config file for your solution with the following contents

    **How to:

    1. Create strong-named assembly**
      a. Generate the key (cmd command): sn -k key.snk
      b. Put the following lines in your assembly source code:
  using System;
  using System.Reflection;


  namespace My

<?xml version="1.0" encoding="utf-8" ?>



   <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">


       <assemblyIdentity name="lib"


                         culture="neutral" />

       <codeBase version="" href="http://localhost/asm/lib.dll"/>     




Next Post Previous Post
No Comment
Add Comment
comment url