使用以下功能的任何人都遇到异
tdse.GetObject(tmpFolderWebDavURL, EnumOpenMode.OpenModeView, null,
XMLReadFilter.XMLReadAll) as Folder;
Run Code Online (Sandbox Code Playgroud)
似乎webdav的最后一段包含一个点,然后方法抛出和异常.
例如
tmpFolderWebDavURL = "/webdav/test_publication/2.2 folder name"
- 抛出异常失败
tmpFolderWebDavURL = "/webdav/test_publication/22 folder name"
- 工作
tmpFolderWebDavURL = "/webdav/test_publication/2.2 folder name/sub_folder"
- 工作
例外
<?xml version="1.0"?>
<tcm:Error xmlns:tcm="http://www.tridion.com/ContentManager/5.0" ErrorCode="80040200" Category="4" Source="Kernel" Severity="2">
<tcm:Line ErrorCode="80040200" Cause="false" MessageID="15301">
<![CDATA[Unable to get TOM object for URI: /webdav/TPMG Medical Library Content/Building Blocks/Content Live/2.2 People Lists]]>
<tcm:Token>/webdav/TPMG Medical Library Content/Building Blocks/Content Live/2.2 People Lists</tcm:Token>
</tcm:Line>
<tcm:Line ErrorCode="80040200" Cause="true" MessageID="15748">
<![CDATA[Unable to map all paths to URIs.]]>
</tcm:Line> …
Run Code Online (Sandbox Code Playgroud) 是否可以在IIS 7.5下的x64 Classic管道应用程序池中运行SDL Tridon 2011 SP1 HR1.
请求的原因是我的SSO提供程序包含一个ISAPI筛选器,由于IIS 7.5中的安全性提高,它必须在经典模式下在x64池中运行.
当前错误:
Retrieving the COM class factory for component with CLSID {4ED977D7-A765-11D5-8071-00B0D0B98279} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Run Code Online (Sandbox Code Playgroud)
提前致谢
从Tridion 2009 SP1到2011 SP1执行内容管理器数据库的升级前检查时,我在管理器和日志文件中收到以下错误.
有线索吗?
<TdmLog DateCreated="2012-04-19T10:20:26" ApplicationVersion="6.1.0.996">
<Event DateTime="2012-04-19T10:20:26" Id="0" Type="1">
<ErrorCode>0</ErrorCode>
<Description>Tridion Content Management Database Upgrade Analysis</Description>
<Source>MainModule.ProcessScripts</Source>
</Event>
Run Code Online (Sandbox Code Playgroud)
将我现有的Tridion 2009事件DLL(在2011服务器上编译)添加到bin目录并在Content Manager Config文件中注册DLL后,GUI现在返回以下错误.我检查了事件日志,Tridion日志等有关"缺失依赖"任何想法的更多详细信息?
Could not load file or assembly 'Tridion.Extensions.Events, Version=1.0.20.521,
Culture=neutral, PublicKeyToken=ecb60dbe3cbb7440' or one of its dependencies.
The system cannot find the file specified.
Unable to get LangID of User (tcm:0-2851-65552). Initialization of the extension
'C:\Program Files (x86)\Tridion\bin\Tridion.Extensions.Events.MDO.dll' failed.
System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly,ObjectHandleOnStack)
System.Reflection.RuntimeAssembly.GetExportedTypes()
Tridion.ContentManager.Extensibility.TcmExtension.LoadExtensions()
Tridion.ContentManager.Extensibility.TcmExtension.LoadExtensions()
Tridion.ContentManager.Extensibility.TcmExtension.InitializeExtensions()
Tridion.ContentManager.Extensibility.EventSystem.DeliverEvent(IEnumerable`1,TcmEventArgs,EventDeliveryPhase)
Tridion.ContentManager.Extensibility.EventSystem.DeliverEvent(IdentifiableObject,TcmEventArgs,EventDeliveryPhase) Tridion.ContentManager.IdentifiableObject.Load(LoadFlags,Boolean)
Tridion.ContentManager.IdentifiableObject.Load(LoadFlags)
Tridion.ContentManager.BLFacade.IdentifiableObjectFacade.Read(UserContext,String,XMLReadFilter) XMLState.GetPropertyElem XMLState.GetProperty User.LangID
Run Code Online (Sandbox Code Playgroud) 是个
OnPageSetPublishedToPost
在Tridion 2011中支持的事件.我很难将此事件解雇.
我正在将遗留事件系统代码部署到Tridion 2011 SP1 HR1.
谢谢,克里斯
使用HttpClient
和避免死锁的最佳方法是什么?我使用下面的代码,完全从同步方法调用,但我担心它可能导致死锁.
我已经做了类似功能的一些阅读.ConfigureAwait(false)
,.GetAwaiter()
,.GetResult()
但是我正在寻找的最佳实践方法输入.
代码不太准确,但足够接近.
public static bool TryRequest(string url, out response)
{
HttpContent content = new StringContent(json, Encoding.UTF8, "application/json");
using (HttpClient client = new HttpClient())
{
HttpResponseMessage responseMessage = null;
switch (verb)
{
case HttpVerb.Put:
responseMessage = client.PutAsync(url, content).Result;
break;
case HttpVerb.Post:
responseMessage = client.PostAsync(url, content).Result;
break;
case HttpVerb.Delete:
responseMessage = client.DeleteAsync(url).Result;
break;
case HttpVerb.Get:
responseMessage = client.GetAsync(url).Result;
break;
}
if (responseMessage.IsSuccessStatusCode)
{
responseContent = responseMessage.Content.ReadAsStringAsync().Result;
statusCode = responseMessage.StatusCode;
}
}
}
Run Code Online (Sandbox Code Playgroud)