Hi Thanks for ur reply.

But I just want to clarify one thing. That I am not trying to redirect the
client from one version of my own assembly to any other version of my
assembly.

What I am trying to do is have all the system assemblies (i.e the ones my
assembly is dependent upon) run in v1.0 runtime. Eg. System.data,
system.visualbasic etc etc.... I am being forced to do this because there is
particular syntax relating to typed datasets which bombs with system.data
v1.1 runtime but works with system.data v1.0 runtime.

Here is my config file.

<?xml version ="1.0"?>
<configuration>
    <startup>
                <supportedRuntime version="v1.0.3705"  />
    </startup>
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
appliesTo="v1.0.3705">
            <dependentAssembly>
                <assemblyIdentity name="Regcode"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.EnterpriseServices"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Security"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="CustomMarshalers"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="Accessibility"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Configuration.Install"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.DirectoryServices"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Drawing.Design"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.ServiceProcess"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.RegularExpressions"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Services"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Windows.Forms"
publicKeyToken="b77a5c561934e089" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Xml"
publicKeyToken="b77a5c561934e089" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Data"
publicKeyToken="b77a5c561934e089" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Design"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Drawing"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System"
publicKeyToken="b77a5c561934e089" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Messaging"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="IEExecRemote"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="IEHost"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="IIEHost"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="ISymWrapper"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="mscorcfg"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Management"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Runtime.Remoting"
publicKeyToken="b77a5c561934e089" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity
name="System.Runtime.Serialization.Formatters.Soap"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Mobile"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="Microsoft.Vsa.Vb.CodeDOMProcessor"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="7.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="Microsoft_VsaVb"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="7.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="Microsoft.Vsa"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="7.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="Microsoft.VisualBasic.Vsa"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="7.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="cscompmgd"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="7.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="Microsoft.JScript"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="7.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="Microsoft.VisualBasic"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="7.0.3300.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="Microsoft.VisualC"
publicKeyToken="b03f5f7f11d50a3a" culture=""/>
                <bindingRedirect
oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="7.0.3300.0"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>
</configuration>


- Thanks
Nishant Pant



-----Original Message-----
From: Mike Woodring (DevelopMentor) [mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 12:03 PM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] Sie By Side Assembly Versions -anyone a clu e
how to solve type identity problems?


> 3. The config file is the one which MSDN recommends
> ms-help://MS.VSCC.2003/MS.MSDNQTR.2003APR.1033/cpguide/html/cp
> contargetingne
> tframeworkversion.htm
>

That page documents how to target a different version of the runtime (1.0 v.
1.1).  Or are you just saying you followed the syntax used for the binding
redirects as an example?  Since your build command line looks correct, and
contrary to what you're saying about the config file being correct, I'd
still like to see what your key is (show us the exact output of "sn -Tp
pubsassembly.dll" on your 'code' assembly, not the publisher one) and the
contents of the config file you're embedding in the publisher policy
assembly.

The config file you're embedding in the publisher policy assembly should
have a single binding redirect in it, that reroutes assemblies with your
public key from version A to version B.  If you didn't already, please grab
my sample here [1] and follow that lead.  It's a bare bones example.  Just
be sure to use your own key tokens, versions, and assembly names instead of
the ones in my sample.

-Mike
DevelopMentor
http://staff.develop.com/woodring

[1] http://staff.develop.com/woodring/dotnet/#PublisherPolicySample

Reply via email to