473,396 Members | 2,020 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.

Dll Usage In Vb.Net ?

Jm
Hi All

I have a quick question about using references in vb.net. I\ve made a class
library which basically holds a server name, ip address and authentication
info which im using inside a program. I have given the dll file a strong
name key and imported it into the assembly cache on my machines. The issue i
have is that when i run on it on any machine but the machine im developing
it throws an exception at startup. It seems its looking for the original
path of where the dll was referenced. Im assuming that i should be adding
the reference in another way so it would work on any machine as long as it
has the dll in the assembly cache ? Am i thinking along the right lines ?
Any help is greatly appreciated

Thanks
Nov 21 '05 #1
2 978

Jan. 18, 2005

I would guess that you referenced it before you installed it in the
GAC? Assuming that this is the case then you need to remove the reference,
and this time instead of clicking on the Browse button, add it from the .Net
tab. The .Net tab is where the assemblies show when they are in the GAC. Then
make sure that you added it to the GAC folder of your deployment project. I
hope this helps and have a great day! :)
Joseph MCAD

"Jm" wrote:
Hi All

I have a quick question about using references in vb.net. I\ve made a class
library which basically holds a server name, ip address and authentication
info which im using inside a program. I have given the dll file a strong
name key and imported it into the assembly cache on my machines. The issue i
have is that when i run on it on any machine but the machine im developing
it throws an exception at startup. It seems its looking for the original
path of where the dll was referenced. Im assuming that i should be adding
the reference in another way so it would work on any machine as long as it
has the dll in the assembly cache ? Am i thinking along the right lines ?
Any help is greatly appreciated

Thanks

Nov 21 '05 #2
Jm
Hi Joseph

I tried what you said but the dll doesnt show up in the .net list ? I add it
to assembly cache via the configuration mmc, am i going about that part the
wrong way ?

Thanks

"Joseph MCAD" <Jo********@discussions.microsoft.com> wrote in message
news:AB**********************************@microsof t.com...

Jan. 18, 2005

I would guess that you referenced it before you installed it in the
GAC? Assuming that this is the case then you need to remove the reference,
and this time instead of clicking on the Browse button, add it from the ..Net tab. The .Net tab is where the assemblies show when they are in the GAC. Then make sure that you added it to the GAC folder of your deployment project. I hope this helps and have a great day! :)
Joseph MCAD

"Jm" wrote:
Hi All

I have a quick question about using references in vb.net. I\ve made a class library which basically holds a server name, ip address and authentication info which im using inside a program. I have given the dll file a strong
name key and imported it into the assembly cache on my machines. The issue i have is that when i run on it on any machine but the machine im developing it throws an exception at startup. It seems its looking for the original
path of where the dll was referenced. Im assuming that i should be adding the reference in another way so it would work on any machine as long as it has the dll in the assembly cache ? Am i thinking along the right lines ? Any help is greatly appreciated

Thanks

Nov 21 '05 #3

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

Similar topics

8
by: rbt | last post by:
Would a Python process consume more memory on a PC with lots of memory? For example, say I have the same Python script running on two WinXP computers that both have Python 2.4.0. One computer has...
2
by: tomvr | last post by:
Hello I have noticed some 'weird' memory usage in a vb.net windows app The situation is as follows I have an app (heavy on images) with 2 forms (actually there are more forms and on starting...
3
by: Ian Taite | last post by:
Hello, I'm exploring why one of my C# .NET apps has "high" memory usage, and whether I can reduce the memory usage. I have an app that wakes up and processes text files into a database...
26
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio...
11
by: Paulo Eduardo | last post by:
Hi, All! We are developing one app for windows 95/98/Me/NT4.0/2000/XP/2003 using Visual C++ 6.0. We need to set the % of CPU Usage to app process. Is there an API to set % of CPU Usage? Can...
10
by: rdemyan via AccessMonster.com | last post by:
My app contains utility meter usage. One of the things we have to deal with is when a usage is clearly incorrect. Perhaps someone wrote the meter reading down incorrectly or made a factor of 10...
3
by: Sirisha | last post by:
I am using the following code to get the CPU usage PerformanceCounter myCounter; myCounter = new PerformanceCounter(); myCounter.CategoryName = "Processor"; myCounter.CounterName = "%...
1
by: spacecoyote | last post by:
I tried this: usage = "Something, by Spacecoyote\nusage: %prog file " parser = OptionParser(usage) test.py --help and I expected: Something, by Spacecoyote usage: test.py file
1
by: sowmya.rangineni | last post by:
Ours is a windows based application. When we open the application the CPU usage is 0% and the Memory Usage is 54,324Kb When I open a specific form in a module, the CPU usage is 0% and the...
2
by: jld | last post by:
Hi, I developed an asp.net based eCommerce Website for a client and it is hosted at discount asp. The site is quite interactive, queries a database a lot and uses ajax.asp.net to spice up...
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: 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
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: 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...
0
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...
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
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,...
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
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...

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.