Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

File Management - custom starting point

Vote:
 

I added a custom starting point in EPiServer.config (<add showInFileManager="true" virtualName="Artsite Files" virtualPath="~/ArtSite/" bypassAccessCheck="false" indexingServiceCatalog="Web" physicalPath="C:\EPiServer\VPP\Aspen_qa\ArtSite" name="SiteArtsiteFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" />).  Added a file (jpg) but the thumbnail has a red cross against it.  The file appears to be correct in the VPP folder through explorer but when trying to access it through a web browser (e.g. http://www.samplewebserver.com/ArtSite/myimage.jpg) I get a 404 file not found error. Adding the same file through Globals folder works correctly.  Any suggestions?

#56197
Jan 11, 2012 13:14
Vote:
 

Hello,

Have you added a static filehandler for that location in web.config?

<location path="ArtSite">
	<system.web>
		<httpHandlers>
			<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="true" />
			<add path="*" verb="*" type="EPiServer.Web.StaticFileHandler, EPiServer" validate="true" />
		</httpHandlers>
	</system.web>
	<staticFile expirationTime="365:0:0" />
</location>

    

#56201
Edited, Jan 11, 2012 15:07
Vote:
 

No.  Now I have, it is working as expected.

Many thanks.

#56203
Jan 11, 2012 16:54
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.