I have developed a (simple) test httphandler for my stylesheets. It works fine in an application in a virtual directory on IIS 5.1 on the development Xp SP2 machine, but when I deploy it to the server, it stops working and I just get a 404 for any stylesheet that I request. I have set the server virtual directory up, as far as I can see, absolutely identically. This is what I've covered so far:
-There are no error messages being given, I just get a 404.
-There are no event log messages being given.
-I have registered the .css extension has to be handled by the .NET framework under the properties/virtual directory/configuration using:
+with "script engine" checked,
+and "verify" not checked (as some css files do not exist on disk).
-The web.config contains the appropriate httpHandlers key:
<add verb="*" path="css*.css" type="StyleSheetHandler, App_Code"/> <!-- removing ', App_Code' appears to make no difference -->
-The web.config in the directory that the style sheets are "in" allows all users and anonymous users to access the style sheets:
<?xml version="1.0" encoding="utf-8"?>
<allow users="*,?" />
-A test deploy from VS2005 to another VDir on IIS 5.1 also works fine
-Copying that test deploy (straight drag and drop to the server) still does not work.