Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
using System.Web;

HttpCookie is not visible as a class.

I can see [Cookie] class but its from (using System.Net);(and not from Web)

What I miss?

I use VS 2010. Maybe that's why I can not see the class?
Posted
Updated 19-Mar-15 23:31pm
v2

1 solution

Take a look at reference's project. System.Web should be there.
 
Share this answer
 
Comments
_Q12_ 20-Mar-15 4:33am    
It wasn't there.
But I found in the .Net list, only 2 related Classes: System.Web.ApplicationServices
and System.Web.Services. I have added them.
But NO [System.Web] !
Very strange...
Joan Magnet 20-Mar-15 4:35am    
Add it manually.
_Q12_ 20-Mar-15 4:49am    
this is the root of a related class:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.Web.ApplicationServices.dll

I looked into that folder and all that I find is this:
System.Web.xml

I looked into:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\
and I find the right file:System.Web.dll
I referenced from there, But I get a Yellow Triangle, and I can not see the class, also.
I copy the file into the first folder, but the same behavior I get.
hmmm...
_Q12_ 20-Mar-15 5:31am    
I use VS 2010. Maybe that's why I can not see the class?
Joan Magnet 20-Mar-15 5:33am    
Only right click over References in your project and add System.Web

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900