 |
| ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

May 25th, 2004, 09:11 AM
|
|
Authorized User
|
|
Join Date: Mar 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Assemblies in nested applications
I have a web site running as an application that contains a virtual directory that is also running as an application. Obviously, both of these applications contain a bin directory. Is there a way to use the same assembly in both applications without copying it into both bin folders? What I would like to do is have the virtual directory's bin folder automatically include the contents of the site's bin folder. I'd also like to avoid shared assemblies if possible to utilize x-copy deployment.
|
|

May 25th, 2004, 11:25 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
I guess u run ur App in two diffrent Machine, Am I right?!
If so who u dont delete second & connect first! I mean run it from 1 Machine in many client.
Wish I got ur question.
Always:),
Hovik Melkomian.
|
|

May 25th, 2004, 12:12 PM
|
|
Authorized User
|
|
Join Date: Mar 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Actually I'm running them on the same machine. I have a PageBase class, for instance, and it's inherited in all the pages in my site. I'd like to add a directory to my site and run it as it's own application. The problem is that I'd like to have the pages in this application (virtual directory) also utilize the PageBase class. I could just copy the DLL file into both bin directories, or make it a shared assembly. I was just hoping that I could use a virtual directory inside the bin, or somehow have one bin inherit from another.
|
|

May 25th, 2004, 12:53 PM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Because of the way that .net looks for assemblies, I'm afraid you won't be able to accomplish what you hope to. The only option that I can think of is to put the assembly that needs to be used by multiple applications into the Global Assembly Cache (GAC). This would allow you to reference an assembly by name without having it in the application's /bin directory.
I think the easiest solution is to just put a copy of it in both applications /bin directory. Just keep track of where you need to copy new versions to.
Peter
-------------------------
Work smarter, not harder
|
|

May 25th, 2004, 10:45 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
I dont know why u run an App. twice in a machine, yet?!
Did I miss someting to read in ur message...
Always:),
Hovik Melkomian.
|
|

May 26th, 2004, 07:50 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Hovik,
mkerchenski is saying that there are two different applications that want to use the same assembly. Because they are separate applications, they must both have their own /bin directory, thus you must have two copies of the same exact assembly (unless you use the GAC).
|
|

May 26th, 2004, 09:39 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
Ops! now is ok! But I wonder if its a UserControl or a .dll ?
Always:),
Hovik Melkomian.
|
|

May 26th, 2004, 09:53 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
Ops! Now I got sorry! I wonder if its a UserControl or a .DLL?!
Always:),
Hovik Melkomian.
|
|

May 26th, 2004, 09:57 AM
|
|
Authorized User
|
|
Join Date: Mar 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
It's a DLL.
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Assemblies |
smashingpravin |
.NET Framework 1.x |
1 |
January 2nd, 2007 02:10 AM |
| Using Custom Assemblies |
dlwiii |
BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 |
2 |
December 27th, 2004 01:36 PM |
| Assemblies |
leeperm |
C# |
2 |
April 29th, 2004 08:23 AM |
| Chapter 8 - Assemblies |
Dark Prodigy |
BOOK: Professional C#, 2nd and 3rd Editions |
1 |
July 20th, 2003 05:47 AM |
| Decompilation of assemblies |
jacob |
Classic ASP Components |
0 |
July 5th, 2003 07:31 AM |
|
 |