Solved

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

Posted on 2010-08-22
5
448 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

13 Experts available now in Live!

Get 1:1 Help Now