是否有一些正式的方法来更新 ASP.Net 的浏览器检测文件?
我有一个 ASP.Net 站点,我们在该站点上使用控制适配器。我们将适配器映射到“默认”的“refID”。
这些适配器在除 Chrome 和 Safari 之外的所有浏览器上都能正常工作。对于这些浏览器,它们不会执行。我已经放弃试图找出原因——我在这里有一个问题,没有人能够回答,而且我已经研究了好几天了。简直是莫名其妙。
我在本地环境中测试了相同的代码,并且运行得很好。此外,没有其他人可以在其他服务器上复制我的问题。它似乎在某种程度上仅限于我客户站点的机器。它们会不会有些过时了?
如果是这种情况,是否有某种方法可以“更新”.browser 文件?我很想将 .browser 文件从我的机器的 Framework 目录复制到他们的机器上,但我很好奇是否有比这更正式的东西?除了这些文件之外,ASP.Net 是否还有其他数据源用于浏览器检测?
I have an ASP.Net site on which we're using control adapters. We have the adapters mapped to a "refID" of "Default."
These adapters are working fine on all browsers except Chrome and Safari. For those browsers, they do not execute. I've given up trying to figure out why -- I have a question here on SO that no one has been able to answer, and I've been researching it for days now. It's just inexplicable.
I have tested the same code in my local environment, and it works just fine. Additionally, no one else can replicate my problem on other servers. It seems to be somehow confined to the machines at my client's site. Could they be somehow out-of-date?
If this is the case, is there some way to "update" the .browser files? I'm half-tempted to just copy the .browser files out of the Framework directory from my machine over to theirs, but I'm curious is there's something more formal than this? Is there some other source of data that ASP.Net uses for browser detection other than these files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
核心问题(我的控制适配器不工作)结果与浏览器检测配置无关。
我从未发现是否有正式的方法来更新这些文件,但我确实 - 在某一时刻 - 只是复制整个“浏览器”目录,虽然它没有解决我的问题,但似乎并没有解决也伤害任何东西。
如果修改 Framework 目录中的任何 .browsers 文件,则需要运行此文件来重新编译定义:
The core problem (my control adapters not working) turned out to have nothing to do with the browser detection configuration.
I never did find out if there was a formal way to update these files, but I did -- at one point -- just copy entire "Browsers" directory over, and while it didn't fix my problem, it didn't seem to hurt anything either.
If you modify any of the .browsers files in the Framework directory, you need to run this file to recompile the definitions: