473,503 Members | 1,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Loading Class Library From FTP Location To Memory

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
Oct 29 '08 #1
4 1227
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" <So*****@Somewhere.Co.Ukwrote in message
news:uW**************@TK2MSFTNGP03.phx.gbl...
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
Oct 29 '08 #2

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" <Fa************@ThisOldHouse.comwrote in message
news:e$**************@TK2MSFTNGP05.phx.gbl...
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" <So*****@Somewhere.Co.Ukwrote in message
news:uW**************@TK2MSFTNGP03.phx.gbl...
>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


Oct 30 '08 #3
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" <So*****@Somewhere.Co.Ukwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>
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" <Fa************@ThisOldHouse.comwrote in message
news:e$**************@TK2MSFTNGP05.phx.gbl...
>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" <So*****@Somewhere.Co.Ukwrote in message
news:uW**************@TK2MSFTNGP03.phx.gbl...
>>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


Oct 30 '08 #4

I ll try this issue, and really curious about it :)
"Family Tree Mike" <yF*************@ThisOldHouse.comwrote in message
news:OK**************@TK2MSFTNGP06.phx.gbl...
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" <So*****@Somewhere.Co.Ukwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>>
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" <Fa************@ThisOldHouse.comwrote in message
news:e$**************@TK2MSFTNGP05.phx.gbl...
>>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" <So*****@Somewhere.Co.Ukwrote in message
news:uW**************@TK2MSFTNGP03.phx.gbl...
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



Oct 30 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2710
by: Kurt Bauer | last post by:
I have an ASP group calendar application which pulls calendar data from Exchange via webdav into an XML string. I then loop the XML nodes to populate a collection of appointments. Finally I use...
5
2605
by: tkk | last post by:
Hi All, Is it possible to load a function at a particular address/memory through the source program specification itself (or) is it upto linker/loader combination which decides this? For ex:...
9
4464
by: Ender | last post by:
I have an application that I would like third party developers to be able to create Plug-ins that will be dynamically loaded into our application to extend functionality. I have utilized the...
3
1616
by: markeboy | last post by:
I am wanting to control when a page is loaded using a separate class to manage when and how it should be loade My current implementation needs to set a property of the page programatically...
15
2392
by: Joe Fallon | last post by:
I would like to know how you can figure out how much memory a given instance of a class is using. For example, if I load a collection class with 10 items it might use 1KB, and if I load it with...
1
1626
by: Dale | last post by:
I have a user control on a Windows Form that, in its Load event handler, calls a method from a class library to initialize an array of objects that are then used to populate a ComboBox. When I...
0
2386
by: Jacob Donajkowski | last post by:
Once the user logs in I want to have the users switch from the Roster View to the Profile View and enter their profile infomation and save it. Then the next time they login and go to the Profile...
3
2293
by: Stephen Torri | last post by:
Below is a class that is suppose to represent a segment of memory or a contents of a binary image (e.g. ELF executable). I have started to read Modern C++ Design and thought the best way to ensure...
20
4002
by: tshad | last post by:
Using VS 2003, I am trying to take a class that I created to create new variable types to handle nulls and track changes to standard variable types. This is for use with database variables. This...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7072
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.