Browse by Tags

Tagged Content List
  • Blog Post: Exploring The NetCF WebCrawler Sample III - Visual Studio 2005 Beta 2

    In the first part of this series, I discussed how the WebCrawler uses an HTTP HEAD request to determine if the URL can be crawled (points to an HTML page). The Visual Studio.NET 2003 version of the WebCrawler used a very simple check of the Content-Type header (equal to "text/html"). When I was reviewing...
  • Blog Post: Exploring the NetCF Web Crawler sample (Visual Studio .NET 2003) - Part II: Updating the UI

    A couple of weeks ago, I discussed link tracking in the NetCF Web Crawler sample from Visual Studio .NET 2003. Today, I would like to use the Web Crawler sample to discuss updating an application's user interface from a worker thread. When updating user interface elements, it is very important to perform...
  • Blog Post: Exploring the NetCF WebCrawler sample (Visual Studio .NET 2003)

    Every so often, I talk to people about the NetCF WebCrawler sample that shipped as part of Visual Studio .NET 2003 (\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\Samples\VC#\Pocket PC\WebCrawler). One of the things I get asked about is how the sample keeps...
  • Blog Post: Accessing a WebService's WebRequest and WebResponse in NetCF

    One common question regarding the .NET Compact Framework involves the availability of the WebRequest and WebResponse objects used by the SOAP client when making a web service call. If you are using version 1 of the .NET Compact Framework (1.0.2268.0), these objects are not available to your code. Since...
  • Blog Post: Determining the IP address of your device

    Device's do not typically register a name with the network. This means you cannot just use a name to connect to or ping the device. Back in July 2004, I posted a snippet that shows all of the IP addresses (IPv4 and IPv6) that equate to "localhost". Today, I am posting a slightly modified version that...
  • Blog Post: Determining the type of data pointed to by a Url - VB.NET version

    Earlier today, I posted an example of some Visual C# code that checks the type of the data pointed to by a Url . I was thinking that it might be nice to post a Visual Basic .NET equivalent... This version is a direct port of the Visual C# code and comes with the same caveat: " Please note : To keep this...
  • Blog Post: Determining the type of data pointed to by a Url

    Have you ever wanted to know what type of file was being pointed to by a given url before clicking the link? Maybe you are writing an application that needs to filter out certain types of links. A web crawler is a good example of an application which needs to do such link filtering (skip links to graphics...
  • Blog Post: Simpifying socket exception handling

    Remembering numeric error codes is hard. Unless the error handling code is well documented, code reviews take longer and maintenance is more difficult as you may need to consult reference manuals, native code header files or online help frequently. Socket errors are particularly hard for me to remember...
  • Blog Post: Simple object remoting using the XmlSerializer

    Today, I'm going to talk about how you can use the XmlSerializer, TcpClient and TcpListener classes to create a simple remoting layer to send your custom objects from one device to another. This post requires the .NET Compact Framework version 2 (beta 1) or the .NET Framework for desktop PCs. Since NetCF...
  • Blog Post: WebExceptions, ServicePoints and Connection Limits

    Today's topic involves WebExceptions and their proper handling. Along the way, we'll talk a little about HttpWebResponse, ServicePoint and connection limits. Whenever you write an application that communicates on the web, you inevitably run into connection issues (site moved, incorrect access credentials...
  • Blog Post: NetCF application hanging when remote server disconnects from the network?

    I've been seeing a few reports of NetCF web service applications hanging when the target server disconnects from the network. If you are experiencing this, I may have a solution for you. What we have found is that if the server disconnects before sending the initial HTTP response to the client (maybe...
  • Blog Post: NTLM authentication support in NetCF

    Many folks have asked the .NET Compact Framework team when our HTTP client was going to support NTLM authentication. For version 1 (and all service packs) our answer was: 'Sorry, we do not support NTLM. You may wish to locate a third party solution or write the auth code yourself...'. Not too cool. ...
  • Blog Post: IPv6 and the NetCF v2 beta

    One of the new features of the .NET Compact Framework v2 beta is support for IPv6. Unlike the full .NET Framework, you do not need to explicitly enable IPv6 in NetCF -- if your device has support for IPv6 installed, it will be available to NetCF applications. On devices supporting both IPv6 and IPv4...
  • Blog Post: Why do I get SocketExceptions on NetCF when setting some socket options?

    I am frequently asked why NetCF applications encounter a SocketException when attempting to use some socket options, when applications written to the full .NET Framework do not. The companion question is invariably "Is this a bug in NetCF?". If the result is WSAENOPROTOOPT ( 10042 ), what we are seeing...
  • Blog Post: Increasing web service client performance

    As the demand for web enabled smart devices grows, more and more mobile applications will be using web services. Many of the folks who are already using web services with the .NET Compact Framework (NetCF) have come to me with performance issues. More often than not, the problem boils down to what happens...
Page 1 of 1 (15 items)