locked
Side by side execution RRS feed

  • Question

  • Can anybody brif me how the side by side execution works.

    Let me put a scenario infront of you guys

    I have deployed a dll with a function with the following signature

    void show(string msg)

    Today my requirement is to change the function void show(string msg, int notimes). But at the same time  I dont want to disturb the exesting implemention when a new clint code reqest for this function it should get for that client. I mean both the dll's with the same name should exist and depending on the function call it should call appropriate functions.

    Greatly appriciate if anybody can help to implement this scenario, just tell me how would I go about doing that no need to give any code.

    thanks in advance

    Saturday, July 22, 2006 8:16 PM

Answers

  • there are no problem to have two version of an assembly but one thing you must take care abou is backword compatability

    otherwise your application will breaked

    why you want to change the function you can overload it you will have the two function in new assembly and then

    using configuration file you can write some thing like

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


                <dependentAssembly>
                    <assemblyIdentity name="YourAssembly"
                                      publicKeyToken="a1690a5ea44bab32"
                                      culture=""/>
                 
                   
                    <bindingRedirect oldVersion="1.0.0.0"
                                     newVersion="2.0.0.0"/>


                </dependentAssembly>
            </assemblyBinding>
        </runtime>
    </configuration>

    look at http://samples.gotdotnet.com/quickstart/howto/doc/version.aspx
    
    Sunday, July 23, 2006 12:17 AM