ApplicationDeployment.CurrentDeployment.ActivationUri

I am using this API (ApplicationDeployment.CurrentDeployment.ActivationUri) to get the query string passed into my application. It works fine except it does not get refreshed while the application is running. For example: the first URL to start the app is:http://localhost/myapp?querystring=mytest. The URI passed to the app will be ?querystring=mytest. However if I tried to run the application again (while it's running) with different parameters (i.e.http://localhost/myapp?querystring=mytest1) it does not pass in the new value. I am thinking this is a bug in beta2. Has anyone run into this before?

THanks in advance for your help.

[895 byte] By [Vi_Tinh] at [2007-12-16]
# 1
The behavior that you see is by design. Running applications won't get new parameters. You have to close the running application and activate the URL to start the application again to get different parameters.
PattyLau at 2007-9-9 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 2
Thanks Patty. I figured it out. The bug was in my own code. The parameters were changed but I had some code in my app to do some state management stuff which didn't get refreshed. The API does give new parameters even if the application is still running.
Vi_Tinh at 2007-9-9 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...