Categories
NETCF

HttpWebRequest Exceptions under .NETCF

While testing code using HttpWebRequest it can be observed in the debug output that a number of exceptions are thrown within the GetResponse call of a HttpWebRequest. If you run exactly the same code on the desktop you don’t see this behaviour. For reference the following is a simple example which displays the issue:- System.Net.WebRequest […]

Categories
Uncategorized

doPDF – Great PDF Printer

I needed to convert some files to PDF format today. While this is possible in Office 2007 products with a free add-in it isn’t an option in other applications. I have an XPS printer and a OneNote writer but no way to produce a PDF. There are a number of solutions available and in the […]

Categories
NETCF Windows Mobile

Determine Platform – .NETCF 3.5 and earlier

One of the new features in v3.5 of the Compact Framework is the ability to easily detect the platform you are running on from Smartphone (Standard Edition), PocketPC (Classic or Professional Editions) or WinCEGeneric (Everything else). The code is very straight-forward:- using Microsoft.WindowsCE.Forms;if(SystemSettings.Platform == WinCEPlatform.Smartphone){   //do something smartphone specific…}  In the latest (v3.0) version of Mobile […]

Categories
How To

WirelessManager sample

Mobile In The Hand 3.0 has just been released. This is the latest version of our .NET Compact Framework library for working with all aspects of Windows Mobile. This latest version is optimised for .NET Compact Framework 2.0 and 3.5 and introduces a number of new classes. One of these is the WirelessManager which allows […]

Categories
Blogs

New RSS Feed Url

I’ve changed the site to publish the RSS feed through feedburner. Please update your news reader with the following URL to avoid any loss of service:- http://feeds.feedburner.com/peterfoot/ Thanks!

Categories
Events

TechEd Session Content

I’ve begun uploading the content from the Networking session at Tech Ed. The rest of the example code will follow shortly. All the resources from the session can be found here:- https://inthehand.com/wp-content/uploads/folders/resources/entry4195.aspx

Categories
Events

Networking Session at Tech Ed Developers 2007

The schedule for Tech Ed is now set. Now, I can’t compete with Daniel on quantity, but hopefully can equal him on quality. However this requires help from you – I am hosting an interactive session and so you can help steer the direction of the session (within the scope of networking and Windows Mobile of […]

Categories
How To

How To: Use the WebRequestMethods class

Networking In The Hand introduces a repository for all the various method types for FTP and HTTP operations. While the common ones are easy to remember (“GET”,”POST” etc) many others are not, and so this class (like its desktop equivalent) provides a central place to refer to them, without dotting your code with hard-coded strings. […]

Categories
How To

How To: Use the FtpWebRequest

Networking In The Hand includes a full desktop-compatible implementation of the FtpWebRequest class. This plugs into the WebRequest class so that calling WebRequest.Create() with an FTP Uri will create an object of type FtpWebRequest. Because FTP support isn’t built into the Compact Framework you have to register the class with this prefix using the the […]

Categories
How To

How To: Use the WebClient

Networking In The Hand includes the WebClient class which is a helper class which makes it easier to do uploading and downloading of data using HTTP and FTP transports. For example rather than creating an HttpWebRequest, setting a number of properties, getting the response and reading the response stream and copying the data into a […]