Unable to upload and publish documents after upgrade to Sitefinity v. 7.0
I just upgraded to Sitefinity v. 7.0 yesterday and my customer just reported that they are no longer able to upload and publish documents.
As soon as they attempt to upload and publish a PDF document, they get an error message stating "Unable to upload and publish <document name>.pdf".
Below are the messages in the error log:
----------------------------------------
Timestamp: 4/11/2014 2:12:51 PM
Message: HandlingInstanceID: 57209e59-707c-4932-bbea-af36f134df32
An exception of type 'System.Exception' occurred and was caught.
----------------------------------------------------------------
04/11/2014 07:12:51
Type : System.Exception, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : 0 item(s) are successfully published. 1 item(s) cannot be published (see below).
Content TRCA SPRING 2014 OUTDOOR SESSION: Argument item must be a live record it is set to a value != null
Source : Telerik.Sitefinity
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void ThrowAccumulatedError(Int32, System.String, System.String, System.String)
HResult : -2146233088
Stack Trace : at Telerik.Sitefinity.Workflow.WorkflowBatchExceptionHandler.ThrowAccumulatedError(Int32 proccessItemsCount, String operationName, String singularItemTypeName, String pluralItemTypeName)
at Telerik.Sitefinity.Workflow.WorkflowBatchExceptionHandler.ThrowAccumulatedErrorForContent(Int32 proccessItemsCount, String operationName)
at Telerik.Sitefinity.Modules.ContentServiceBase`5.CallWorkflowBatch(String[] ids, String providerName, String operationName, String deletedLanguage, Boolean checkRelatingData)
at Telerik.Sitefinity.Modules.Libraries.Web.Services.DocumentService.CallWorkflowBatch(String[] ids, String providerName, String operationName, String deletedLanguage, Boolean checkRelatingData)
at Telerik.Sitefinity.Modules.ContentServiceBase`5.BatchPublishImpl(String[] ids, String providerName)
at Telerik.Sitefinity.Modules.ContentServiceBase`5.BatchPublish(String[] ids, String providerName, String workflowOperation)
at SyncInvokeBatchPublish(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
Category: ErrorLog
Priority: 0
EventId: 90000
Severity: Error
Title:Enterprise Library Exception Handling
Machine: WIN5013
App Domain: /LM/W3SVC/1014413600/ROOT-1-130416988235663794
ProcessId: 5772
Process Name: C:\Windows\SysWOW64\inetsrv\w3wp.exe
Thread Name:
Win32 ThreadId:10516
Extended Properties:
----------------------------------------
----------------------------------------
Timestamp: 4/11/2014 2:15:54 PM
Message: HandlingInstanceID: 8b4a0d1f-e91e-4ccc-b498-1589889e2783
An exception of type 'System.Web.HttpException' occurred and was caught.
------------------------------------------------------------------------
04/11/2014 07:15:54
Type : System.Web.HttpException, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : The file '/Telerik.Sitefinity.Html5UploadHandler.ashx' does not exist.
Source : System.Web
Help link :
WebEventCode : 0
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : Void CheckVirtualFileExists(System.Web.VirtualPath)
HResult : -2147467259
Stack Trace : at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
at System.Web.UI.SimpleHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.UI.SimpleHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Please advise.
Thanks.
Hello Samir,
Could you please make sure that you have the following section in your web.config file under the <configuration> section:
<
location
path
=
"Telerik.Sitefinity.Html5UploadHandler.ashx"
>
<
system.web
>
<
httpRuntime
maxRequestLength
=
"6048000"
executionTimeout
=
"7200"
maxUrlLength
=
"102400"
maxQueryStringLength
=
"102400"
requestValidationType
=
"Telerik.Sitefinity.Security.Claims.CustomRequestValidator, Telerik.Sitefinity"
/>
</
system.web
>
<
system.webServer
>
<
security
>
<
requestFiltering
>
<
requestLimits
maxAllowedContentLength
=
"2147483648"
/>
<!--2GB-->
</
requestFiltering
>
</
security
>
</
system.webServer
>
</
location
>
Hi,
I was able to do a comparison and merge using Beyond Compare with a brand new Sitefinity v. 7.0 project, since this was not the only element differing between the 2 web.config files. I have also tried upgrading several other Sitefinity v. 6.x projects and ALL of them failed as part of the Web.config upgrade process built into Sitefinity Project Manager. Therefore, do all of my SItefinity v. 6.x projects have to be manually upgraded for the web.config file?
Thanks.
Hello Samir,
We were unable to reproduce this on a brand new 6.2 or 6.3 as this should be present in your 6.1 webconfig.config. The automated webconfig modification is available since version 7.0, therefore this section had been missing before the upgrade.
What I could suggest is to verify you are following the upgrade sequence as described in our documentation article:
http://www.sitefinity.com/documentation/documentationarticles/installation-and-administration-guide/upgrade
Regards,
Vassil Vassilev
Telerik