472,992 Members | 3,586 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,992 software developers and data experts.

ClickOnce, ApplicationDeployment & AppDomains


I'm writing a client app, the app creates a new AppDomain on startup so that
when we switch logins we just create new AppDomains.

I'm trying to publish it as a ClickOnce application. It's all deployed and
running (kind of) - but I need to test the
ApplicationDeployment.IsNetworkDeployed property.

If I attempt to read this property in the startup code - it's fine
If I attempt to read this property in the new app domain - it fails. Look
like the ApplicationDeployment information has not been copied over into the
new app domain.

So my question is...How do I make the ApplicationDeployment information
available in the new App Domain.

I create the new App Domain like so:

AppDomainSetup domainSetup = new AppDomainSetup();
domainSetup.LoaderOptimization = LoaderOptimization.MultiDomain;
domainSetup.ApplicationBase = AppDomain.CurrentDomain.BaseDirectory;
domainSetup.ApplicationTrust = AppDomain.CurrentDomain.ApplicationTrust;

Evidence baseEvidence = AppDomain.CurrentDomain.Evidence;
Evidence evidence = new Evidence(baseEvidence);

AppDomain ad = AppDomain.CreateDomain("myclient", evidence, domainSetup);

Aug 1 '08 #1
0 1688

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

Similar topics

by: Danny Tuppeny | last post by:
I've been playing around with ClickOnce today, and it's all good stuff. Except, that if I change my application to NOT be full trust (which seems to make very little difference to the user prompt,...
by: cathywigzell | last post by:
I have a small ClickOnce application which communicates with the server it loaded from. When I created the ClickOnce app, I added a Web Reference to a .asmx file on the server. The app then uses...
by: Anders Elmén | last post by:
Hi! I have an application as takes 1 argument. When i start the application from the command line it works, but after clickonce deployment the deployed my.application does not takes arguments....
by: Etienne | last post by:
Hi, I am settings up my application to work with ClickOnce deployment. However, after instlling installing an update, the database doesn't get copied. I tried everything I could think of. It is...
by: M O J O | last post by:
Hi, I've have searched google, but can't find a solution to my problem. Om my develloper machine, I use one app.config, but when I deploy, I need to deploy another app.config. The reason...
by: =?Utf-8?B?QWxiZXJ0byBDYXJkb3Nv?= | last post by:
Hello! I have a simple code here: if (ApplicationDeployment.IsNetworkDeployed) { ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment; MessageBox.Show("COOL"); }
by: Peter Wyss | last post by:
Hello! I've a few questions about ClickOnce in VisualStudio 2005. The installation of my application works fine, I published the files on a webserver and installed the app on a winxp client,...
by: Peter Carlson | last post by:
Not sure if this is the right NG, if not please point me in the right direction. We are developing a clickonce installer for our program Here are my basic questions: 1. How can I really...
by: =?Utf-8?B?QXR1bCBSYW5l?= | last post by:
I am using ClickOnce. I want to retrive the url sended to windows Application i am using the code for getting the querystring information: public NameValueCollection GetQueryStringParameters() {...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.