I am using the WURFLManager on my website (ASP.net C# 4.0) to detect the capability of mobile devices. I have followed the walkthrough here.
In my Globl.asax Application_Start() method I have this:
WURFLManagerBuilder.Build(new ApplicationConfigurer());
Then on one of my ASPX pages I attempt to use WURFLManager like this:
if (Request != null && Request.UserAgent != null)
{
IDevice device = WURFLManager.Instance.GetDeviceForRequest(Request.UserAgent);
}
The WURFLManager object is always null and so throws an Object Reference error.