Re: DLL loading Question

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Sep 11, 3:24 pm, "DaveP" <dvs_...@xxxxxxxxxxxxx> wrote:
any Examples anywhere that you may know of

doesn't SSiS do somthing like this with SSiS Packages

TIA
DaveP

"Nicholas Paldino [.NET/C# MVP]" <m...@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
messagenews:OOt5y6K9HHA.2752@xxxxxxxxxxxxxxxxxxxxxxx



But you can't unload the dll unless you unload the app domain which the
assembly was loaded in. This would mean that you have to create a new app
domain and run the code in that app domain.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"David Yang" <David Y...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:25DC7C7A-DBC3-4A62-AE17-C14AEA42A6AA@xxxxxxxxxxxxxxxx
You can use assembly class to load the dll if the dll is an assembly.

"DaveP" wrote:

How can i dynamically load a Dll and unload said Dll
using c#
i have a Situation where i have many dlls that are client based and only
need to be loaded and code executed based on client ID.

for instance
i have a Service Running the gets Record sets for output file formating
based on client Requirements
and this service reads a dll to load and instantiate classes based on
clientID

so service would load the dll
execute Class Inside the dll , create output file
service unload dll

TIA
DaveP- Hide quoted text -

- Show quoted text -

Hi Dave,
I have done what I think you are trying to do using reflection. Your
app would then have to be aware of the dll's interface and then load
that at runtime.
Maybe this is not what you are looking for. Check out some plugin
examples at CodeProject.
Jeff

.



Relevant Pages

  • Re: Dumbass user or problem with regsvr32
    ... I decomissioned my last Win16 machine in 1999; I needed it to check out legacy code, ... I'm disinclined to ever develop another app to run on MS-DOS. ... that a client needs validation that the app can run on 4.0. ... >I once had similar errors because i was trying to register a dll on Win98 ...
    (microsoft.public.vc.mfc)
  • Re: Best way to auto-start Remoting host that is a Windows Forms app?
    ... Currently I am just trying using Process.Start to launch the host app from ... wrapping it up into a client-side DLL for reuse and encapsulation. ... The requirement now is that the client "touches" the dll before going ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: DLL loading Question
    ... doesn't SSiS do somthing like this with SSiS Packages ... need to be loaded and code executed based on client ID. ... and this service reads a dll to load and instantiate classes based on ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Best way to auto-start Remoting host that is a Windows Forms app?
    ... You could have a client-side dll that does the launching of the host process etc. ... The requirement now is that the client "touches" the dll before going anywhere near to the exe. ... I have thin proxy objects in my client side dll that simply forward the calls to the corresponding remoted object and hence the client apps don't even know/reference the remoted dll - they do everything through the local dll and the out-of-proc business is transparent. ... I don't really want to turn the host app into a Windows Service if I don't ...
    (microsoft.public.dotnet.framework.remoting)
  • run an dll as an App?
    ... Run a dll as an app is a legitimate Microsoft utility.It ... You do not specify which firewall you are running.You may ... as client not server.The exception to this would be ...
    (microsoft.public.security)