several applications in a virtual directory

  • Thread starter Thread starter Max
  • Start date Start date
M

Max

I have several web applications I'm trying to upload to my web site, but it
seems to be only letting one run at a time. It's totally ignoring the new
bin folder in my subdirectory.

Is there anyway around this? I do not have access to IIS on the remote
machine, nor the ability to make a subdirectory an application.

I dot net would let us do this. :(

-Max
 
Just realized I had to place the all the DLL's in the root bin folder. Duh!
Seems to be working, but I hope I'm doing this right?

-Max
 
Just realized I had to place the all the DLL's in the root bin folder.
Duh!
Seems to be working, but I hope I'm doing this right?

That would certainly do the trick.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Putting all the dlls in the root folder for every application is generally
not a good idea. For one, the application assemblies will automatically be
loaded into memory, whether they are running or not. This is not a memory
efficient parttern needless to say. I'd recommend that you give each virtual
folder it's own bin and place the required dll only in this bin folder. This
is the .NET recommended way. Reserve your bin folder in your root directory
for common assemblies that need to share among each application.

Secondly, another insiduous problem arises with this approach which is if
you happen to have the same namespace and class defined in one or more
applications, you will get a multiple definition error when these two
applications are run on the server because the framework is unable to
resolve these definitions.
 
How about this idea!
If I ask my host to install FrontPage extensions, won't FrontPage or VS.NET
automatically create a new virtual directory in IIS through those
extensions?

I remember back in the day I was able to create subwebs through FrontPage...

-Max



Alvin Bruney said:
Putting all the dlls in the root folder for every application is generally
not a good idea. For one, the application assemblies will automatically be
loaded into memory, whether they are running or not. This is not a memory
efficient parttern needless to say. I'd recommend that you give each virtual
folder it's own bin and place the required dll only in this bin folder.
This
 
New concern...

As I'm digging into this is seems I can have two applications in the same
virtual directory, but only one global.asax is used.

So I'm wondering how I can get both applications to use the same
global.asax.

Is there some way to have it inherit two classes?

Something like this (code behind in the global.asax)....
<%@ Application Codebehind="Global.asax.vb" Inherits="project1.Global AND
project2.Global" %>

-Max
 
Back
Top