473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Shared /bin directory?

Hi folks,

Appologies if this question is either a) stupid; or b) asked every ten
minutes :)

I manage several websites that are all based on the same code, so they all
have a /bin directory that contains the same .dll files. When I make
changes to the code behind these dll files I have to reupload the same dll
files to each of the bin directories for each of the sites - obviously this
is a PITA!

So I was wondering; is there a simple way (eg. web.config) that I can,
without full access to the server (ie. I have FTP access only), upload the
files to just one directory and have all of my sites share the same /bin
directory?

Cheers,

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!

Usenet: The first post is free, but the next will cost you your soul.
Nov 28 '05 #1
8 1703
Dylan,
Create one common directory for the dlls to reside.And make reference
to that common directory.This will avoid ur copying of dlls to each web site.

"Dylan Parry" wrote:
Hi folks,

Appologies if this question is either a) stupid; or b) asked every ten
minutes :)

I manage several websites that are all based on the same code, so they all
have a /bin directory that contains the same .dll files. When I make
changes to the code behind these dll files I have to reupload the same dll
files to each of the bin directories for each of the sites - obviously this
is a PITA!

So I was wondering; is there a simple way (eg. web.config) that I can,
without full access to the server (ie. I have FTP access only), upload the
files to just one directory and have all of my sites share the same /bin
directory?

Cheers,

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!

Usenet: The first post is free, but the next will cost you your soul.

Nov 28 '05 #2
Pondering the eternal question of "Hobnobs or Rich Tea?", Santhi
Maadhaven finally proclaimed:
Create one common directory for the dlls to reside.And make reference
to that common directory.This will avoid ur copying of dlls to each web site.


Yes, that's the sort of thing I am after, but as I am still learning
this .net thingy I don't have a clue how I do that?

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!

Usenet: The first post is free, but the next will cost you your soul.
Nov 28 '05 #3
Dylan are you using VS.NET for development?
What Santhi was saying is you should copy the DLL's to the bin directory and
make
reference to that directory by right clicking on your project and select Add
reference from VS.NET
Hope that helps
Pattrick
"Dylan Parry" <us****@dylanparrt.com> wrote in message
news:fb**************@dylanparry.com...
Pondering the eternal question of "Hobnobs or Rich Tea?", Santhi
Maadhaven finally proclaimed:
Create one common directory for the dlls to reside.And make reference
to that common directory.This will avoid ur copying of dlls to each web
site.
Yes, that's the sort of thing I am after, but as I am still learning
this .net thingy I don't have a clue how I do that?

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!

Usenet: The first post is free, but the next will cost you your soul.

Nov 28 '05 #4
Pondering the eternal question of "Hobnobs or Rich Tea?", Patrick.O.Ige
finally proclaimed:
What Santhi was saying is you should copy the DLL's to the bin
directory and make reference to that directory by right clicking on
your project and select Add reference from VS.NET


I've done that for reusing the same DLL's in several projects, but that
still means that I have to upload the produced DLL file for each of the
sites using it though? What I want to be able to do is only upload it to
*one* location and have all the sites use it from there rather than have
a separate version of it in each site's /bin directory.

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!

Usenet: The first post is free, but the next will cost you your soul.
Nov 28 '05 #5
You could install it in the server's GAC.
That would make it available to all applications on the server.

Be forewarned that changing versions for GAC'd assemblies
might prove to be a bit spinier than simply uploading new versions
to the /bin directories.

Juan T. Llibre
ASP.NET.FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================

"Dylan Parry" <us****@dylanparrt.com> wrote in message news:1f***************@dylanparry.com...
Pondering the eternal question of "Hobnobs or Rich Tea?", Patrick.O.Ige
finally proclaimed:
What Santhi was saying is you should copy the DLL's to the bin
directory and make reference to that directory by right clicking on
your project and select Add reference from VS.NET


I've done that for reusing the same DLL's in several projects, but that
still means that I have to upload the produced DLL file for each of the
sites using it though? What I want to be able to do is only upload it to
*one* location and have all the sites use it from there rather than have
a separate version of it in each site's /bin directory.

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!

Usenet: The first post is free, but the next will cost you your soul.

Nov 28 '05 #6
Dylan Parry wrote:
Pondering the eternal question of "Hobnobs or Rich Tea?", Patrick.O.Ige
finally proclaimed:
What Santhi was saying is you should copy the DLL's to the bin
directory and make reference to that directory by right clicking on
your project and select Add reference from VS.NET


