Nedjalko Milenkov

I am coding a small program for a windows mobile 5, which connects to a site and gets the cookies. First I made a stand alone client for Windows XP and everything was OK, but when I ported it to windows mobile I get a strange error "System.Net.HttpWebRequest does not contain a definition for CookieContainer". I code on C#. Here is the code

Code Snippet

HttpWebRequest request = (HttpWebRequest)WebRequest.Create("URL");

request.CookieContainer = new CookieContainer();

There must be such class acording to the MSDN. Where do I go wrong Sad



Re: .NET Compact Framework System.Net.HttpWebRequest does not contain a definition for CookieContainer

Ilya Tumanov

This class is not supported on NETCF. There's a bug in MSDN documentation generator which sometimes shows unsupported classes as supported. You can check class members in these cases - if none are marked as supported on device then class is not supported.