Groups | Blog | Home
all groups > dotnet remoting > january 2005 >

dotnet remoting : Is remoting what I'm thinking about?


Casey
1/31/2005 12:45:02 PM
I have several different dll's that I use in my asp.net development. One of
them is used for sending email, another creates a dropdown menu with various
service codes, there are others too. The plus side to these classes is that
it provides consistant info, and it also allows me save time by reusuing code.

Now for my question. Say, for instance, the name of our mail server changes.
Unless I update the code for the mail class I created, the emails that my
asp.net pages send will fail. Not a problem, all I have to do is update the
mailserver in the code, and recompile it. The problem is that I'd have to
also recompile all the apps that use that class. I'd like to have 1 copy of
the dll on the server, and have all my apps refer to that dll. That way, I
can just drop my new dll in the folder, and be done with it. I know what I'm
Fred Hirschfeld
1/31/2005 1:10:45 PM
Normally you would find that information in configuration files for the
applications rather than in a compiled DLL. Remoting is likely not what you
are looking for.

Fred

[quoted text, click to view]

Ken Kolda
1/31/2005 1:21:26 PM
This isn't remoting related -- what you need to do is place your assembly in
the GAC. This is where you put shared assemblies so you can update them in a
single place.

Ken


[quoted text, click to view]

Casey
1/31/2005 1:23:04 PM
Any suggestions for what to use then?

[quoted text, click to view]
Casey
1/31/2005 1:39:01 PM
Score! Thats exactly what I'm looking to do. Thanks.

[quoted text, click to view]
Casey
2/1/2005 8:09:17 AM
Thats also a very good point. Thanks for the advice.

[quoted text, click to view]
Dumitru Sbenghe
2/1/2005 10:52:57 AM
I guess Fred want to say, what I think also, that it is unreasonable to
compile a mail send dll only because the mail server name has changed.

Make the dll used to send email (the classes inside it) to accept the name
of the mail server as parameter. And the mail server can be configured
externally in the application config file or a similar place; it depends of
your requirements and restrictions.

Dumitru Sbenghe

[quoted text, click to view]

Kaustav
2/7/2005 4:09:25 AM
Hi Casey,

how about using a configuration file to store the mail server name and refer
the same from your class. No need to recompile any dll's in such a scenario.

HTH.

Kaustav.

[quoted text, click to view]
AddThis Social Bookmark Button