Monday, October 10, 2011

BlogEngine.Net js.axd 404 error

I came across this weird error today, where js.axd was not being found (404 Error) by
It turns out the problem was caused by how IIS7 handles the Handlers specified in the System.WebServer section in the web.config.

See the source link below for the full details, but the main point is to rewrite the Add tag as follows:

Change this:

<add verb="*" path="js.axd" type="BlogEngine.Core.Web.HttpHandlers.JavaScriptHandler, BlogEngine.Core" validate="false"/>

to this:

<add name="Javascript" path="js.axd" verb="*" type="BlogEngine.Core.Web.HttpHandlers.JavaScriptHandler, BlogEngine.Core" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode" />


No comments:

Post a Comment