robertb_NZ
Well-known member
I am using VS2010 with .NET Framework 4.0.
Project GDBChart. I had written this as part of the logic to pass parameters from ClickOnce to a Windows program through the query string . It all worked perfectly: -
Imports System.Deployment.Application
Imports System.Collections.Specialized
Imports System.Web
...
Dim NameValueTable As New NameValueCollection()
...
NameValueTable = HttpUtility.ParseQueryString(QueryString)
Project Jazz. I wanted to add the same feature to this project, so I copy/pasted the code. The VS2010 setup is identical. Yet now I get an error on the reference to HttpUtility: 'HttpUtility' is not declared. It may be inaccessible due to its protection level.
There are no messages on Imports System.Web
In project GDBChart, if I write System.web. then the next-level menu shows about 100 items, including HttpUtility. In project Jazz there are only 4 items.
I tried to find the answer on the web. Responses talked of ensuring that I was using the correct framework version. Both use 4.0. I can set the framework version to earlier frameworks when I start a new framework, but there is no option to change this on the application tab of projects' property pages. I was not offered the option of a Client Framework which some pages suggested was the problem.
What's my next move?
Thanks for any help, Robert.
Project GDBChart. I had written this as part of the logic to pass parameters from ClickOnce to a Windows program through the query string . It all worked perfectly: -
Imports System.Deployment.Application
Imports System.Collections.Specialized
Imports System.Web
...
Dim NameValueTable As New NameValueCollection()
...
NameValueTable = HttpUtility.ParseQueryString(QueryString)
Project Jazz. I wanted to add the same feature to this project, so I copy/pasted the code. The VS2010 setup is identical. Yet now I get an error on the reference to HttpUtility: 'HttpUtility' is not declared. It may be inaccessible due to its protection level.
There are no messages on Imports System.Web
In project GDBChart, if I write System.web. then the next-level menu shows about 100 items, including HttpUtility. In project Jazz there are only 4 items.
I tried to find the answer on the web. Responses talked of ensuring that I was using the correct framework version. Both use 4.0. I can set the framework version to earlier frameworks when I start a new framework, but there is no option to change this on the application tab of projects' property pages. I was not offered the option of a Client Framework which some pages suggested was the problem.
What's my next move?
Thanks for any help, Robert.