473,729 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is the simplest way to link DLLs?

ZaX
Good day folks,

I'm wondering what is the easiest way to link DLLs to a project with VB.NET.

I've been building an app here (framework 1.1). In my project, I added a few
references to files I've copied in my bin folder. The Copy Local property
for the DLLs is set to true.

Here, everything works fine.

But when I try to copy the bin folder to the production machine, I keep
receiving a message saying the DLL or one of its dependancies cannot be
found. However, the said DLL is in the same folder, along with each and
every of its dependencies...

I tried to add the DLLs to the GAC, but it refuse to let me do so saying
they are not strongly named.

Someone has an idea?

Thanks

ZaX
Nov 21 '05 #1
3 1097


"ZaX" wrote:
Good day folks,

I'm wondering what is the easiest way to link DLLs to a project with VB.NET.

I've been building an app here (framework 1.1). In my project, I added a few
references to files I've copied in my bin folder. The Copy Local property
for the DLLs is set to true.

Here, everything works fine.

But when I try to copy the bin folder to the production machine, I keep
receiving a message saying the DLL or one of its dependancies cannot be
found. However, the said DLL is in the same folder, along with each and
every of its dependencies...

I tried to add the DLLs to the GAC, but it refuse to let me do so saying
they are not strongly named.

Someone has an idea?

Thanks

ZaX

Not to sound like an a$$, but try a google on "Strong Name Signing of
Assemblies" to start with. You will be overwhelmed by the amount of
information. It's worth it, trust me :)

Jody
Nov 21 '05 #2
0) This is a case where using a deployment project would be helpful.

1) If the dll files are .net, then you can create strong names for them and
install them in the GAC -- I would NOT advise doing this, however, since the
dlls sound like single-use components (i.e. other programs will not need
them) . should you decide to give them strong names you can use the Strong
Name Tool (sn.exe) to create a Public/Private Key Pair; next, you either
create/modify the <Assembly: AssemblyKeyFile ("..\MyKey.snk" )> key in the
..config-file or you use the Assembly Linker Tool (al.exe)

as for the problem of determining what is failing, you can use fuslogvw.exe
to troubleshoot binding problems.

"ZaX" <th**********@e mail.com> wrote in message
news:sz******** ************@we ber.videotron.n et...
Good day folks,

I'm wondering what is the easiest way to link DLLs to a project with
VB.NET.

I've been building an app here (framework 1.1). In my project, I added a
few
references to files I've copied in my bin folder. The Copy Local property
for the DLLs is set to true.

Here, everything works fine.

But when I try to copy the bin folder to the production machine, I keep
receiving a message saying the DLL or one of its dependancies cannot be
found. However, the said DLL is in the same folder, along with each and
every of its dependencies...

I tried to add the DLLs to the GAC, but it refuse to let me do so saying
they are not strongly named.

Someone has an idea?

Thanks

ZaX

Nov 21 '05 #3
ZaX
Thanks for the help and the tips.

I've finally solved my problem the hard way.

I've loaded the dlls dynamically using reflection and when I called the
first method of the DLL, there was a message saying it was missing another
DLL, some C librairy file...

I copied this from one machine to another in the system folder and
everything went fine after.

"stand__sur e" <st*********@ho tmail.com> wrote in message
news:d4******** **@domitilla.ai oe.org...
0) This is a case where using a deployment project would be helpful.

1) If the dll files are .net, then you can create strong names for them and install them in the GAC -- I would NOT advise doing this, however, since the dlls sound like single-use components (i.e. other programs will not need
them) . should you decide to give them strong names you can use the Strong Name Tool (sn.exe) to create a Public/Private Key Pair; next, you either
create/modify the <Assembly: AssemblyKeyFile ("..\MyKey.snk" )> key in the
.config-file or you use the Assembly Linker Tool (al.exe)

as for the problem of determining what is failing, you can use fuslogvw.exe to troubleshoot binding problems.

"ZaX" <th**********@e mail.com> wrote in message
news:sz******** ************@we ber.videotron.n et...
Good day folks,