I've done that for reusing the same DLL's in several projects, but that
still means that I have to upload the produced DLL file for each of the
sites using it though? What I want to be able to do is only upload it to
*one* location and have all the sites use it from there rather than have
a separate version of it in each site's /bin directory.

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!

Usenet: The first post is free, but the next will cost you your soul.


Hi Dylan,

If each of the sites literally uses exactly the same DLLs, and only the
same DLLs, there may be a way - but only if you can get access to the
box. So was your original restriction of "access only by FTP" a "I can
only access via FTP for my day-to-day website maintenance - the server
is locked away in the server room away from prying hands", or more of a
"I'm hosted, the hosters only let me upload via FTP".

If you can get access to the box, then there is a program available in
the windows resource kits that essentially allows you to connect
directories together so that they are one single directory. It's called
linkd, and you'd probably want to experiment with it on a normal
machine before doing it to your server. Also, I cannot think of a
reason why it wouldn't, but this may not be a supported way of using
ASP.NET.

If you're not allowed any access to the server, you may be able to
persuade your hosters that this is a perfectly safe thing to do, and
get them to do the work for you. Good luck with that! :-)

Other than that, I do not believe there's any way to do what you want
to do - ASP.NET expects things to be in certain paths, so unless you
can make the filesystem make the files appear at those paths, you'll be
out of luck.

Damien

Nov 28 '05 #7
Pondering the eternal question of "Hobnobs or Rich Tea?", Damien finally
proclaimed:
"I can only access via FTP for my day-to-day website maintenance - the
server is locked away in the server room away from prying hands"
That's the gist of it, yes :(
If you're not allowed any access to the server, you may be able to
persuade your hosters that this is a perfectly safe thing to do, and
get them to do the work for you. Good luck with that! :-)
Well he only lives down the road from our office and is a friend of
ours, so he could be open to persuasion, but still I doubt it!

.... unless you can make the filesystem make the files appear at those
paths, you'll be out of luck.


What I will probably do is set up an FTP script to automagically upload
the DLL to all of the locations it is needed at whenever I change it,
which will sort of solve my problem but in a different way to how I
imagined...

Cheers,

--
Dylan Parry
http://electricfreedom.org -- Where the Music Progressively Rocks!

Usenet: The first post is free, but the next will cost you your soul.
Nov 28 '05 #8
On Mon, 28 Nov 2005 04:56:02 -0800, "Santhi Maadhaven"
<Sa*************@discussions.microsoft.com> wrote:
Dylan,
Create one common directory for the dlls to reside.And make reference
to that common directory.This will avoid ur copying of dlls to each web site.


Easier said than done...

--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 28 '05 #9

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

Similar topics

1
by: Chris | last post by:
I try to read a shared directory. This shared directory is on a 2000 server. When I use DirectoryInfo.Exists, I always have "This directory does not exist". If the shared directory is on a...
0
by: Nitin Narang | last post by:
I have a piece of code which is moved to .NET VC7 recently from VC6 and there has been an apparent change in behavior using CreateFile/Writefile functionality. I am creating a file on a shared...
5
by: Jim | last post by:
Hello, I have a broken server that we are going to be moving off to a new server with a new version of DB2 but here is what I have right now: RedHat 7.0 (2.2.24smp) DB2 v6.1.0.40 I am...
1
by: Fred Mellender | last post by:
I wish to run a C# Windows Forms program on a Windows 98SE machine, from a directory that is owned by a Windows XP machine. The directory is shared via directory sharing from the XP machine to...
4
by: Prasanth Raveendran | last post by:
Through an ASP.Net page I want to browse a shared folder. So i used directory.exist(\\machinename\sharename) but it returns false even if the directory exist. please help me -- Prasanth...
27
by: Javier Martinez | last post by:
Hi I have asp application in a machine with a virtual directory referring a shared directory in another machine When I try to load any aspx page of my portal I get the following error: ...
2
by: Paul Bromley | last post by:
How can I create a directory within a shared ntwork directory?? sServerName - is the Server name "\Docs" - is the shared directory "\Others" - is the directory to create. The following...
3
by: KSC | last post by:
Hello, Is there a way to programmatically determine if a directory is shared and if so, what the sharename is? It seems a simple question, but I have been searching and not found the...
6
by: jzdeng | last post by:
Hi, All I use VS 2005 to create a web service. The web service is used to create a sheared folder. It works fine we I run it from VS 2005. But, when I move it to inetpub, it does not work...
21
by: llothar | last post by:
Hello, i need to manage a heap in shared memory. Does anybody know about a portable (win32+mac+posix) c implementation for this.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...

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.