2006-03-03

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"?>
<configuration>
  <system.web>
    <compilation debug="true"/>
    <customErrors mode="Off"/>
    <trace enabled="true" requestLimit="100" pageOutput="true" traceMode="SortByTime" localOnly="false"/>
    <httpHandlers>
      <add verb="*" path="*.vrf" type="System.Web.StaticFileHandler" />
    </httpHandlers>  
  </system.web>
</configuration>

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

No comments: