Hey
Im developing a site using VS Community 2013 and using IIS express when previewing the site.
and now i need to create a web.config file in a subfolder that changes/adds a custom extension that will execute the c# code thats inside.
so in short i want to rename a .aspx to .test and IIS should still parse/execute it as a C# aspx page.
i managed to do tis for ASP pages using the following web.config:
<handlers accessPolicy="Read, Script, Write"><add name="test" path="*.test" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%IIS_BIN%\asp.dll" resourceType="File" /></handlers>
but when i try to do this using aspx, using the following web.config:
<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><handlers accessPolicy="Read, Script"><add name="CustomHandlertest" path="*.test" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" preCondition="integratedMode,runtimeVersionv4.0" /></handlers></system.webServer></configuration>
i get the following error:
There is no build provider registered for the extension '.test'. You can register one in the <compilation><buildProviders>
and of course i ad the buildprovider to the config file and receives the following error:
Parser Error Message: The element 'buildProviders' cannot be defined below the application level.
so is it even possible to create a web.config and place it in a subfolder, that will configure IIS to do what i want?
and to make it a little bit more difficult for you, it must be in a web.config in a subfolder, so no fancy settings in the GUI or a commandline fix :)
Thanks
// Johan