473,585 Members | 2,657 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Possible to have common assembly dir w/o GAC?

Hi,

It is possible to reference an assembly in a directory other than in the bin
subdir without registering in ghe GAC?

For instance, I would love to have all my web apps on one server reference
assemblies from a c:\inetpub\wwro ot\common directory shared by the apps on
that web server.

Thanks for any ideas.

Dave
Nov 18 '05 #1
4 1328
If the DLL(s) was thread safe, you could probably create an instance of your
object(s) in the global.asax application_ons tart event
and place that object in an application variable. Then all web pages have
access to it as they do to the application objects.

This isn't however a recommended approach and you should use the GAC or
replicate your DLL.
--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
----------------------------------------------------------------------------
------------------------------------
<blatant plug>
Professional .NET for Java Developers with C#- ISBN: 1-861007-91-4
Professional Windows Forms - ISBN: 1861005547
Professional JSP 2nd Edition - ISBN: 1861004958
Professional JSP - ISBN:
1861003625
Beginning JSP Web Development - ISBN: 1861002092
</blatant plug>
----------------------------------------------------------------------------
------------------------------------

"Dave Kolb" <Da************ **@remove.sas.c om> wrote in message
news:ud******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

It is possible to reference an assembly in a directory other than in the bin subdir without registering in ghe GAC?

For instance, I would love to have all my web apps on one server reference
assemblies from a c:\inetpub\wwro ot\common directory shared by the apps on
that web server.

Thanks for any ideas.

Dave

Nov 18 '05 #2
What about creating a junction point for each web app that wants to use a
common assembly dir higher up the root using the linkd.exe and then using a
<probing> directive somehow? What are the asp.net runtime rules for locating
assemblies?

Any reason it would not be a nice future asp.net feature to allow a
web.config to reference a common assembly dir to load from without resorting
to the complications of strong names and GAC registration?

Thanks,
Dave

"John Timney (Microsoft MVP)" <ti*****@despam med.com> wrote in message
news:u1******** ******@TK2MSFTN GP11.phx.gbl...
If the DLL(s) was thread safe, you could probably create an instance of your object(s) in the global.asax application_ons tart event
and place that object in an application variable. Then all web pages have
access to it as they do to the application objects.

This isn't however a recommended approach and you should use the GAC or
replicate your DLL.

Regards

John Timney
Microsoft Regional Director
Microsoft MVP <snip> "Dave Kolb" <Da************ **@remove.sas.c om> wrote in message
news:ud******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

It is possible to reference an assembly in a directory other than in the

bin
subdir without registering in ghe GAC?

For instance, I would love to have all my web apps on one server reference assemblies from a c:\inetpub\wwro ot\common directory shared by the apps on that web server.

Thanks for any ideas.

Dave

Nov 18 '05 #3
This seems to work fine:

1. cd c:\inetpub\wwwr oot\myapp
2. do a "linkd bin2 c:\inetpub\wwwr oot\common"
3. put needed modules in the common dir.
4. Add the following to web.config for the app and the app runs with them
and fails if they are not there.
<runtime>

<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">

<probing privatePath="bi n2"/>

</assemblyBinding >

</runtime>

"Dave Kolb" <Da************ **@remove.sas.c om> wrote in message
news:#g******** *****@TK2MSFTNG P12.phx.gbl...
What about creating a junction point for each web app that wants to use a
common assembly dir higher up the root using the linkd.exe and then using a <probing> directive somehow? What are the asp.net runtime rules for locating assemblies?

Any reason it would not be a nice future asp.net feature to allow a
web.config to reference a common assembly dir to load from without resorting to the complications of strong names and GAC registration?

Thanks,
Dave

"John Timney (Microsoft MVP)" <ti*****@despam med.com> wrote in message
news:u1******** ******@TK2MSFTN GP11.phx.gbl...
If the DLL(s) was thread safe, you could probably create an instance of your
object(s) in the global.asax application_ons tart event
and place that object in an application variable. Then all web pages have
access to it as they do to the application objects.

This isn't however a recommended approach and you should use the GAC or
replicate your DLL.

Regards

John Timney
Microsoft Regional Director
Microsoft MVP

<snip>
"Dave Kolb" <Da************ **@remove.sas.c om> wrote in message
news:ud******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

It is possible to reference an assembly in a directory other than in
the bin
subdir without registering in ghe GAC?

For instance, I would love to have all my web apps on one server

reference assemblies from a c:\inetpub\wwro ot\common directory shared by the
apps on that web server.

Thanks for any ideas.

Dave


Nov 18 '05 #4
Sounds like you have a solution ..............

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
----------------------------------------------------------------------------
------------------------------------
<blatant plug>
Professional .NET for Java Developers with C#- ISBN: 1-861007-91-4
Professional Windows Forms - ISBN: 1861005547
Professional JSP 2nd Edition - ISBN: 1861004958
Professional JSP - ISBN:
1861003625
Beginning JSP Web Development - ISBN: 1861002092
</blatant plug>
----------------------------------------------------------------------------
------------------------------------

