How to make a request to build publisher policy file redirection

I created a shared library at work and it is installed in the GAC on our test server. I updated it recently and I want all of our apps to use the update. I created the publisher policy assembly and installed it in the GAC along with the update, but when the web application loads Leggett.Common, 1.0.0.0, it does not redirect to Leggett.Common, 1.1.0.0.

I have a general assembly (in fact there are five, but let it simplify) on a network drive, I created an XML publisher policy file there, and then used al.exe to create a collection of publisher policy in the same folder. After that, I put the updated assembly in the GAC, and then put the publisher policy assembly in the GAC.

The general assembly is Leggett.Common.dll, the publisher policy file is 1.1.Leggett.Common.policy, and the publisher policy assembly is policy.1.1.Leggett.Common.dll.

The XML for the publisher policy file is as follows:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="Leggett.Common"
                                  publicKeyToken="32cd8f1a53a4c744"
                                  culture="neutral" />
                <bindingRedirect oldVersion="1.0.0.0"
                                 newVersion="1.1.0.0"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>
</configuration>

What am I doing wrong?

Clarification
I am testing this on my local development machine, as the developers do not have access to the test server.

+2
source share
2 answers

Okay ... on impact ...

1 - Have you tried using Assembly Loging Log Viewer (Fuslogvw.exe) to find out what happens with assembly binding?

You can find it in:

C:\Program Files\Microsoft SDK\Windows\v6.0A\Bin\FUSLOGVW.exe( VS2008).

2 - " ( , ) ". - ?

: ... , , . , GAC?

Update2: ... -... publicKeyToken ? .. AssemblyVersion 1.1.0.0, ( GAC)?

?

Update3: .... , ? ... , 1.0 , major.minor , . "policy.1.0.Leggett.Common.dll". , "policy.1.1.Leggett.Common.dll", .

, , , , 1.0 1.1.

DLL GAC, VS , :)

Update4: , . , ? :

al/link:1.1.Leggett.Common.policy/out:policy.1.0.Leggett.Common.dll/keyfile:/version:1.0.0.0

/platform .


+2

, , , assemblyIdentity (, "Fubar", "Fubar.dll" ).

Microsoft , ... # $% #! (! @!

+2

All Articles