We're trying to sync a file in our media library from Staging to Production, and with this particular file it fails. It strangely gives a "404: Not Found" error. I found an article that recommends upping ASP.NET's default timeouts and max request lengths in Web.config, but this had no effect. The failure happens within 5 seconds of clicking "Synchronize selected", so I doubt that it's a timeout issue. We're (still) using Kentico 6. Here are the error details:
Event type: Error Source: Staging Event code: SYNCSELECTEDTASKSMULTIPLE Description: Synchronization failed, see synchronization log for details. Message: The request failed with HTTP status 404: Not Found. Stack Trace: at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at CMS.Synchronization.CMS.SynchronizationEngine.SyncServerWse.ProcessSynchronizationTask(String taskTitle, String taskType, String taskObjectType, String taskData, String taskBinaryData, String taskServerList, String systemVersion) at CMS.Synchronization.SyncClient.RunTask(TaskInfo taskObj) Synchronizing 'Create Media file @WhateverFile@' task Synchronizing the tasks ... Event URL: /CMSModules/Staging/Tools/AllTasks/Tasks.aspx URL referrer: http://oursite/CMSModules/Staging/Tools/AllTasks/Tasks.aspx
How large is the file, I've found some larger files cause problems. I believe there are some web.config changes you can make but offhand, I don't recall what they are.
Hello Bryan,
Brenden is probably referring to <httpRuntime maxRequestLength="2097151"> setting. If this is the only media file for which synchronization fails, you might try to increase a value of this key in a web.config file.
<httpRuntime maxRequestLength="2097151">
I made a blog post about this issue that may help you out too.
http://www.mcbeev.com/Blog/September-2012/Kentico-CMS-Quick-Tip-Content-Staging-and-Large-Files
Please, sign in to be able to submit a new answer.