473,396 Members | 1,998 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,396 software developers and data experts.

Manifest problem

Hi

I have a problem with the development environment

I have a DLL (jproot.dll) versionned 1.9.0.33 that I have shipped to my customer

My customer made a DLL (cust.dll, versionned 1.2.3.4) that depend on jproot.dll
In the manifest of this cust.dll (ildasm), it is written that it depends on jproot.dll version 1.9.0.33, which is ok

I have an application (sample.exe) that depends on cust.dll

Since everything is well encapsulated, jproot.dll and sample.exe can evolve without functionnaly affecting cust.dll. And since cust.dll is build by my customer, I don't have the luxury to ask him to rebuild often

So when jproot.dll continues to evolve , I increment the version number (ex: 1.9.0.46). But when I try to rebuild sample.exe, the environment give me the following error

---
Error: The dependency 'jproot, Version=1.9.0.33, Culture=neutral' in project 'sample' cannot be copied to the run directory because it would conflict with dependency 'jproot, Version=1.9.0.46, Culture=neutral'
---

note that jproot version 1.9.0.33 doesn't exist anymore on my disk and this is happening because the environment reads the manifest of cust.dll and sees that there is a need for version 1.9.0.33 but would conflict with version 1.9.0.4

It make sence that this is happening because
- sample.exe requires 'jproot 1.9.0.46' and 'cust.dll 1.2.3.4
- and cust.dll requires 'jproot 1.9.0.33
and the environment doesn't know what to do about this

The workaround suggested in MSDN is not acceptable because it would require me to add an explicit reference to jproot.dll in sample project which would break encapsaluation from project perspective

In my case I would like the environment to discard the version information in the assemblies when resolving references. Is that possible

If not, is there a way to get around this? a config file? registry? project config

Thank
JPRoo

Nov 16 '05 #1
1 1773
Hi JPROOT,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you application is referencing cust.dll
which was provided by 3rd party. However, the cust.dll is referencing your
jproot.dll assembly. When you have upgraded jproot.dll on your machine. The
..exe application was unable to build. If there is any misunderstanding,
please feel free to let me know.

I have tried the senario on my computer, however, it seems that the error
cannot be reproduced. Could you let me know how the assemblies are
referenced in your project?

Generally, when we meet these kind of problems, we can redirect the
assembly versions in the config file. You can find more information about
redirecting version from the following link:

http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconassemblyversionredirection.asp

HTH. If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #2

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

Similar topics

2
by: Murat Tasan | last post by:
hi, i'm having a very odd problem... here is my system: debian linux java: j2sdk 1.4.1_02 everything is running fine, except for one little problem... i have a custom manifest file called...
2
by: Thilo Klein | last post by:
Hi, I have a managed app running from an unc path on the local intranet (Full trust is set for this path with the .NET Configuration mmc!). If the applications supplies both a .manifest and a...
0
by: Tom | last post by:
I am using VS 2005 Beta 2. I tried the click once publish wizard to deploy my application.. Now when I try to debug my application I get an error saying that my application can not run due to an...
3
by: Jonathan Payne | last post by:
Hi, I am interested in adding a manifest file to the resources for a MFC application. When I create an AppWizard MFC app with a manifest file it adds the following lines to the .rc file: ...
0
by: mb | last post by:
Hi I am working on a small helper tool to our main application. The tool uses SQLDMO to connect to the SQL Server 2000 database and allows us to cofigure the users who are allowed to use our...
1
by: Lea Hayes | last post by:
Hi, I have noticed problems with the CToolBar class when using a manifest file in VC++ 2003. To test my theory I created an empty MFC MDI project with the manifest file so I get the WinXP style...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
11
by: RossettoeCioccolato | last post by:
Is there any way to coax the VC8 linker into generating an application manifest with a trust level section suitable for an administrative application? Or do I have to add this manually each time...
0
xarzu
by: xarzu | last post by:
Getting a C# program with a manifest file to run in the debugger ---------------------------------------------------------------- How do I declare a manifest file in the Visual Studio IDE for C#...
0
by: stormogulen | last post by:
Hello all, I'm having some problems understanding how the runtime locates assemblies, and I hope you can help me shed some light on it. I'm deploying a web service, which uses some 3rd party...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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
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...
0
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,...

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.