2012-07-26 74 views
2

當連接到安裝在64位的Windows 7筆記本電腦上的CMS從模板生成器(TB),我們偶爾會出現以下錯誤:「的基礎連接已關閉」與支持SDL Tridion 2011 SP1模板生成器

The underlying connection was closed: An unexpected error occurred on a receive. 
    at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) 
    at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) 
    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) 
    at Tridion.ContentManager.Templating.CompoundTemplates.DomainModel.Model.Login(Uri contentManager, NetworkCredential credentials) 
    at Tridion.ContentManager.UI.CompoundTemplateDesigner.DesignerForm.LogonAs(Uri uri, Exception initialError) 

從客戶端機器訪問時,似乎只會出現此錯誤,從CMS服務器本身安裝的TB進行連接時似乎不會出現此錯誤。這似乎也不是CMS服務器特定的,因爲連接到其他環境和其他客戶端安裝時也會間歇性地發生此錯誤。我嘗試重新安裝結核病,但問題依然存在。

是否有其他人遇到類似的問題,或者對可能導致錯誤的建議有所建議?

+0

會出現這種情況,當你運行一個模板?或者當加載/保存模板時?一旦你在機器上使用它,它會一直髮生嗎?或者,如果再次嘗試,模板運行/加載/保存是否正常? – 2012-07-26 14:07:52

+0

配置了哪個代理?我有類似的連接問題,因爲我工作的公司使用的代理服務器。 – 2012-07-26 14:11:59

+0

它有時會在我連接時發生,有時候我會跑步。沒有涉及到的代理 - 有時是VPN雖然 - 當它發生時沒有真正的模式:( – 2012-07-26 14:31:20

回答

4

如果託管模板Web服務的CM服務器上打開的連接太多,就會發生這種情況。

嘗試重新啓動服務器。如果仍繼續在模板Web服務添加該配置如下:

<httpRuntime executionTimeout="3600" maxRequestLength="102375" ></httpRuntime> 

這將使該文件中../Tridion/Templating/web.config尋找類似如下:

<configuration> 
    <tridionConfigSections> 
    <sections> 
     <clear /> 
     <add filePath="..\config\Tridion.ContentManager.config" /> 
    </sections> 
    </tridionConfigSections> 
    <system.web> 
    <httpRuntime executionTimeout="3600" maxRequestLength="1023750"/> 
    <authentication mode="Windows" /> 
    <authorization> 
     <allow users="*" /> 
     <deny users="*" /> 
    </authorization> 
    <identity impersonate="false" /> 
    </system.web> 
    <appSettings> 
    <add key="cmeWebRoot" value="WebUI" /> 
    </appSettings> 
</configuration> 
+0

感謝@Bappi,幫助 - 我認爲可能也有一些問題與maxRequestLength,我們有大量的出版物。我已經添加了我更新的web.cofig到您的答案 – 2012-07-26 18:43:30

相關問題