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 3 1083
"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
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**********@email.com> wrote in message
news:sz********************@weber.videotron.net... 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
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__sure" <st*********@hotmail.com> wrote in message
news:d4**********@domitilla.aioe.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**********@email.com> wrote in message news:sz********************@weber.videotron.net... 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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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,...
|
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...
|
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)...
|
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?
|
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...
|
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....
|
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...
|
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...
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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...
| |