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

Problem with displaying of images on EPiServer 5

Vote:
 
Hi, I installed the EPiServer5 because our customer wanted development of its intranet on the new version of EPiServer, but found problems with displaying of images. Probably I set something wrong. 1. In the FileManagement I can upload image without any problem but if I want to insert the image from "editor" into some "XHTML property" of page, the field "Image file" in the "information" area within popup is always empty after choosing the image on "..." button. 2. The next problem is property "Image url". If I choose image and insert it into "Image url" property I got for example the "/Global/ari.jpg" but that image is broken on the site because the system can not find the file on "http://intranet.episerver5.se/Global/ari.jpg". I used the next settings in web config for configuration of virtual paths (they are default settings after installation of EPiServer5): ..... .... Am I working something wrong? Best Regards Vlada
#15916
Dec 07, 2007 12:11
Vote:
 
i had the same problem - you need to: make sure you've added a wildcard application mapping in the IIS. Properties on the site, choose the tab Home Directory then click on the button Configuration. Look for a wildcard: * that is pathed to c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll your aspnet_isapi.dll in .net 2.0 frame work folder. Verify also that "check that file exists" is not checked.
#16633
Dec 07, 2007 13:42
Vote:
 
Here's more info: http://blogs.bdnet.co.uk/brad/archive/2007/12/07/125.aspx
#16634
Dec 07, 2007 15:34
Vote:
 
It works. :):) Thanks Paul.
#16635
Dec 07, 2007 15:36
Vote:
 

I had simular problems.

But in my case there was made an configuration error. I will share this with you all:

It is crusial that the path attribute of the location node refers to the same name as specified in the virtualPath attribute of the provider node. (And not the name of the physicalPath, whitch was the case for me).

This is correct:

Provider node:
<add showInFileManager="true" virtualName="Global Files" virtualPath="~/Global/" bypassAccessCheck="false" maxVersions="3" indexingServiceCatalog="Web" physicalPath="C:\Inetpub\EPiServerFiles\Globals" name="SiteGlobalFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer"/>

location node:
<location path="Global">
<system.web>
<httpRuntime maxRequestLength="32768"/>
<!-- Setup the StaticFileHandler for the wildcard mapping to work in IIS6 -->
<httpHandlers>
<add path="*" verb="GET,HEAD" type="EPiServer.Web.StaticFileHandler, EPiServer" validate="true"/>
</httpHandlers>
</system.web>
<staticFile expirationTime="-1.0:0:0"/>
</location>

If you set the path to Globals, whitch is the name of the physical folder, the files will not show up. They will get broken. (Files with fileextention specified in the staticFileHandler section will function properly, though. Why I'm not sure.)  

#20753
Jun 11, 2008 9:43
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.