Solved

vb.net what folder in the object explorer does a .dll go into??

Posted on 2010-08-22
5
457 Views
Last Modified: 2012-06-21
vb.net what folder in the object explorer does a .dll go into??

i think bin ...debug??
0
Comment
Question by:GlobaLevel
  • 2
  • 2
5 Comments
 
LVL 30

Expert Comment

by:Brad Howe
ID: 33496119
Hi,
I assume this is a 2.0/3.* framework.
The dll(s) that the runtime creates will now be in the Temporary ASP.NET Files directory underneath the framework installation
directory, unless you precompile the application/site with the publish option or the aspnet_compiler command line tool.

http://www.dotnetspider.com/tutorials/AspNet-Tutorial-AspNet-Tutorial-111.aspx 
Cheers,
Hades666
0
 
LVL 10

Author Comment

by:GlobaLevel
ID: 33496441
Will this change for vbdotnet?? I was told that the all hoes in the same folder as the app
0
 
LVL 17

Accepted Solution

by:
Zhaolai earned 500 total points
ID: 33497750
You were told right. All the dlls go in the same folder as the app. But if you don't want it this way, you have two alternatives:

1. Place all the dlls in the GAC.
Or
2. Use the following method:

Add the attached module to your app. This assumes that all the dlls are located in sub folder "Component" under your application's .exe file. Please change accordingly.

Then add the following line to the beginning of your app, either in sub Main() or Form_Load:

       AddHandler AppDomain.CurrentDomain.AssemblyResolve, AddressOf MyResolveEventHandler



Module1.vb
0
 
LVL 10

Author Comment

by:GlobaLevel
ID: 33501508
Zhaolai,

What does the Module.vb do? what function does that serve?
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33501634
Module1.vb contains a function to locate the assemblies your app references, if they are not in the same folder as the app. The event will fire when the reference is initialized and return appropriate assembly.

There is no need to modify the rest of your code in calling the references.



0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Automated testing suggestions? 2 45
Simple Injector with Web Service 4 38
cannot connect to sqlserver 8 25
Sql server, import complete table, using vb.net 9 32
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now