"Dave Kolb" <Da************ **@remove.sas.c om> wrote in message
news:uu******** ******@tk2msftn gp13.phx.gbl...
This seems to work fine:

1. cd c:\inetpub\wwwr oot\myapp
2. do a "linkd bin2 c:\inetpub\wwwr oot\common"
3. put needed modules in the common dir.
4. Add the following to web.config for the app and the app runs with them
and fails if they are not there.
<runtime>

<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">

<probing privatePath="bi n2"/>

</assemblyBinding >

</runtime>

"Dave Kolb" <Da************ **@remove.sas.c om> wrote in message
news:#g******** *****@TK2MSFTNG P12.phx.gbl...
What about creating a junction point for each web app that wants to use a
common assembly dir higher up the root using the linkd.exe and then using
a
<probing> directive somehow? What are the asp.net runtime rules for

locating
assemblies?

Any reason it would not be a nice future asp.net feature to allow a
web.config to reference a common assembly dir to load from without

resorting
to the complications of strong names and GAC registration?

Thanks,
Dave

"John Timney (Microsoft MVP)" <ti*****@despam med.com> wrote in message
news:u1******** ******@TK2MSFTN GP11.phx.gbl...
If the DLL(s) was thread safe, you could probably create an instance of your
object(s) in the global.asax application_ons tart event
and place that object in an application variable. Then all web pages

have access to it as they do to the application objects.

This isn't however a recommended approach and you should use the GAC
or replicate your DLL.

Regards

John Timney
Microsoft Regional Director
Microsoft MVP

<snip>
"Dave Kolb" <Da************ **@remove.sas.c om> wrote in message
news:ud******** ******@TK2MSFTN GP12.phx.gbl...
> Hi,
>
> It is possible to reference an assembly in a directory other than in

the bin
> subdir without registering in ghe GAC?
>
> For instance, I would love to have all my web apps on one server

reference
> assemblies from a c:\inetpub\wwro ot\common directory shared by the

apps
on
> that web server.
>
> Thanks for any ideas.
>
> Dave



Nov 18 '05 #5

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

Similar topics

1
3589
by: Burton Wilkins | last post by:
Dear Brandon: You sent me some advice before as to how get the DataLink working, but I haven't been able to get your solution to compile: You sent me this: >Hi Burton, I was able to get the following code to compile: > #using <mscorlib.dll> > #using <adodb.dll>
2
1396
by: Jiho Han | last post by:
I was wondering whether it was possible to change the default ASP.NET compilation behavior. I know that there is <compilation> element in the config where you can specify quite a few things including the compiler options, assemblies to link, etc. However, I can't seem to find a way to have the compiler add/use certain path to locate the...
10
1579
by: Steven Spits | last post by:
Hi, Because we have a large WebApp, back in 2002 we decided to use the following method: http://support.microsoft.com/default.aspx?scid=kb;en-us;307467 In short: Create a project "a" at http//localhost/MyWebApp
0
224
by: Chertzy B | last post by:
Datasets in Whidbey (Beta 2) contain a namespace property suggesting that it is possible to web enable them. However, it seems very difficult to do this. Take the following scenario 3 projects in a solution WidgetWindows (a windows application) WidgetLibrary (a project containing datasets)
4
982
by: rodchar | last post by:
hey all, is there a way to call a vb.net app from excel (i know the vice versa is possible of course)? If so, how and is this a common thing to do? Safe? Thanks, rodchar
1
1494
by: Andreas Mueller | last post by:
Hi all, I have an attribute class: class MyAttribute : Attribute { public MyAttribute(){ } }
5
1327
by: MC-Advantica | last post by:
Is it possible to place a strongly named assembly (C++ based) which references legacy (i.e., native) DLLs in the GAC? I seem to be having difficulty when trying to load the assembly into a client app. I wondered how the assembly found the legacy DLL dependencies; is there some kind of search path?
7
1792
by: James Crosswell | last post by:
I want to create a class with a static property as follows: class MyClass { private static List<MyHandlerRegisteredHandlers = new List<MyHandler>; } I then want to be able to create descendants of the MyHandler class which will register themselves using a RegisterHandler method, which
0
1391
by: Dmitrii | last post by:
My C# project has 4-configuration: Debug, Release, DebugPlus, and ReleasePlus. In each of these configurations the C# program should consume (be "linked" to) a different Assembly.dll build created by a C++/CLI multiple configuration project:: Debug, Release, DebugPlus, and ReleasePlus Assembly.dll, respectively. So far I could not find a...
0
7836
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8199
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7950
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8212
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5389
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.