Re: Loading Class Library From FTP Location To Memory
- From: "Family Tree Mike" <FamilyTreeMike@xxxxxxxxxxxxxxxx>
- Date: Thu, 30 Oct 2008 17:16:21 -0400
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@xxxxxxxxxxxxxxxxxxxxxxxWell, 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@xxxxxxxxxxxxxxxxxxxxxxxAfter 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
.
- Follow-Ups:
- References:
- Loading Class Library From FTP Location To Memory
- From: Coder
- Re: Loading Class Library From FTP Location To Memory
- From: Family Tree Mike
- Re: Loading Class Library From FTP Location To Memory
- From: Coder
- Loading Class Library From FTP Location To Memory
- Prev by Date: Re: How to pass more than two parameters in the event handler
- Next by Date: Re: How to pass more than two parameters in the event handler
- Previous by thread: Re: Loading Class Library From FTP Location To Memory
- Next by thread: Re: Loading Class Library From FTP Location To Memory
- Index(es):
Relevant Pages
|