开发者

Problem in using Ocean's Browsercaps in ASP.NET app to detect spiders

开发者 https://www.devze.com 2023-01-04 01:42 出处:网络
while studying a way of properly detecting crawlers on our ASP.NET application, I came across Owen Brady\'s broswercaps project.

while studying a way of properly detecting crawlers on our ASP.NET application, I came across Owen Brady's broswercaps project.

In order to use it, I did this:

  1. Created App_Browsers folder
  2. Created Spiders folder in the above
  3. Downloaded [OceanSpiders.browser.xml][2] and renamed it to OceanSpiders.browser

so, the final final looking like App_Browsers/Spiders/OceanSpiders.browser

I do have NET Framework 4 installed on my dev machine, but targeting NET Framework 3.5

The problem is a parser error: 'The browser or gat开发者_如何学Goeway element with ID 'docomon505i' cannot be found.'

I did google/search on SO, but could not find a solution, hence my reason for posting.

Thank you for any suggestions.


It sounds like the web server is running against 4.0 run time and not the 3.5 run time, as it is reading the new Browser files which do not have docomon505i definition in them.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号