Tridion 从客户端计算机访问核心服务时出错

Tridion 从客户端计算机访问核心服务时出错,tridion,Tridion,我正在使用SDL Tridion 2011上的核心服务,从客户机连接到Tridion服务器。当我试图执行它时,我遇到了一些错误 示例代码 namespace coreservice1 { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { try

我正在使用SDL Tridion 2011上的核心服务,从客户机连接到Tridion服务器。当我试图执行它时,我遇到了一些错误

示例代码

namespace coreservice1
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                using (ChannelFactory<ISessionAwareCoreService> factory =  new ChannelFactory<ISessionAwareCoreService>("wsHttp_2011"))
                {

                    ISessionAwareCoreService client = factory.CreateChannel();
                    ComponentData comp = (ComponentData)client.Create(component, new ReadOptions());

                    ...

                    //steps to create component                

               }
            }
            catch (Exception ex)
            {
                Response.Write(ex.StackTrace);
                Response.Write("exception is " + ex.Message);
            }
         }
    }
}
我的客户端代码引用了Tridion.Logging。此程序集存在于我的代码中。不管它的存在,我都得到了错误。我在客户端代码中引用的DLL版本与服务器中的版本完全相同

有人能帮忙吗,我需要做什么样的改变

我还检查了tridion服务器中的事件日志。我没有发现任何日志添加到那里

在服务器上执行时,代码运行正常

来自客户端计算机的事件查看器日志如下所示:

配置错误异常

无法加载文件或程序集“Tridion.Logging,版本=6.1.0.25,区域性=neutral,PublicKeyToken=ddfc895746e5ee6b”或其依赖项之一。无法验证强名称签名。程序集可能已被篡改,或者已延迟签名但未使用正确的私钥完全签名。系统.Web.Configuration.CompilationSection.LoadAssemblyHelper(字符串assemblyName,Boolean starDirective)系统.Web.Configuration.CompilationSection.LoadAllassembliesFromAppDomainBindDirectory()系统.Web.Configuration.CompilationSection.LoadAssemblyInfo(AssemblyInfo ai)中的(HRESULT:0x80131045的例外)位于System.Web.Compilation.BuildManager.GetReferenceAssemblys(CompilationSection compConfig)的System.Web.Compilation.BuildManager.GetPreStartInitMethods()的System.Web.Compilation.BuildManager.CallPreStartInitMethods()的System.Web.HostingEnvironment.Initialize(ApplicationManager appManager、IApplicationHost appHost、IConfigMapPathFactory configMapPathFactory、HostingEnvironmentParameters hostingParameters、PolicyLevel PolicyLevel、异常appDomainCreationException)无法加载文件或程序集“Tridion.Logging,Version=6.1.0.25,Culture=neutral,PublicKeyToken=ddfc895746e5ee6b”或其依赖项之一。无法验证强名称签名。该程序集可能已被篡改,或已延迟签名,但未使用正确的私钥完全签名。(HRESULT的异常:0x80131045)在System.Reflection.RuntimeAssembly.\u nLoad(AssemblyName文件名、字符串代码基、证据assemblySecurity、RuntimeAssembly位置提示、StackScrawmark和stackMark、Boolean throwOnFileNotFound、Boolean ForInspection、Boolean suppressSecurityChecks)在System.Reflection.RuntimeAssembly.nLoad(AssemblyName文件名、字符串代码库、证据assemblySecurity、RuntimeAssembly位置提示、StackScrawMark&stackMark、Boolean throwOnFileNotFound、Boolean ForInspection、Boolean suppressSecurityChecks)位于System.Reflection.RuntimeAssembly.InternalLoadAssemblyName在System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString,Evidence assemblySecurity,StackScrawMark&stackMark,Boolean ForInspection,Boolean suppressSecurityChecks)处的System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString,Evidence assemblySecurity,StackScrawMark&stackMark,Boolean ForInspection)处位于System.Web.Configuration.CompilationSection.LoadAssemblyHelper(字符串assemblyName,Boolean starDirective)无法加载文件或程序集“Tridion.Logging”或其依赖项之一。无法验证强名称签名。该程序集可能已被篡改,或者已延迟签名,但未使用正确的私钥完全签名。(HRESULT的异常:0x80131045)
位于System.Web.Configuration.CompilationSection.LoadAssemblyHelper(字符串assemblyName,布尔starDirective)的System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBindDirectory()的System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)的System.Web.Compilation.BuildManager.GetReferenceAssemblys(CompilationSection compConfig)位于System.Web.Compilation.BuildManager.GetPrestartInitMethodsFromReferenceAssemblys()位于System.Web.Compilation.BuildManager.CallPreStartInitMethods()位于System.Web.HostingEnvironment.Initialize(ApplicationManager appManager、IApplicationHost appHost、IConfigMapPathFactory configMapPathFactory、HostingEnvironmentParameters hostingParameters、PolicyLevel PolicyLevel、异常appDomainCreationException)


我在服务器上的日志中没有找到任何事件。

您不应该引用Tridion.Logging。CoreService不需要它。您需要的只是CoreService.dll。此外,Tridion.Logging不是公共API,因此根本不应该使用它。

您不应该引用Tridion.Logging。CoreService不需要它。您需要的只是CoreService.dll。此外,Tridion.Logging不是公共API,因此根本不应该使用它。

检查Tridion事件日志。还要确保您没有使用任何其他Tridion程序集。

检查Tridion事件日志。还要确保您没有使用任何其他Tridion程序集。

您看到的异常情况是,它在客户端上吗?您知道吗看到事件日志中的任何内容吗?您可以指定您使用的操作系统和体系结构吗?您使用的是服务引用还是CoreService.dll?您的客户端与服务器在同一台计算机上吗?我使用的是CoreService.dll。我的客户端与服务器不同。它不同。使用Tridion.ContentManager.CoreService.client;使用Tridion.ContentManager.ContentManagement.Fields;使用Tridion.ContentManager.CommunicationManagement;使用Tridion.ContentManager.ContentManagement;使用System.Text;使用Tridion.ContentManager.CoreService;使用System.ServiceModel.Channel;使用System.IO;使用System.Collections;使用System.Text.RegularExpressions;您的客户端代码是否引用了Tridion.LOGING?客户端计算机上是否存在程序集?客户端代码中引用的DLL版本是否与服务器上的版本完全相同?您看到的例外情况是,它是否在clie上
<wsHttpBinding>
    <binding name="wsHttp" transactionFlow="true" maxReceivedMessageSize="10485760">
        <readerQuotas maxStringContentLength="10485760" maxArrayLength="10485760"/>
            <security mode="Message">
                <message clientCredentialType="Windows"/>
            </security>


<endpoint name="wsHttp_2011" address="http://serveraddress:1000/webservices/CoreService2011.svc/wsHttp" binding="wsHttpBinding" bindingConfiguration="wsHttp" contract="Tridion.ContentManager.CoreService.Client.ISessionAwareCoreService">
    <identity>
        <dns value="serveraddress"/>
    </identity>
</endpoint>
Server Error in '/' Application. 
________________________________________
Could not load file or assembly 'Tridion.Logging' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)