How can I find the activation uri?

C

CSharper

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.ActivationUri != null)
label1.Text = "uri not null";
string str =
ApplicationDeployment.CurrentDeployment.ActivationUri.Query;
label1.Text = str;
}

Thanks,
 
C

CSharper

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.ActivationUri != null)
                        label1.Text = "uri not null";
                    string str =
ApplicationDeployment.CurrentDeployment.ActivationUri.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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top