VPP folder issue
<p>Fixing 404 errors occuring in EPiServer migration project with files in VPP folders.</p>
Sometimes it feels like alzheimer has struck. One issue that made me feel like this was an annoying 404-error that occurred after having migrated an EPiServer4 site. None of the images from the "upload" folder displayed. That stupid 404-thingie! Aarrggh...! I know I have seen it before...
So this time I was the dummy. The solution was of course a missing section in the web.config-file:
<location path="Upload">
<staticFile expirationTime="-1.0:0:0"/>
<system.webServer>
<handlers>
<add name="webresources" path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader"/>
<add name="wildcard" path="*" verb="*" type="EPiServer.Web.StaticFileHandler, EPiServer"/>
</handlers>
</system.webServer>
</location>
Why this section was not created correctly in the web.config file is a mystery though.
As far as I can recall I have migrated sites earlier without running into this issue, but that alzheimer feeling....
So I think I'll leave this as a reminder to myself :-)