November Happy Hour will be moved to Thursday December 5th.

UnifiedFile.VirtualPath

Vote:
 

hi,

I am creating an image gallery by pumping out the contents of a folder in the VPP.

To show the image in the html I am accessing the unfiedFile.VirtualPath property, and the path looks correct.

Such that the image src tag is

http://siteurl/unified.VirtualPath, however the image is not displaying correctly, is there a prefix to the virtualPath property that I need to use?

Regards,

Ian

 

#25984
Nov 14, 2008 15:12
Vote:
 

Have you rememberd to add your new Virtual directory like the Global in web.config

<location path="Global">

<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>

#26003
Nov 17, 2008 12:33
Vote:
 

Hi,

Thanks for your reponse. The directories created are within existing directories and are created via the file manager.

Therefore I presume I do not need to do this.

Regards,

Ian

#26028
Nov 18, 2008 12:33
* 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.