Image library not working after migration.

Posted by Community Admin on 04-Aug-2018 20:46

Image library not working after migration.

All Replies

Posted by Community Admin on 27-Mar-2013 00:00

I have recently begun the process of upgrading our Sitefinity site from 4.4 to 5.4.

After the first upgrade to 5.0, image library stopped working (I'm currently at 5.4).  I can see the images and all the metadata, but the actual images are missing.  Even trying to replace images or add new ones, no images show up, just a 404 if you try to view the image or use the embed link.

Anyone have any ideas?

Edit :

I've narrowed it down to a difference between the ASP.Net Development webserver and IIS, so I'm assuming it has to do with something with the <system.webServer> config section (not sure why the upgrade docs said to add ClaimsAuthentication, maybe that's it?) :

   <modules>
      <remove name="WebDAVModule"/>
      <remove name="UrlRoutingModule"/>
      <remove name="ScriptModule"/>
      <remove name="RadUploadModule"/>
      <remove name="Sitefinity"/>
      <remove name="SitefinityAnalyticsModule"/>
      <remove name="SitefinityAtompubModule"/>
      <remove name="RadCompression"/>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="managedHandler"/>
      <add name="Sitefinity" type="Telerik.Sitefinity.Web.SitefinityHttpModule, Telerik.Sitefinity" preCondition="managedHandler"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="managedHandler"/>
      <add name="SitefinityAnalyticsModule" type="Telerik.Sitefinity.Analytics.Server.DependencyResolution.Module.DependencyRegistrarHttpModule, Telerik.Sitefinity.Analytics.Server.DependencyResolution" preCondition="managedHandler"/>
      <add name="SitefinityAtompubModule" type="Telerik.Sitefinity.Security.SitefinityAtompubModule, Telerik.Sitefinity" preCondition="managedHandler"/>
<add name="ClaimsPrincipalHttpModule" type="Microsoft.IdentityModel.Web.ClaimsPrincipalHttpModule, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"  preCondition="managedHandler" />
<add name="SitefinityClaimsAuthenticationModule" type="Telerik.Sitefinity.Security.Claims.SitefinityClaimsAuthenticationModule, Telerik.Sitefinity" preCondition="managedHandler" />
<add name="SessionAuthenticationModule" type="Telerik.Sitefinity.Security.Claims.SitefinitySessionAuthenticationModule, Telerik.Sitefinity"  preCondition="managedHandler" />
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="managedHandler"/>
</modules>
    <handlers>
<remove name="WebDAV"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<remove name="UrlRoutingHandler"/>
<remove name="WildCard"/>
<remove name="WildCard32"/>
<remove name="Telerik.Web.UI.DialogHandler"/>
<remove name="Telerik.RadUploadProgressHandler"/>
<remove name="Telerik.Sitefinity.FilesDownloadHandler"/>
<remove name="Telerik.Sitefinity.LibrariesRadUploadHandler"/>
<remove name="Telerik.Sitefinity.AsyncImageUploadHandler"/>
<remove name="Telerik.Sitefinity.AsyncFileUploadHandler"/>
<remove name="Telerik.Web.UI.SpellCheckHandler"/>
<remove name="Telerik_Web_UI_WebResource_axd"/>
<remove name="Telerik_Web_UI_DialogHandler_aspx"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="WildCard" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness64"/>
<add name="WildCard32" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness32"/>
<add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.axd" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
<add name="Telerik.RadUploadProgressHandler" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
<add name="Telerik.Sitefinity.FilesDownloadHandler" path="Telerik.Sitefinity.FilesDownloadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Files.FilesDownloadHandler, Telerik.Sitefinity"/>
<add name="Telerik.Sitefinity.LibrariesRadUploadHandler" path="Telerik.Sitefinity.LibrariesRadUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.LibrariesRadUploadHandler, Telerik.Sitefinity"/>
<add name="Telerik.Sitefinity.ThumbnailUploadHandler" path="Telerik.Sitefinity.ThumbnailUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.ThumbnailUploadHandler, Telerik.Sitefinity"/>
<add name="Telerik.Sitefinity.AsyncImageUploadHandler" path="Telerik.Sitefinity.AsyncImageUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.AsyncImageUploadHandler, Telerik.Sitefinity"/>
<add name="Telerik.Sitefinity.AsyncFileUploadHandler" path="Telerik.Sitefinity.AsyncFileUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Workflow.AsyncFileUploadHandler, Telerik.Sitefinity"/>
<add name="Telerik.Web.UI.SpellCheckHandler" verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/>
<add name="Telerik_Web_UI_WebResource_axd" verb="*" path="Telerik.Web.UI.WebResource.axd" preCondition="integratedMode" type="Telerik.Web.UI.WebResource"/>
<add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler"/>
<add name="Telerik_Charting" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2011.3.1115.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
    </handlers>

Can anyone see if I'm missing something?

Edit 2 :  Found the following in the logs :
Message : Invalid type specified Telerik.Sitefinity.Security.Data.SecurityDataProvider
Source : Telerik.Sitefinity
Help link : 
ParamName : 
Data : System.Collections.ListDictionaryInternal
TargetSite : TProviderBase InstantiateProvider(Telerik.Sitefinity.Configuration.IDataProviderSettings, System.Type, Telerik.Sitefinity.Abstractions.ExceptionPolicyName, Telerik.Sitefinity.Data.ManagerBase`1[TProviderBase])
Stack Trace :    at Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager)

Posted by Community Admin on 28-Mar-2013 00:00

Dear Dawid

Maybe your production server is Microsoft® Windows Server 2012 with IIS 8.0 make sure you have all this set. 

http://www.sitefinity.com/documentation/documentationarticles/installation-and-administration-guide/install-sitefinity/configuring-the-iis-to-host-sitefinity-projects

Make sure anyhow that you have follewed the instruction of the above page.
Regards Markus

Posted by Community Admin on 01-Apr-2013 00:00

Hello Dawid,

Can you elaborate a bit more on what is your environment, on which you are hosting the site. Currently there are some problems when using IIS6 and Sitefinity 5+, which are resolved by adding entries for the image extensions in the webconfig.

Also can you share with us whether the static content ( images ) can be seen when using Visual Studio or the Project Manager's built - in servers? If you navigate to one of the image url's do you encounter any error messages?

Regards,
Victor Velev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 01-Apr-2013 00:00

Hi Victor,

We're using IIS7.5 for the servers, and all the images, including static images are visible when run via Visual Studio or the Project manager, no issues.

When hosted under IIS, if you try to navigate to one of the images, you get 404 Not Found response, but this is only for the Image document library - all others seem to work fine...

@Markus
IIS has been set up according to those rules under the IIS7 section except for :
Microsoft .NET Framework 3.5.1 Features » Windows Communication Foundation HTTP Activation

The site was running before, so the only changes have been the upgrade.  Don't think WCF activation is the problem, as I have some HTTP REST services that run fine - maybe I'm wrong though..

Posted by Community Admin on 04-Apr-2013 00:00

Hi Dawin,

 Can you try to republish your images and see if this will change the behavior?

Regards,
Jen Peleva
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 04-Apr-2013 00:00

Jen,

The images are available when not running via IIS, so it's more likely a handler issue.  I have however tried to republish some images, and the same thing happens - it works, but images don't display, not in the library editor and not where content links to it.  
I will open a support ticket on this case rather.

Thanks.

Posted by Community Admin on 09-Apr-2013 00:00

Hello Dawid,

The fact that this improper behavior reproduces on a blank instance as well, indeed must mean that the problem most probably comes from your server configurations. Please make sure again that you have setup IIS properly, following this article from our documentation:

http://www.sitefinity.com/documentation/documentationarticles/installation-and-administration-guide/install-sitefinity/configuring-the-iis-to-host-sitefinity-projects 


Also, please find attached a video walk-through of the settings on a sample site of ours that is running fine on our local machines.

Kind regards,
Jen Peleva
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 09-Apr-2013 00:00

Jen,

The server has been setup exactly as per the instructions, and it has been working on version 4.4 for quite some time (so not a blank instance, an existing working one).  It only started doing this after upgrading to 5.0 in the upgrade cycle.

I'm sure it works fine on your side, I just can't see where I have the configuration incorrect. Will go through the upgrade cycle again in case I missed something, and if I don't find the issue I will open a support ticket.

Thanks.

Posted by Community Admin on 10-Apr-2013 00:00

Hi Dawid,

Please let us know if you're experiencing the same behavior after you upgrade the project again.

All the best,
Jen Peleva
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 18-Apr-2013 00:00

So, found the solution after some time, posting here in case anyone gets something similar.

It had nothing to to with the upgrade, but instead with RadCompression Module and runAllManagedModulesForAllRequests setting.

Modified modules to <modules runAllManagedModulesForAllRequests="true">, which solved the image library issue (I tried each module one by one, and I still don't know which specific one caused this, but that's ok).  However, the documents library was still doing something similar ("Invalid use of response filter" instead of 404 errors), and this was solved by removing radcompression module.

Hope this helps someone.

This thread is closed