开发者

Is it possible to remove a Publisher Policy file?

开发者 https://www.devze.com 2022-12-12 11:53 出处:网络
I have a situation where a vendor-supplied assembly reference is messed up.Basically, it is pointing to a version of the assembly that I do not want to use.I used FusionLog to view the assembly bindin

I have a situation where a vendor-supplied assembly reference is messed up. Basically, it is pointing to a version of the assembly that I do not want to use. I used FusionLog to view the assembly binding log and I see these entries:

LOG: Publisher policy file is found at C:\WINDOWS\assembly\GAC_MSIL\policy.11.0.iAnywhere.Data.SQLAnywhere\11.0.0.22582__f222fc4333e0d400\iAnywhere.Data.SQLAnywhere.config
LOG: Publisher policy redirect is found: 11.0.0.11292 redirected to 11.0.1.22582

I cannot seem to find the publisher policy file and I am wondering if there is a way to remove it? I tried removing the assembly from the GAC but to no avail.

The background of the problem is that I was directed to install a patch for the client software from Sybase but this patch installed a version of the assembly (11.0.0.11292) that is earlier than the prev开发者_运维百科ious assembly (11.0.1.22582). Don't ask me why this happened but it did.


To remove the policy assembly from the GAC:

gacutil -u <policy-assembly-name>

note that does not include the .dll at the end and to find out the proper name of the assembly being applied I used Fusion. You can find more about Fusion here and here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号