MSDN VirtualPathProvider

So i copied all the code, make the files, make a web application in IIS. Doesn't work, so i have to make a few fixes to the code (ending brackets, change GetData on VirtualFile to use this.VirtualPath, rather than this.Name). Still doesn't work. Finally have to add httphandlers.

<?xml version="1.0"?>
    <compilation debug="true"/>
    <customErrors mode="Off"/>
    <trace enabled="true" requestLimit="100" pageOutput="true" traceMode="SortByTime" localOnly="false"/>
      <add verb="*" path="*.vrf" type="System.Web.StaticFileHandler" />

And still cannot access by "~/", must access by "~/default.aspx".

No comments: