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對象始終爲空,因此引發對象引用錯誤。