Greetings. I am trying to configure a web app to detect if any web crawlers are accessing my site. I've created a BrowserCaps.config file that has only 1 browser (for now). I then modified my Web.config file to link to the BrowserCaps.config file.
Web.config file:
BrowserCaps.config file:
When I run the application I get this error message:
Parser Error Message: Server found the unknown tag <browsers> in capabilities configuration.
The line <browsers> in the BrowserCaps.config is highlighted in red.
Can someone please look at this and let me know what I am doing wrong?
Thanks,
(txmed)
Web.config file:
Code:
<?xml version="1.0"?>
<configuration>
<system.web>
<browserCaps configSource="BrowserCaps.config" />
<compilation debug="true"/>
<authentication mode="Windows"/>
</system.web>
</configuration>
BrowserCaps.config file:
Code:
<?xml version="1.0"?>
<browserCaps>
<browsers>
<browser id="GenericDownlevel" parentID="Default">
<identification>
<userAgent match="^Generic Downlevel$" />
</identification>
<capture>
</capture>
<capabilities>
<capability name="cookies" value="false" />
<capability name="ecmascriptversion" value="1.0" />
<capability name="tables" value="true" />
<capability name="type" value="Downlevel" />
</capabilities>
<controlAdapters>
<adapter controlType="System.Web.UI.WebControls.Menu"
adapterType="System.Web.UI.WebControls.Adapters.MenuAdapter" />
</controlAdapters>
</browser>
</browsers>
</browserCaps>
When I run the application I get this error message:
Parser Error Message: Server found the unknown tag <browsers> in capabilities configuration.
The line <browsers> in the BrowserCaps.config is highlighted in red.
Can someone please look at this and let me know what I am doing wrong?
Thanks,
(txmed)