473,657 Members | 2,397 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1715
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****@dylanpa rrt.com> wrote in message
news:fb******** ******@dylanpar ry.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****@dylanpa rrt.com> wrote in message news:1f******** *******@dylanpa rry.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.m icrosoft.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
1636
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 Windows XP computer or on a Windows 2000, it works only if I add the same user on all computers. What do I have to do on Windows 2000 Server if I want to read my
0
1673
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 drive using the win32 Api and using the handle returned, i call writefile giving number of bytes to write as 1MB. Shared directory on the machine maps to F: drive ( "shared" is the directory name maps to " F:") In VC6 on executing...
5
7068
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 getting this error when I try to run the command 'db2 "backup database dbname online to /opt/BACKUP"' on my 3 databases: SQL1042C An unexpected system error occurred. SQLSTATE=58004
1
2496
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 the W98SE machine via a TCP/IP network. This directory holds Foo.exe, and I want to run the program on the W98SE machine by clicking on Foo.exe. I *am* able to run a C# console application without problem from the shared directory. So I presume...
4
1739
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 Raveendran
27
2549
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: Mensaje de error del analizador: We can't load the type 'JULIAN.Global'.
2
2193
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 does not work, although I can through code open and copy files from "\Docs"
3
6808
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 answer... Thanks in advance!
6
3928
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 (folder is created but is not shared). Does anyone know how to solve this problem? Thanks.
21
8373
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
8402
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8315
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8829
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8508
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8608
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6172
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4164
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2733
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.