473,225 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,225 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 4674
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Matt Dinovo | last post by:
I have a remoting server that is on the same local box as a COM+ managed object with Library Activation. When I try to activate the object from the remoted assembly, I get the following error: "The...
3
by: zz | last post by:
Hello everyone, We have an hybrid plain C++/COM/VB.NET commercial application in which we've included a mandatory activation mechanism. This activation system is programed in the VB.NET part and...
30
by: (Pete Cresswell) | last post by:
Just fired it up to see what it looked like. They wanted me to "Activate" the product before the 50th use. Geeze, I paid my money....now they want me to jump through their hoops? Brings back...
11
by: Paul Aspinall | last post by:
Hi Can anyone offer any hints / tips for creating registration keys / application activation, as software copy protection measures for a Winform app developed in C#? Thanks
2
by: paully_21 | last post by:
I'm an MSDN Subscriber and I installed VWD...When I activate the product it asks for an activation key...Where do I get one of those? And, more importantly, shouldn't it be part of my MSDN...
11
by: ML | last post by:
Does anyone have any info on sample code for handling activation/licensing for a vb.net app? Just looking for something fairly basic to implement the ability to have an application registered and...
1
by: Andy B | last post by:
I am making a web application that would randomly create an activation code and put it in a database. The web application would then send it in an email to the user with a link to go to and enter...
5
by: Andy B | last post by:
I am making a web application that would randomly create an activation code and put it in a database. The web application would then send it in an email to the user with a link to go to and enter...
1
by: sa819 | last post by:
I want to know just what exactly is MANIFEST BASED ACTIVTION. I visited the msdn site and they have some brief information about the topic . But what I could not understand is. 1) What...
1
isladogs
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...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...

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.