This project has moved. For the latest updates, please go here.

Rating: No reviews yet
Downloads: 8908
Change Set: 60339
Released: Jul 7, 2011
Updated: Aug 26, 2011 by ThomasHolmes
Dev status: Stable Help Icon

Recommended Download

Source Code Foundation Source Code
source code, 2494K, uploaded Aug 26, 2011 - 5007 downloads

Other Available Downloads

Application Detection Sample Installer
application, 1620K, uploaded Jul 7, 2011 - 1123 downloads
Application Binary Enhance
application, 1209K, uploaded Aug 25, 2011 - 1439 downloads
Documentation Release Note
documentation, 519K, uploaded Jul 7, 2011 - 477 downloads
Source Code MVC3 Mobile Detection
source code, 1597K, uploaded Jul 29, 2011 - 862 downloads

Release Notes

Changes to Version

  • The device detection provider can now be accessed outside of IIS. The following code would be used to access a capability. Read more about this functionality here.
static void Main(string[] args)
    var detector = new Provider(DATA_FILES, null, false);
    DeviceInfo device = detector.GetDeviceInfo("iPad");
            "The brand name is '{0}'. Press a key to finish.",

The DATA_FILES constant would contain a string array of Wurfl format data files. The GetDeviceInfo method of the provider is used to return a matching device based on the useragent string. Finally the GetCapability method of the device is used to return individual capabilities.
  • Handler configuration is now managed via the file Handler.xml in the Properties folder.
  • fiftyOne/wurfl does not need to be present in the configuration file. The detector module will not register for any events and detection will not take place.
  • Static classes for data storage have been removed to enable multiple device data providers to be running in parallel.
  • The property name origUrl can be used as a location property attribute to retrieve the original Url of the http request received by the server. This overcomes problems with some CMS platforms that alter the value returned by the HttpRequest.Url property. The following configuration could be used to apply the matchExpression to the original Url of the request, and not the altered one provided by the CMS platform.
<location name="NoRedirect" url="">
	<add property="origUrl" matchExpression="[&amp;|\?]noredirect" />
  • Internal classes have been rearranged to support device data sources other than WURFL.

Changes on 26/08/2011

MobileDevice.asmx in the Detector sample has had a new method added - GetCapabilities. It can take a string array of capabilities and returns a list of properties in a string array in the same order they were given. Any capabilities not matched are set as null.

Reviews for this release

No reviews yet for this release.