I'm making a web application with urlrewrites using global.asax, and in some point, i check if the page is a classic .asp page to serve special content or make redirections.
I have the application working on development under IIS Express, but when i move to production server, the application fails, giving me a "500 - interval server error".
I make the checks for the page in global.asax Application_BeginRequest event as normal in this cases, and i have the following in Web.config:
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5" >
<add extension=".asp" type="System.Web.Compilation.PageBuildProvider"/>
<add name="popopopo" path="*.asp" verb="*" type="System.Web.UI.PageHandlerFactory" preCondition="" />
I repeat, this is working like a charm in IIS Express in development.
The production server is a shared hosting, so i haven't got access to the IIS itself. I make a test calling Page.Request.ServerVariables("SERVER_SOFTWARE") to see the server version, and both (local and production) returns "Microsoft-IIS/8.0".
I previously tried to use httphandlesrs inside system.web, but this other configuration is the only one worked for me on local IIS.
Any idea of what can be need to be configurated in addition to this for production server?