471,330 Members | 1,212 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

How can I find the activation uri?

I have a windows application that I have deployed it using click once.
Now I launch the application from web and my activationuri comes back
as null. I have checked the radio button which allows to accept
parameters through uri as well. Here is the code I have in my form

if (ApplicationDeployment.IsNetworkDeployed)
{
label1.Text = "Network deployed";
if (ApplicationDeployment.CurrentDeployment !=
null)
label1.Text = "Current deployment not null";
if
(ApplicationDeployment.CurrentDeployment.Activatio nUri != null)
label1.Text = "uri not null";
string str =
ApplicationDeployment.CurrentDeployment.Activation Uri.Query;
label1.Text = str;
}

Thanks,
Aug 1 '08 #1
1 4494
On Aug 1, 2:12*pm, CSharper <cshar...@gmx.comwrote:
I have a windows application that I have deployed it using click once.
Now I launch the application from web and my activationuri comes back
as null. I have checked the radio button which allows to accept
parameters through uri as well. *Here is the code I have in my form

* * * * * * * * if (ApplicationDeployment.IsNetworkDeployed)
* * * * * * * * {
* * * * * * * * * * label1.Text = "Network deployed";
* * * * * * * * * * if (ApplicationDeployment.CurrentDeployment !=
null)
* * * * * * * * * * * * label1.Text = "Current deployment not null";
* * * * * * * * * * if
(ApplicationDeployment.CurrentDeployment.Activatio nUri != null)
* * * * * * * * * * * * label1.Text = "uri not null";
* * * * * * * * * * string str =
ApplicationDeployment.CurrentDeployment.Activation Uri.Query;
* * * * * * * * * * label1.Text = str;
* * * * * * * * }

Thanks,
Ok, I found the problem, as per the documentation when the application
is launched locally using local host or opened locally the activation
uri will be zero. When I gave the full url including the computer
name, it worked perfectly. Yeah baby!
Aug 1 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by zz | last post: by
30 posts views Thread by (Pete Cresswell) | last post: by
2 posts views Thread by paully_21 | last post: by
reply views Thread by rosydwin | last post: by

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.