use a main method like this:
public static void Main (string[] args)
public static int Main (string[] args)
then youl fin in args[0] the first argument in args[1] the second, etc.
System.Deployment.Application.ApplicationDeployment.CurrentDeployment.ActivationUri;
This API returns the application the whole URI. e.g. http://mysite.com/foo.application?name=bar
Second, your deployment manifest must set trustURLParameters to true. You can check to box, "Allow URL parameters to be passed to application.", which can be found on the Publish Options dialog box of the Publish tab of the Project Properties dialog box.