0
我使用我的网站上WURFLManager(ASP.net C#4.0)来检测移动设备的能力。我遵循了演练here。WURFLManager总是返回null
在我Globl.asax的Application_Start()方法,我有这样的:
WURFLManagerBuilder.Build(new ApplicationConfigurer());
然后在我的ASPX页面我尝试使用WURFLManager像这样的:
if (Request != null && Request.UserAgent != null)
{
IDevice device = WURFLManager.Instance.GetDeviceForRequest(Request.UserAgent);
}
的WURFLManager对象始终为空,因此引发对象引用错误。