首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Tridion UI - "Bad Request“

Tridion UI - "Bad Request“
EN

Stack Overflow用户
提问于 2012-07-10 18:24:47
回答 3查看 848关注 0票数 7

我已经安装了Tridion UI 2012,因为文档和一切似乎都很好,我可以使用UI功能,如创建一个新页面,修改现有的页面等,但现在(我还不能限制何时或为什么)我收到一个"Bad Request“错误时,点击”更新预览“。详细错误显示在事件查看器中:

代码语言:javascript
复制
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

EN

回答 3

Stack Overflow用户

发布于 2013-12-02 23:28:15

有点晚了,但在我的例子中,这是由太大的二进制文件引起的。您可以按照以下步骤更详细地指出问题:(Tridion2011、SP1、HR2,但我假设这也适用于2013年)

在CMS服务器上,打开

  • 并取消注释以下TcmServiceHost.exe.config <sharedListeners>标记的主体,然后创建在initializeData属性中提到的目录(或者更新此TcmServiceHost服务并单击“更新预览”。此时将显示日志文件,您可以在SvcTraceViewer

中将其打开

找到红色条目,然后从那里开始。

允许更大的二进制文件(考虑性能成本!)转到您的OData会话预览服务并执行以下操作:

  1. 打开web.config并找到绑定(当然是相关的绑定,但这通常是具有以下属性的<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>

  • Locate Preview‘
票数 4
EN

Stack Overflow用户

发布于 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

  • For oData网站更新jars,验证web.config节点"bindingConfiguration“属性是否正确
    1. oData website,确保从用户界面文件夹\Content Delivery\roles\web\dotNET\webapp\x86_64.zip\bin\lib

    复制all,并将所有jars替换为用户界面文件夹\Content jars中的内容

票数 1
EN

Stack Overflow用户

发布于 2015-04-02 18:47:19

对我来说,解决方案是在Session Preview Webservice的标准web.config中将maxReceivedMessageSize增加到"524288000“,将maxBufferSize增加到”524288000

代码语言:javascript
复制
<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>

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11411315

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档