473,800 Members | 2,930 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Locating dependent assemblies with codebase

Hi,

I have the following problem: we have our application spread over two folders

Folder1:
main.dll (managed cpp assembly, strong named)
... many many resources for main.dll
Folder2:
user1.exe (references main.dll, C#)
user2.dll (references user1.dll and main.dll, C# class library)

I provide a user1.exe.confi g file in Folder2 which uses the codebase tag to
give the user1.exe the path to main.dl.
This works well, BUT when user2.dll is loaded by user1.exe, it does not find
its dependent assembly main.dll.
I also tried to give the user2.dll a config file, but this is not used by
the framework. What am I doing wrong?
It seems to me as if only the first dependency level is redirected by the
codebase tag and not the second one.
We do not want to copy the main.dll to folder2, because it has a couple of
unmanaged resources which are located relative to main.dll

Is the procedure to use a config file suitable for this problem, or is there
any other possibility for such a scenario?

Feb 7 '06 #1
0 1336

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

Similar topics

1
3015
by: Silvia | last post by:
I have this code in web.config file <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="dllredirect"/> <codeBase href="http://localhost/dllrecirect/dllredirect.dll" /> </dependentAssembly> </assemblyBinding>
6
1721
by: Tom Dacon | last post by:
If you're not putting assemblies in the GAC, but are referencing shared code with copylocal=true into the projects that use them, is there any value to signing the assemblies? In the environment I've just begun to work in, there are customer-facing web sites, internally-accessed maintenance and admin web sites, middle-tier business logic assemblies, services, and Windows Forms apps that run on the middle-tier. The policy is to sign the...
6
1726
by: Dugan Zhang | last post by:
Previously I was building websites using asp. I have a folder name "projects", under the projects folder, I have number of subfolders, each subfolder represent a website I'm building. Inside each subfolder, I would have varies files for that website such as asp, images. This works fine for asp websites, all I have to is create one virtural directory in IIS for the projects folder and I can access each websites that I'm building by...
8
1784
by: Charles Law | last post by:
I'm sorry to keep harping on about this one, but it is really quite important for me to be able to list _all_ required assemblies in my Help About box. Herfried kindly posted some code before that lists _loaded_ assemblies and their version, but I have one assembly that is not loaded until the user has done something quite specific in the program, and I need to list this one too. Other applications seem to manage it, so I wonder how it can...
2
2237
by: Tim | last post by:
I have placed my assemblies in different folders (as per project req.). I am using config file with <codebase> option and registry with codebase option (COM Interop) to enable the runtime to locate the assemblies. Will I face any problems in future versions due to the usage of 'codebase' option? What precautionary measures need to be taken if the 'codebase' option is used?
1
1689
by: Shiraz | last post by:
Hi It seems like none of the old posts get any follow up after a few messages, whether or not something constructive comes out of them, so I'm left with no choice but to repost an earlier question I asked. Below I've copy-pasted the log of the last post. It's an interesting problem, and it might well be worth reading if you are willing to be patient. As always, I would appreciate your comments immensely
0
1433
by: Nikander & Margriet Bruggeman | last post by:
We're using the "Microsoft.CLRAdmin.Fusion" assembly because we want to retrieve the exact locations of the assemblies in the GAC. The code looks like this: // objAssembly is the Microsoft.CLRAdmin.AssemInfo assembly. Type objType = objAssembly.GetType(); BindingFlags objBinding = (BindingFlags) 1078; string strCodeBase = (string) objType.InvokeMember("Codebase", objBinding, null, objTarget, null);
3
1970
by: Alexander van Doormalen | last post by:
I have a windows service which calls extensions. In 1 of those extensions I want to load a config file (extension.dll.config). In that config file I defined some ConfigurationSection's. For example: <section name="somename" type="sonenamespace.someclassname, someassembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/> The loading part is done using ConfigurationManager.OpenMappedExeConfiguration(ExeConfigurationFileMap,...
2
2137
by: Tony Johansson | last post by:
Hello! In directory c:\window\assembly(GAC) can you find a lot of global assembly names which is called shared assemblies. If I for example use ILDASM on a file called Accessibility which is a dll that exist in the c:\window\assembly(GAC) nothing happen why? You can use ILDASM on any private assembly but it seems to be impossible on
0
9550
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10269
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10032
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
9085
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...
1
7573
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
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
5597
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2942
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.