ApplicationDeployment and HttoContext

A

Atul Rane

I am using ClickOnce to run my windows application from web page.
Know i want to get querystring value in my windows application in have done
code like this :
public NameValueCollection GetQueryStringParameters()
{
NameValueCollection nameValueTable = new NameValueCollection();
if (ApplicationDeployment.IsNetworkDeployed)
{
string queryString =
ApplicationDeployment.CurrentDeployment.ActivationUri.Query;
nameValueTable = HttpUtility.ParseQueryString(queryString);


}
return (nameValueTable);
}

I am getting error :
The name 'ApplicationDeployment' does not exist in the current context.
The name 'HttpUtility' does not exist in the current context.
 
M

Marc Gravell

HttpUtility requires a reference to System.Web.dll (although it might
be more convenient to just split it yourself, especially if you are
targeting the lightweight Client Profile)

ApplicationDeployment requires a reference to System.Deployment.dll

Marc
 
A

Atul Rane

Marc Gravell said:
HttpUtility requires a reference to System.Web.dll (although it might
be more convenient to just split it yourself, especially if you are
targeting the lightweight Client Profile)

ApplicationDeployment requires a reference to System.Deployment.dll

Marc
Thanks Marc, know its working.
 

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