Groups | Blog | Home
all groups > asp.net > december 2004 >

asp.net : Path to Class Library



bruce barker
12/23/2004 4:39:20 PM
copy the dll (and all dll's it references) to the bin folder of the
webservice


[quoted text, click to view]
| Hi All,
|
| I've recently created a web service, which uses code within a class
library
| I created.
|
| In my development environment, I have referenced the class library - This
| works fine.
|
| Problem is, now I am ready to go live, I dont have access to the file
system
| of the web server (Just FTP access)
|
| So...how do I deploy to the live server, whilst maintaining the link to my
| shared code libraray DLL?
|
| Thanks,
| Simon.
|
| PS: Using Visual Studio.Net 2003.
|
|

Simon Harris
12/23/2004 11:59:49 PM
Hi All,

I've recently created a web service, which uses code within a class library
I created.

In my development environment, I have referenced the class library - This
works fine.

Problem is, now I am ready to go live, I dont have access to the file system
of the web server (Just FTP access)

So...how do I deploy to the live server, whilst maintaining the link to my
shared code libraray DLL?

Thanks,
Simon.

PS: Using Visual Studio.Net 2003.

Peter Rilling
12/24/2004 12:41:53 AM
That is the easiest. The other would be to install the assembly in the GAC.

When you reference an assembly in VS.NET, the IDE actually make a copy of
the assembly and places it in the bin folder. If you look at all your
webservice that are local, you should have a copy of your assembly in each.
This is just how things work and may require some configuration management
on your part to ensure that the versions do not get out of synch.

[quoted text, click to view]

Simon Harris
12/24/2004 1:36:58 AM
Thanks Bruce - Do I have to do this for each webservice/project? I was
hoping there would be a way of only storing the DLL once on the server???

[quoted text, click to view]

Simon Harris
12/25/2004 4:58:26 AM
Thanks for the replies guys.

I was talking to a friend yesterday who recommened this setup:

/root/bin <-- Store all 'common' libraries here

/root/appname/bin <-- Store app specific libraries here

I'm yet to try this, if it does work, then great! Only 1 copy of the common
code library to manage! Other wise, I'll look into using the GAC.

Best Regards,
Simon.

[quoted text, click to view]

Simon Harris
1/4/2005 8:01:44 PM
I tried as mentioned in my previous post, and it works a treat.

Heres how I've set my site up:

/aspnetapplications/ <- Setup as an application in IIS

/aspnetapplications/bin <- Contains all DLLs for all apps, plus any shared
stuff

/netapplications/app1
/netapplications/app2
/netapplications/app3....and so on

Only one place to update the code - Seems to work well! :)

AddThis Social Bookmark Button