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 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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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:...
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
| |
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,...
|
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...
|
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |