Getting a 403 error "The requested content appears to be script and will not be served by the static file handler" when trying to access a ASMX .NET service location. It took me a while to figure this one out, but here is the solution...
- Open IIS Manager and go to your site or virtual directory.
- Click on the Handler Mappings
- This is where different extensions are mapped and the solution to the problem may be adding one that is missing.
- Look for WebServiceHandlerFactory-ISAPI-2.0-64 and WebServiceHandlerFactory-ISAPI-2.0
- If your getting this error you may not have a 32 bit mapping for ASMX files. So you simply need to add one.
- Click on Add Module Mapping...
- Now setup an ISAPI mapping for all ASMX files that points to the 32 bit version of the ASP .NET Framework ISAPI module.
Need a fresh perspective on a tough project?
Let’s talk about how RDG can help.