我正在使用 51degrees 高级版。我已经支付了 2 个许可证,以便在多个主机(网站)上的两个生产服务器上使用它。
服务器是 IIS6 Web 服务器,我有根,其中有 App_Data 文件夹(网络对此具有完全权限)。我在 bin 文件夹中有 FiftyOne.Foundation.dll,从https://51degrees.codeplex.com/releases/view/133106下载
我网站的根目录上有 51Degrees.config(上面的一部分)
<configSections>
<sectionGroup name="fiftyOne">
<section name="log" type="FiftyOne.Foundation.Mobile.Configuration.LogSection, FiftyOne.Foundation" requirePermission="false" allowDefinition="Everywhere" restartOnExternalChanges="false" allowExeDefinition="MachineToApplication"/>
<section name="redirect" type="FiftyOne.Foundation.Mobile.Configuration.RedirectSection, FiftyOne.Foundation" requirePermission="false" allowDefinition="Everywhere" restartOnExternalChanges="false" allowExeDefinition="MachineToApplication"/>
<section name="detection" type="FiftyOne.Foundation.Mobile.Detection.Configuration.DetectionSection, FiftyOne.Foundation" requirePermission="false" allowDefinition="Everywhere" restartOnExternalChanges="false" allowExeDefinition="MachineToApplication"/>
<section name="imageOptimisation" type="FiftyOne.Foundation.Mobile.Configuration.ImageOptimisationSection, FiftyOne.Foundation" requirePermission="false" allowDefinition="Everywhere" restartOnExternalChanges="false" allowExeDefinition="MachineToApplication"/>
</sectionGroup>
</configSections>
<fiftyOne>
<log logFile="~/App_Data/Log.txt" logLevel="Debug"/>
<detection binaryFilePath="~/App_Data/51Degrees-Premium.dat"/>
<imageOptimisation enabled="false" maxWidth="1000" maxHeight="1000" widthParam="width" heightParam="height" factor="1" />
网络配置有这个:
<httpModules>
<add name="Detector" type="FiftyOne.Foundation.Mobile.Detection.DetectorModule, FiftyOne.Foundation"/>
</httpModules>
我在 bin 文件夹上有 lic 文件,上面有我的 lisence 文件。
问题是我无法得到任何错误日志(log.txt)文件甚至不存在。我无法将 51Degrees-Premium.dat 下载到 app_data 目录。
我在同一台服务器上有另一个站点(用户数量要多得多),它的设置与这个站点相同,并且该站点正在下载新的 dat 文件并制作日志文件。
我哪里错了?
工作的有这样的日志:
2014-10-29T10:39:26.1560896Z - 6392 - Debug - Initialising redirection module
2014-10-29T10:39:57.0154646Z - 3012 - Debug - Disposing Redirection Module
2014-10-29T10:39:57.2967146Z - 3012 - Debug - Disposing Detector Module
2014-10-29T10:39:59.8904646Z - 6392 - Debug - Disposing Redirection Module
2014-10-29T10:39:59.8904646Z - 6392 - Debug - Disposing Detector Module
2014-10-29T10:40:07.4373396Z - 3012 - Debug - Bandwidth monitoring 'False'
2014-10-29T10:40:07.4373396Z - 3012 - Debug - Image Optimisation 'False'
2014-10-29T10:40:07.4373396Z - 3012 - Debug - Profile Override 'False'
2014-10-29T10:40:07.4373396Z - 3012 - Debug - Initialising redirection module
2014-10-29T10:41:27.0184008Z - 3012 - Debug - Disposing Redirection Module
2014-10-29T10:41:27.2996526Z - 3012 - Debug - Disposing Detector Module
2014-10-29T10:43:49.0965464Z - 3012 - Debug - Could not write device information to URL 'http://devices.51degrees.mobi/new.ashx'. Exception 'The request was aborted: The operation has timed out.'
2014-10-29T10:45:37.5685412Z - 3012 - Debug - Bandwidth monitoring 'False'
2014-10-29T10:45:37.5685412Z - 3012 - Debug - Image Optimisation 'False'
2014-10-29T10:45:37.5685412Z - 3012 - Debug - Profile Override 'False'
2014-10-29T10:45:37.5685412Z - 3012 - Debug - Initialising redirection module
2014-10-29T10:45:37.6154162Z - 3012 - Debug - Bandwidth monitoring 'False'
2014-10-29T10:45:37.6154162Z - 3012 - Debug - Image Optimisation 'False'
2014-10-29T10:45:37.6154162Z - 3012 - Debug - Profile Override 'False'
2014-10-29T10:45:37.6154162Z - 3012 - Debug - Initialising redirection module
但即使是工作的人也有点奇怪。如果我这样做: Request.Browser("IsMobile") 它只返回空值,而不是 true 或 false
出了什么问题以及如何解决这个问题?