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
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] "Casey" <Casey@discussions.microsoft.com> wrote in message news:3B11BFC3-D81C-4B54-A9C0-E0652F99EEF9@microsoft.com... > 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 > trying to do can be done, I just don't know how...
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" <Casey@discussions.microsoft.com> wrote in message news:3B11BFC3-D81C-4B54-A9C0-E0652F99EEF9@microsoft.com... > 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 > trying to do can be done, I just don't know how...
Any suggestions for what to use then? [quoted text, click to view] "Fred Hirschfeld" wrote: > 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 > > "Casey" <Casey@discussions.microsoft.com> wrote in message > news:3B11BFC3-D81C-4B54-A9C0-E0652F99EEF9@microsoft.com... > > 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 > > trying to do can be done, I just don't know how... > >
Score! Thats exactly what I'm looking to do. Thanks. [quoted text, click to view] "Ken Kolda" wrote: > 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 > > > "Casey" <Casey@discussions.microsoft.com> wrote in message > news:3B11BFC3-D81C-4B54-A9C0-E0652F99EEF9@microsoft.com... > > 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 > > trying to do can be done, I just don't know how... > >
Thats also a very good point. Thanks for the advice. [quoted text, click to view] "Dumitru Sbenghe" wrote: > 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 > > "Casey" <Casey@discussions.microsoft.com> wrote in message > news:3E7DE807-BB21-4FB9-B277-2889027049BA@microsoft.com... > > Any suggestions for what to use then? > > > > "Fred Hirschfeld" wrote: > > > > > 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 > > > > > > "Casey" <Casey@discussions.microsoft.com> wrote in message > > > news:3B11BFC3-D81C-4B54-A9C0-E0652F99EEF9@microsoft.com... > > > > 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 > > > > trying to do can be done, I just don't know how... > > > > > > > > > > >
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] "Casey" <Casey@discussions.microsoft.com> wrote in message news:3E7DE807-BB21-4FB9-B277-2889027049BA@microsoft.com... > Any suggestions for what to use then? > > "Fred Hirschfeld" wrote: > > > 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 > > > > "Casey" <Casey@discussions.microsoft.com> wrote in message > > news:3B11BFC3-D81C-4B54-A9C0-E0652F99EEF9@microsoft.com... > > > 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 > > > trying to do can be done, I just don't know how... > > > > > >
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] "Casey" wrote: > 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
Don't see what you're looking for? Try a search.
|