Home All Groups Group Topic Archive Search About

Third time to ask this question,can anybody help me?

Author
23 Feb 2006 7:37 AM
Sunny
I want to run my ClickOne applications with command line
arguments.I published my application by visual studio.net 2005,and my
application url is
http://localhost/myapplication/myapplication.application?myname=sunny.
    I have read the article about no-touch deployment applications :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms05152003.asp
and followed his steps.My code is below:

            AppDomain domain = AppDomain.CurrentDomain;
            object obj = domain.GetData("APP_LAUNCH_URL");
            string appLaunchUrl = (obj != null ? obj.ToString() : "");

    But I can never get the value of appLaunchUrl.The method
domain.GetData("APP_LAUNCH_URL") always returns null.I could not find any
description about APP_LAUNCH_URL data variable in MSDN.
    When I copied myapplication.exe to IIS directory and run the application
from the url of
http://localhost/myapplication/myapplication.exe?myname=sunny , I could get
the value as the article said.
    So why? And how can I get the value if I use the publish function of
visual studio.net 2005 and run the application from the url:
http://localhost/myapplication/myapplication.application?myname=sunny

    Thanks!

AddThis Social Bookmark Button