Re: Loading Class Library From FTP Location To Memory

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



The web service is fine, but to clarify, my security concern was that the client machine would let code be executed from a byte array not stored locally.

"Coder" <Someone@xxxxxxxxxxxxxxx> wrote in message news:%23XwpucqOJHA.4304@xxxxxxxxxxxxxxxxxxxxxxx

Thanks for your reply,

You show me a good way but I ll try to do using webservice (returns byte[] array) instead of downloading dll file, cos I ll use dll based authentication and planning my web service accept some parameters (usercode, pass, dllname, etc..) and gives me desired dll as bytearray, every dll will have same method like ( showsomething() ) and main app will call it.

I ll track the logs on my web service side

Thanks for all, researching in progress :)



"Family Tree Mike" <FamilyTreeMike@xxxxxxxxxxxxxxxx> wrote in message news:e$8jcHhOJHA.1148@xxxxxxxxxxxxxxxxxxxxxxx
Well, it looks like your code could use WebClient.DownloadData(url) to get the dll as an array of bytes, then call Assembly.Load(byte []) to load it. I've never tried this though, but it seems possible. I've got to believe there are some security settings that would prevent it though.

"Coder" <Someone@xxxxxxxxxxxxxxx> wrote in message news:uWt9h4aOJHA.1488@xxxxxxxxxxxxxxxxxxxxxxx
After deploying main application using Clickonce,

Is this possible for this dot net application to download a class library from an ftp or http location (as only one dll) and to use it just in memory (I dont like to save it somewhere, just load into memory and use it) ? Next time someome want s to use that class library, will download and use again and again and again.

My purpose is I have a main application and according to the logged user, I ll perform above issue and show a form to user (lots of other forms (class libs) will be available)

Possible ?

Thanks a Lot






.



Relevant Pages

  • Re: if I encrypt key data why do I want or need SSL?
    ... I could encrypt the ... external sources beyond the control of my security. ... name DLL responsible for all security aspects, ... Web Services use the same approach, none of my web service will do anything ...
    (microsoft.public.dotnet.security)
  • Re: Internal access modifier is not working the way I thought it would.
    ... that DLL as a reference and use that class / method / field / etc. ... The programmers I'm referring to, I have never met, ... there is no way to include the web service in the DLL that I want to ... within the AccessUtils web service. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Is a Thread appropriate?
    ... >> Now, if you are not doing dynamic loading of the DLL, you shouldn't need GetProcAddress. ... >> Note that it is foolish to create a char array, particularly a char array of a fixed size. ... >> If you need to declare a separate variable, ... without necessity. ...
    (microsoft.public.vc.mfc)
  • Re: Internal access modifier is not working the way I thought it would.
    ... I'm perfectly willing to let the DLL access the web service. ... within the AccessUtils web service. ... instantiate methods and forms from ProvideWorkFlow, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: VB .Net and Intel Visual Fortran 9
    ... having is that the VB program cannot load the DLL. ... subroutine) to accept an array from VB - in my case a 2D array. ... Declare Sub mmult Lib "test.dll" (ByRef i As Double, ByRef j As Double, ...
    (comp.lang.fortran)