473,387 Members | 1,859 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,387 software developers and data experts.

assembly in other dir

hi,

is it possible to place my .dll -files instead of in the bin dir of the
website in an other directory somewhere on my computer? the assemblies
should be loaded automatically. I want to centralize my dll-files.

Thanks for help,

alex
Nov 19 '05 #1
6 1035
Assembly loading in .NET is done by the assembly resolver. It has certain
rules it follows when loading assemblies and these rules are influenced by
configuration. In a stand-alone application you can configure this behavior
by modifying the application configuration file, but in ASP.NET the ASP.NET
runtime configures the host AppDomain. When it does this, it essentially
gives you the two options of the GAC or the ~/bin.

-Brock
DevelopMentor
http://staff.develop.com/ballen
hi,

is it possible to place my .dll -files instead of in the bin dir of
the website in an other directory somewhere on my computer? the
assemblies should be loaded automatically. I want to centralize my
dll-files.

Thanks for help,

alex


Nov 19 '05 #2
what is GAC ?
"Brock Allen" <ba****@NOSPAMdevelop.com> schrieb im Newsbeitrag
news:99**********************@msnews.microsoft.com ...
Assembly loading in .NET is done by the assembly resolver. It has certain
rules it follows when loading assemblies and these rules are influenced by
configuration. In a stand-alone application you can configure this
behavior by modifying the application configuration file, but in ASP.NET
the ASP.NET runtime configures the host AppDomain. When it does this, it
essentially gives you the two options of the GAC or the ~/bin.

-Brock
DevelopMentor
http://staff.develop.com/ballen
hi,

is it possible to place my .dll -files instead of in the bin dir of
the website in an other directory somewhere on my computer? the
assemblies should be loaded automatically. I want to centralize my
dll-files.

Thanks for help,

alex


Nov 19 '05 #3
> what is GAC ?

Global Assembly Cache -- it's a machine wide installiation location.

http://msdn.microsoft.com/library/de...emblycache.asp

-Brock
DevelopMentor
http://staff.develop.com/ballen

Nov 19 '05 #4
what is GAC ?
"Brock Allen" <ba****@NOSPAMdevelop.com> schrieb im Newsbeitrag
news:99**********************@msnews.microsoft.com ...
Assembly loading in .NET is done by the assembly resolver. It has certain
rules it follows when loading assemblies and these rules are influenced by
configuration. In a stand-alone application you can configure this
behavior by modifying the application configuration file, but in ASP.NET
the ASP.NET runtime configures the host AppDomain. When it does this, it
essentially gives you the two options of the GAC or the ~/bin.

-Brock
DevelopMentor
http://staff.develop.com/ballen
hi,

is it possible to place my .dll -files instead of in the bin dir of
the website in an other directory somewhere on my computer? the
assemblies should be loaded automatically. I want to centralize my
dll-files.

Thanks for help,

alex


Nov 19 '05 #5
> what is GAC ?

Global Assembly Cache -- it's a machine wide installiation location.

http://msdn.microsoft.com/library/de...emblycache.asp

-Brock
DevelopMentor
http://staff.develop.com/ballen

Nov 19 '05 #6
I think you may have answered a question I was just about to post. I wanted
to have two configurations of my ASP.NET project (I'm using an Access
database and obviously the databases are in different locations on my local
machine where I test, and on the server where the app will finally run, so
each version has a different connection string, among other differences). For
simplicity I decided to just use the standard Debug and Release
configurations which are there already. I changed the output path for the
Debug configuration from /bin to /debug and built both with no problem - but
when I ran with the Debug configuration it just went right on running the
Release version. Is this simply not possible with an ASP.NET project, and if
not why are the two configurations there at all, they seem to serve no
purpose?
--
Dave
"Brock Allen" wrote:
Assembly loading in .NET is done by the assembly resolver. It has certain
rules it follows when loading assemblies and these rules are influenced by
configuration. In a stand-alone application you can configure this behavior
by modifying the application configuration file, but in ASP.NET the ASP.NET
runtime configures the host AppDomain. When it does this, it essentially
gives you the two options of the GAC or the ~/bin.

-Brock
DevelopMentor
http://staff.develop.com/ballen
hi,

is it possible to place my .dll -files instead of in the bin dir of
the website in an other directory somewhere on my computer? the
assemblies should be loaded automatically. I want to centralize my
dll-files.

Thanks for help,

alex


Nov 19 '05 #7

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

Similar topics

26
by: nospam | last post by:
Just wondering, What do you think the difference in performance would be between (1.) Compiled C# (2.) Compiled C++ (3.) and Assembly Language And how would the mix be if some if any of...
4
by: Arnaud Debaene | last post by:
Hello group. I have an app which can load "plugins" assemblies that are described in the registry (each registry entry gives the full path to the plugin ..dll file). The plugins may be anywhere...
6
by: Tim Marsden | last post by:
Hi, I have a solution with 2 projects. The first creates a DLL. the second a EXE which references the DLL. Some classes and functions within the DLL have to be public so I can use them in the EXE...
0
by: Namratha Shah \(Nasha\) | last post by:
Hi All, Assembly linker is a tool which is used to create an assembly by combining one or more .netmodules and resource files. In simple words an .netmodule is an IL file that does not have ...
1
by: Zachary Hartnett | last post by:
I was trying to write a routine this morning that would open a given assembly, walk the inheritance tree of classes in the assembly, and provide a list of classes in the assembly that inherit from...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
6
by: Steve | last post by:
I'm playing with late binding and trying a very simple test to load an assembly In my "Host" application I have this code: <code> string modulePath =...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
12
by: TC | last post by:
I'm trying to figure out what the "Friend" keyword does. I know it specifies that "elements are accessible from within the same assembly", but that doesn't help because I don't know what an...
85
by: fermineutron | last post by:
Some compilers support __asm{ } statement which allows integration of C and raw assembly code. A while back I asked a question about such syntax and was told that __asm is not a part of a C...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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,...
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
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...

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.