C
cpnet
I'm trying to create a publisher policy for one of my assemblies, with no
luck. My assembly file name is: "myAssembly.Database.NET.dll".
I have created a publisher policy file as per the instructions at:
http://msdn.microsoft.com/library/d...ide/html/cpconcreatingpublisherpolicyfile.asp
My policy.config file contains the following:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="myAssembly.Database.NET"
publicKeyToken="db9ad248c0ac0b2a"
culture="neutral" />
<!-- Redirecting to version 0.0.0.2 of the assembly. -->
<bindingRedirect oldVersion="0.0.0.1"
newVersion="0.0.0.2"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
I have put both version 0.0.0.1 and 0.0.0.2 of myAssembly.Database.NET.dll
into the GAC successfully. I have double-checked that the culture and
public key token are correct. However, when I try to add my policy
("policy.0.0.myAssembly.Database.NET.dll") to the GAC, I get the following
error: "A module specified in the manifest of assembly
'policy.0.0.myAssembly.Database.NET.dll' could not be found. I have run the
Pro version of Dotfuscator on both versions of myAssembly.Database.NET.dll,
but after obfuscation I have resigned both 0.0.0.1 and 0.0.0.2 with the same
key file. (The same key file was also used to produce the policy file).
What am I missing - hopefully the fact that my assembly uses multiple 'dots'
in the name isn't a problem?
BTW, I'm testing this on a fully patched Win2k3 SBS server.
Thanks,
cpnet
luck. My assembly file name is: "myAssembly.Database.NET.dll".
I have created a publisher policy file as per the instructions at:
http://msdn.microsoft.com/library/d...ide/html/cpconcreatingpublisherpolicyfile.asp
My policy.config file contains the following:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="myAssembly.Database.NET"
publicKeyToken="db9ad248c0ac0b2a"
culture="neutral" />
<!-- Redirecting to version 0.0.0.2 of the assembly. -->
<bindingRedirect oldVersion="0.0.0.1"
newVersion="0.0.0.2"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
I have put both version 0.0.0.1 and 0.0.0.2 of myAssembly.Database.NET.dll
into the GAC successfully. I have double-checked that the culture and
public key token are correct. However, when I try to add my policy
("policy.0.0.myAssembly.Database.NET.dll") to the GAC, I get the following
error: "A module specified in the manifest of assembly
'policy.0.0.myAssembly.Database.NET.dll' could not be found. I have run the
Pro version of Dotfuscator on both versions of myAssembly.Database.NET.dll,
but after obfuscation I have resigned both 0.0.0.1 and 0.0.0.2 with the same
key file. (The same key file was also used to produce the policy file).
What am I missing - hopefully the fact that my assembly uses multiple 'dots'
in the name isn't a problem?
BTW, I'm testing this on a fully patched Win2k3 SBS server.
Thanks,
cpnet