473,732 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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" ?>
<configuratio n>
<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="JusticeLi nk"
publicKeyToken= "6db63116f81a44 45"
culture="neutra l" />
<!-- Redirecting to version 3.3.0.0 of the assembly. -->
<bindingRedirec t oldVersion="3.3 .0.0"
newVersion="3.4 .0.0"/>
</dependentAssemb ly>
</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.Just iceLink.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\SNORBER G
LOG: DisplayName = JusticeLink, Version=3.3.0.0 , Culture=neutral ,
PublicKeyToken= 6bd63116f81a444 5
(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\Micr osoft.NET\Frame work64\v2.0.507 27\config\machi ne.config.
LOG: Publisher policy file is found at
C:\Windows\asse mbly\GAC_MSIL\P olicy.3.3.Justi ceLink\3.4.0.0_ _6bd63116f81a44 45\Publisher.co nfig.
LOG: Post-policy reference: JusticeLink, Version=3.3.0.0 , Culture=neutral ,
PublicKeyToken= 6bd63116f81a444 5
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\Ju sticeLink.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: JusticeLink, Version=3.4.0.0 , Culture=neutral ,
PublicKeyToken= 6bd63116f81a444 5
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 3263
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.mic rosoft.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****@microsof t.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
7964
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 the assembly can be found and loaded? Thanks! Tim
0
1174
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 builds, developers get this error: "The dependency 'COMPONENT, Version=VERSION, Culture=neutral, PublicKeyToken=PUBLIC KEY TOKEN' in project 'OTHER COMPONENT' cannot be copied to the run directory because it would conflict with dependency...
0
407
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 was compiled against version 1.0.0.1 for component B and C was referenced against version 1.0.0.0 for component B. Now when A calls functionality within component C that in turn calls component B I get an error ("component B or one of it's...
1
2031
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 it's necessary to create a publisher policy for each new "major.minor version", which can take a long time to make manually. Do there exist tools to generate publisher policy for many "major.minor versions" from a simple and compact configuration...
0
1046
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> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
1
1688
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 component and the policy-file. (The policy-file states a binding-redirect from 3.0 to 3.1.)
1
1986
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 been successful in creating one. Here's what the ultimate goal is: When the DLL is deployed to a customer's system, every application using this dll must point to the new version. This has to be an automated process using the deployment project....
1
5782
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 wdDoc As Word.Document Set wdApp = New Word.Application
0
1505
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 publicher DB became corrupted therefore we pointed all activity to the subscriber DB. Now we would like to bring back the publisher online, but we do not have a backup.
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9235
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9181
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.