我已经安装了Tridion UI 2012,因为文档和一切似乎都很好,我可以使用UI功能,如创建一个新页面,修改现有的页面等,但现在(我还不能限制何时或为什么)我收到一个"Bad Request“错误时,点击”更新预览“。详细错误显示在事件查看器中:
Log Name: Tridion
Source: Tridion Publishing
Date: 10/07/2012 12:03:37
Event ID: 100
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: ZZZZZ
Description:
Unable to update or add Binaries using OData Service.
An error occurred while processing this request.
BadRequest
Component: Tridion.SiteEdit.FastTrackPublishing
Errorcode: 1003
User: NT AUTHORITY\NETWORK SERVICE
StackTrace Information Details:
at System.Data.Services.Client.DataServiceContext.SaveResult.<HandleBatchResponse>d__1e.MoveNext()
at System.Data.Services.Client.DataServiceContext.SaveResult.HandleBatchResponse()
at System.Data.Services.Client.DataServiceContext.SaveResult.EndRequest()
at System.Data.Services.Client.DataServiceContext.SaveChanges(SaveChangesOptions options)
at Tridion.SiteEdit.FastTrackPublishing.ServiceImplementation.SaveBinaries(RenderedItem renderedItem, ContentDeliveryService service)
at Tridion.SiteEdit.FastTrackPublishing.ServiceImplementation.SaveBinaries(RenderedItem renderedItem, ContentDeliveryService service)
at Tridion.SiteEdit.FastTrackPublishing.ServiceImplementation.Preview(IEnumerable`1 publishedItemsInfo, TcmUri publishingTargetId)
at Tridion.SiteEdit.FastTrackPublishing.ServiceImplementation.Preview(IEnumerable`1 publishedItemsInfo, TcmUri publishingTargetId)
at SyncInvokePreview(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.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)你以前见过这个错误吗?有什么办法可以避免/修复它吗?
致敬Emma
发布于 2013-12-02 23:28:15
有点晚了,但在我的例子中,这是由太大的二进制文件引起的。您可以按照以下步骤更详细地指出问题:(Tridion2011、SP1、HR2,但我假设这也适用于2013年)
在CMS服务器上,打开
<sharedListeners>标记的主体,然后创建在initializeData属性中提到的目录(或者更新此TcmServiceHost服务并单击“更新预览”。此时将显示日志文件,您可以在SvcTraceViewer中将其打开
找到红色条目,然后从那里开始。
允许更大的二进制文件(考虑性能成本!)转到您的OData会话预览服务并执行以下操作:
<bindings><webHttpBinding> (在<webHttpBinding>元素内)):更新<services><service>标记并找到相关的服务('Tridion.ContentDelivery.Webservice.ODataService‘,然后更新bindingConfiguration属性以匹配新添加的绑定的名称(在本例中为AdjustedBindingConfiguration)
<binding name="AdustedBindingConfiguration" maxReceivedMessageSize="2097152000" maxBufferSize="2097152000"> <readerQuotas maxArrayLength="81920" maxBytesPerRead="5120" maxDepth="32" maxNameTableCharCount="81920" maxStringContentLength="2097152" /> </binding>
发布于 2012-07-10 18:43:59
我还没有确切地看到这一点,但当我的会话预览内容交付终结点URL配置错误时,出现了一些类似的情况。
读取错误描述我猜您的端点URL (会话预览oData服务)已启动并正在运行,但它可能存在一些其他问题。我会检查您是否可以手动浏览该oData服务,如果看起来不错,也许可以查看它的日志文件以了解更多详细信息。
在IIS上,这通常意味着正确的jars和DLL有问题,请检查以下步骤:
对于预览网站,请确保从用户界面文件夹\Content Delivery\roles\webservice\dotNET\webapp\x86_64.zip\bin复制DLL,并从\Content Delivery\roles\webservice\dotNET\webapp\x86_64.zip\bin
复制all,并将所有jars替换为用户界面文件夹\Content jars中的内容
发布于 2015-04-02 18:47:19
对我来说,解决方案是在Session Preview Webservice的标准web.config中将maxReceivedMessageSize增加到"524288000“,将maxBufferSize增加到”524288000
<webHttpBinding>
<binding name="HttpBinding" maxReceivedMessageSize="524288000" maxBufferSize="524288000">
<readerQuotas maxArrayLength="81920" maxBytesPerRead="5120" maxDepth="32" maxNameTableCharCount="81920" maxStringContentLength="2097152" />
<security mode="TransportCredentialOnly">
<transport clientCredentialType="None" />
</security>
</binding>
https://stackoverflow.com/questions/11411315
复制相似问题