ApplicationDeployment and HttoContext

  • Thread starter Thread starter Atul Rane
  • Start date Start date
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.
 
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
 
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.
 
Back
Top