I'm wondering what is the easiest way to link DLLs to a project with
VB.NET.

I've been building an app here (framework 1.1). In my project, I added a
few
references to files I've copied in my bin folder. The Copy Local property for the DLLs is set to true.

Here, everything works fine.

But when I try to copy the bin folder to the production machine, I keep
receiving a message saying the DLL or one of its dependancies cannot be
found. However, the said DLL is in the same folder, along with each and
every of its dependencies...

I tried to add the DLLs to the GAC, but it refuse to let me do so saying
they are not strongly named.

Someone has an idea?

Thanks

ZaX


Nov 21 '05 #4

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

Similar topics

7
5693
by: Christos TZOTZIOY Georgiou | last post by:
Last night I was compiling the latest python snapshot at my home Linux system (a K6-III @420 --the extra 20 Hz is overclocking :); then I tried building a shared version of the interpreter. I did some speed comparisons, and pystone reported ~6090 pystones for the shared and ~7680 pystones for the (default) static build. This is quite a difference, and while I do know what impact position independent code has on libraries, this was the...
4
3054
by: John Hunter | last post by:
I am using distutils to build a python extension module on win32. I initialize the Extension class with a list of libraries with Extension("_gd", , include_dirs=incdirs, library_dirs=libdirs, libraries=libs, define_macros=macros)], and am using VC6++ where libs is a list . Distutils produces a link command with the required libraries as
1
2210
by: Paul | last post by:
Title: What are the Consequences of Aspx page separate from app DLL Hi JL; I am working on a big asp.net application. When we migrate the dll (or dlls) to the production server, all users who are login into the application are pumped off. In fact we must close down the server (to preserve users from being logged on and thinking they are updating data when it is in fact lost when we move the dlls to the the applications bin directory)....
1
2213
by: Peter | last post by:
Hi, I got the following link error in my release build (I am using vc7 on WinXP): ----------------------------------------- Linking... LINK : error LNK2020: unresolved token (0A000020) _CrtDbgReport LINK : fatal error LNK1120: 1 unresolved externals -----------------------------------------
7
4383
by: BekTek | last post by:
When I build boost libs, I realized that there is static link at runtime.. What does that mean? I thought static linking is done at compile time. Am I wrong?
0
1469
by: Eric Twietmeyer | last post by:
Hello, Am I mistaken in thinking that if I have a mc++ dll that I should be able to link against it (so long as it has exported symbols via declspec(dllexport)) in an unmanaged application? I am currently testing this and it fails. I have a native, unmanaged test application that links against my mc++ dll with a function entry point. Linking works fine, no errors. When I try to run in the debugger I see the output below (abreviated...
4
3918
by: Mike Woinoski | last post by:
(I'm new to VS, so please forgive me if this is a faq.) I'm writing some Java web services and need to test them with C++ clients. I can use either a Windows Form application or an MFC application. I used VS.NET 2003 to create a C# client that successfully processes SOAP messages to and from the Java service. However, I'm having problems with the C++ client. I created a new solution and a new project with File > New > Visual C++ Projects...
4
4450
by: yhebib | last post by:
Hello All, I've been browsing and reading all articles I could find on technet ,msdn and other knowledgeable sources to understand the issue I'm dealing with. However, I did not find so far how to fix that. Investigations are still under progress and I hope you'll be able to give hints or feedback that will drive me to the solution. The applications I'm working on until the next release that will soon
4
2323
by: beauwlf | last post by:
Hi Group I am testing out Visual Studio 2008 Eval.. i tried to recompile my MFC C++ Visual Studio 6.0 EXE project . I get these link errors. I can say these errors are linked to EXE function calls to MFC DLL with CString as parameter. Error 383 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CViDlgModLink::SetDataAText(int,int,class ATL::CStringT<char,class StrTraitMFC_DLL<char,class...
0
8928
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...
0
8766
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
9428
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9291
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...
1
9217
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
9158
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
8160
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
6722
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...
2
2698
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.