473,394 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Publisher Policy - 80131040

Publisher policies sound just like what I need but I just can't get these
things to work. There are several good kb articles that seem to show exactly
what needs to be done....

Here is my publisher file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="JusticeLink"
publicKeyToken="6db63116f81a4445"
culture="neutral" />
<!-- Redirecting to version 3.3.0.0 of the assembly. -->
<bindingRedirect oldVersion="3.3.0.0"
newVersion="3.4.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

Here is the assembly linker statement:
REM --- Link Policy
al /link:Publisher.config /out:Policy.3.3.JusticeLink.dll
/Keyfile:\Code3\NorSoftKey.snk /version:3.4.0.0

I previously created a small test app using version 3.3.0.0 and it works.

I installed the policy in the GAC ==>gacutil /i policy.3.3.JusticeLink.dll

then I removed the 3.3.0.0 version and installed the 3.4.0.0 version.

Now the test app no longer works and I get a long error:

LOG: User = NORSOFT\SNORBERG
LOG: DisplayName = JusticeLink, Version=3.3.0.0, Culture=neutral,
PublicKeyToken=6bd63116f81a4445
(Fully-specified)
LOG: Appbase = file:///C:/Code3/bin/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : TestPolicy32, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\co nfig\machine.config.
LOG: Publisher policy file is found at
C:\Windows\assembly\GAC_MSIL\Policy.3.3.JusticeLin k\3.4.0.0__6bd63116f81a4445\Publisher.config.
LOG: Post-policy reference: JusticeLink, Version=3.3.0.0, Culture=neutral,
PublicKeyToken=6bd63116f81a4445
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Code3/bin/JusticeLink.DLL.
LOG: Assembly download was successful. Attempting setup of file:
C:\Code3\bin\JusticeLink.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: JusticeLink, Version=3.4.0.0, Culture=neutral,
PublicKeyToken=6bd63116f81a4445
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: The assembly reference did not match the assembly definition found.
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing
terminated.
==========================
A couple of things I noticed is when I install the new policy in the GAC the
version is 0.0.0.0, so I put the version option in the assembly linker for
3.4.0.0. None of the kb articles I saw used that /version option so I am
guessing this has something to do with it.

This is on a vista64/ultimate system using VS2008. All programs are C# as
ANY CPU. Culture and options all seem to match up.

So I am at a loss. Any ideas?
--
Scott Norberg
Oct 29 '08 #1
1 3233
Hello Scott,

This is a quick note to let you know I am still doing some more researching
on this issue and I will get back to you as soon as possible. Thanks for
your patience.

Have a nice day!
Best regards,
Ji Zhou (v-****@online.microsoft.com, remove ¡®online.¡¯)
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/...tance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 30 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Timothy M Hodgson | last post by:
In the Assembly Load Trace, the error: Publisher policy file is not found comes up. Is this a problem with locating the assembly? Is a publisher policy file required or even necessary as long as...
0
by: Doug | last post by:
Hello, We are having a problem with a component in our system that uses publisher policy files. Whenever it gets modified and moved out to where our build processes reference components for other...
0
by: Doug | last post by:
I have component A that references component B and component B uses versioning and publisher policy files. Component A also references component C and component C also references component B. A...
1
by: Seb LM | last post by:
Hello, I'd like to define a publisher policy which covers many versions of assembly from which the "major.minor version" are different but it's not possible to make a such publisher policy. So...
0
by: andrew.noel | last post by:
I have a publisher policy setup that consists of the following two files: policy.0.0.assembly.dll policy.config The policy.config file contains the following: <configuration> <runtime>...
1
by: cmrchs | last post by:
Hi, I'm having problems using publisher policy in .NET 2.0. whereas I didn't in .NET 1.1 Scenario : I have a version3.0 component against which a client is compiled. Then creating version3.1...
1
by: MT | last post by:
We have a .NET dll that we are deploying to our customers using a deployment project in VS .NET 2003. There is a lot of information about creating publisher policies on the web, but we have not...
1
by: pemigh | last post by:
Users want to click on a control and immediately ship a Publisher -- or PDF -- document to the printer. I found an old conversation with this code for Word: Dim wdApp As Word.Application Dim...
0
by: Ron | last post by:
Hi All, I am fairly new to MS SQL Replication. I have two servers one is setup as the publisher and the other is setup as both the subscriber and the distributor. Due to server reboots, the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.