[RESOLVED]C# class .DLL

 Can any one give me a valid and straight answer, because I do not believe my hosting service.

here it goes

I have 2 completly different hosted folder in the same server running IIS 6 both

Folder # 1 named cart

Folder # 2 within cart named backoffice

both are set virtual for .NET 3.0 and treated as completly separated environment

one www.mydomain.com

and the other one www.mydomain.com/backoffice

because we did not want to make a sub-domain or domain

there is 2 managed .DLL written with c#

with the same name myComponent.dll sitting in different bin folder

wwwrootcartbinmyComponent.dll (This one has different functionalities than the one below)

wwwrootcartbackofficebinmyComponent.dll

it just turned out to be the same exact name.  Both .DLL were created by 2 different developers in case you ask one was not aware what the other one was doing so by coincidence they created .dll with same name. I was one of those developer in case you ask
and mine was first created then his was created 3 weeks after mine. but this is not the case.

IIS is treating these 2 virtual folders differently but per the hoster claiming that one .dll interfere with the other one. Is this true?

 

TIA

 

 

 

 

My gues is that you should create backoffice as a site, and not only a virtual directory. So one componente will not interfere with the other one.

Can you tell us if it worked?

 well one breaks the other one, it only works on one, cart broke the backoffice one

after was copied to the cartbin folder.

 

Thanks much for the promptly reply

 

 

Hi,

msdevm

I have 2 completly different hosted folder in the same server running IIS 6 both

Folder # 1 named cart

Folder # 2 within cart named backoffice

both are set virtual for .NET 3.0 and treated as completly separated environment

one www.mydomain.com

and the other one www.mydomain.com/backoffice

because we did not want to make a sub-domain or domain

there is 2 managed .DLL written with c#

with the same name myComponent.dll sitting in different bin folder

wwwrootcartbinmyComponent.dll (This one has different functionalities than the one below)

wwwrootcartbackofficebinmyComponent.dll

 In this case, if you request backoffice website using
www.mydomain.com/backoffice
, the folder cart will be treated as root directory and the assembly will be loaded from its Bin folder. So you got error.

To work around this issue, you can request backoffice as separate website without inheriting cart website, such as
http://backoffice. Or you can rename one myComponent.dll and copy them in cart website’s Bin folder.

 

I look forward to receiving your test results.

 

Leave a Reply