|
Home > Archive > Microsoft Content Management Server > January 2006 > Common files shared by multiple CMS websites
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Common files shared by multiple CMS websites
|
|
|
| I am brand new to MCMS so please forgive me for my lack of knowledge...
I am trying to determine if there is a way to "share" or to make available
common files between multiple CMS websites. For instance if I created a
"UsefulFunctions" file (probably .dll I'm guessing) can multiple websites
reference a single copy of that file? Or will I have to make copies of that
file and place the copies in locations accessible by each website?
Thanks for any help,
Rob
| |
| Stefan [MSFT] 2006-01-29, 9:09 pm |
| Hi Rob,
this is not a MCMS but an VS.NET/ASP.NET question.
For DLLs you need to add a reference to the DLL in your VS.NET project.
Then the DLL will be copied into the bin directory of the actual VS.NET
project.
For further details of this you should post to an ASP.NET/VS.NET related
newsgroup.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"Rob" <Rob@discussions.microsoft.com> wrote in message
news:E3C73745-98BD-4FC1-B69F-7C9A7EFB816C@microsoft.com...
>I am brand new to MCMS so please forgive me for my lack of knowledge...
>
> I am trying to determine if there is a way to "share" or to make available
> common files between multiple CMS websites. For instance if I created a
> "UsefulFunctions" file (probably .dll I'm guessing) can multiple websites
> reference a single copy of that file? Or will I have to make copies of
> that
> file and place the copies in locations accessible by each website?
>
> Thanks for any help,
> Rob
| |
| Spencer Harbar [MVP] 2006-01-29, 9:09 pm |
| Hello Rob,
Sure if it is a component and you "trust" it - you can place that component
in the GAC.
hth
Spence
www.mcmsfaq.com
> I am brand new to MCMS so please forgive me for my lack of
> knowledge...
>
> I am trying to determine if there is a way to "share" or to make
> available common files between multiple CMS websites. For instance if
> I created a "UsefulFunctions" file (probably .dll I'm guessing) can
> multiple websites reference a single copy of that file? Or will I
> have to make copies of that file and place the copies in locations
> accessible by each website?
>
> Thanks for any help,
> Rob
| |
|
| Stefan,
Thank you for the response.
However, does adding a dll to the bin directory make that dll accessible to
other local websites? Or does the dll need to be put in the GAC as Spence
suggested?
(BTW... thank you for the response also Spence)
Thanks,
Rob
"Stefan [MSFT]" wrote:
> Hi Rob,
>
> this is not a MCMS but an VS.NET/ASP.NET question.
> For DLLs you need to add a reference to the DLL in your VS.NET project.
> Then the DLL will be copied into the bin directory of the actual VS.NET
> project.
>
> For further details of this you should post to an ASP.NET/VS.NET related
> newsgroup.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "Rob" <Rob@discussions.microsoft.com> wrote in message
> news:E3C73745-98BD-4FC1-B69F-7C9A7EFB816C@microsoft.com...
>
>
>
| |
| Spencer Harbar [MVP] 2006-01-29, 9:09 pm |
| Hello Rob,
If you want to share a component between apps yoou have two options:
a) install it in the GAC
b) copy it to the BIN folder of each app
Copying the component to the BIN fodler means it will be available only to
that application - in this case the Virtual Directory so it won't be available
to other Virtual Directories or Virtual Web Sites.
hth
Spence
www.mcmsfaq.com
[vbcol=seagreen]
> Stefan,
> Thank you for the response.
> However, does adding a dll to the bin directory make that dll
> accessible to other local websites? Or does the dll need to be put in
> the GAC as Spence suggested?
>
> (BTW... thank you for the response also Spence)
>
> Thanks,
> Rob
> "Stefan [MSFT]" wrote:
>
| |
| Stefan [MSFT] 2006-01-29, 9:09 pm |
| Correct.
Thanks Spence!
:-)
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"Spencer Harbar [MVP]" <spence@harbar.net> wrote in message
news:6f72f8b162c38c7f0ad213f0fa4@msnews.microsoft.com...
> Hello Rob,
>
> If you want to share a component between apps yoou have two options:
>
> a) install it in the GAC
> b) copy it to the BIN folder of each app
>
> Copying the component to the BIN fodler means it will be available only to
> that application - in this case the Virtual Directory so it won't be
> available to other Virtual Directories or Virtual Web Sites.
>
> hth
> Spence
> www.mcmsfaq.com
>
>
>
|
|
|
|
|