C# System.Runtime.Remoting.RemotingException:无法加载类型

C# System.Runtime.Remoting.RemotingException:无法加载类型,c#,remoting,C#,Remoting,我已将应用程序上载到客户端。我们将获得“System.Runtime.Remoting.RemotingException:无法加载类型”错误。我是使用远程处理的新手。有人能告诉我如何解决此问题吗?同一组文件正在我的本地服务器中工作。它通过System.Runtime.remoting.RemotingException:连接到远程服务器时无法加载类型错误。我尝试了几种方法,但都没有成功 连接RemoteServer.System.Reflection.TargetInvocationExcep

我已将应用程序上载到客户端。我们将获得“System.Runtime.Remoting.RemotingException:无法加载类型”错误。我是使用远程处理的新手。有人能告诉我如何解决此问题吗?同一组文件正在我的本地服务器中工作。它通过System.Runtime.remoting.RemotingException:连接到远程服务器时无法加载类型错误。我尝试了几种方法,但都没有成功

连接RemoteServer.System.Reflection.TargetInvocationException时出错:调用的目标已引发异常。-->System.Runtime.Remoting.RemotingException:无法加载类型RemoteServer.SPN.ChargebackSPNRemoteServer,RemoteServer.SPN,版本=2.0.0.0,区域性=中性,PublicKeyToken=null

服务器堆栈跟踪: 在System.Runtime.Remoting.Activation.ActivationListener.Activate(IConstructionCallMessage)中 在System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb、对象[]args、对象服务器、Int32 methodPtr、布尔fExecuteInContext、对象[]和outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg、Int32 methodPtr、Boolean fExecuteInContext)

在[0]处重试异常: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg) at System.Runtime.Remoting.proxy.RealProxy.PrivateInvoke(MessageData&msgData,Int32类型) at System.Runtime.Remoting.Activation.IActivator.Activate(IConstructionCallMessage消息) 在System.Runtime.Remoting.Activation.LocalActivator.DoRemoteActivation(IConstructionCallMessage) 在System.Runtime.Remoting.Activation.LocalActivator.Activate(IConstructionCallMessage)中 在System.Runtime.Remoting.Activation.AppDomainLevelActivator.Activate(IConstructionCallMessage)中 在System.Runtime.Remoting.Messaging.ClientContextTerminatorSink.SyncProcessMessage(IMessage reqMsg)中 在System.Runtime.Remoting.Activation.ActivationServices.Activate(RemotingProxy remProxy,IConstructionCallMessage TorMsg) 在System.Runtime.Remoting.Proxy.RemotingProxy.InternalActivate(IConstructionCallMessage)中 at System.Runtime.Remoting.proxy.RemotingProxy.Invoke(IMessage reqMsg) at System.Runtime.Remoting.proxy.RealProxy.PrivateInvoke(MessageData&msgData,Int32类型) 在RemoteServer.SPN.ChargebackSPNRemoteServer..ctor()上 ---内部异常堆栈跟踪的结束--- 在System.RuntimeTypeHandle.CreateInstance(RuntimeType类型、Boolean publicOnly、Boolean noCheck、Boolean&canBeCached、RuntimeMethodHandle&ctor、Boolean&bNeedSecurityCheck) 位于System.RuntimeType.CreateInstanceSlow(布尔publicOnly,布尔fillCache) 位于System.RuntimeType.CreateInstanceImpl(布尔publicOnly、布尔skipVisibilityChecks、布尔fillCache) 位于System.Activator.CreateInstance(类型,布尔非公共) 位于System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr、Binder Binder、Object[]args、CultureInfo区域性、Object[]ActivationAttribute) 在System.Activator.CreateInstance(类型类型、BindingFlags bindingAttr、Binder Binder、对象[]参数、CultureInfo区域性、对象[]ActivationAttribute) 在Com。Service.Items.InProcess.SPNServiceProvider.ConnectDBServerRemote(字符串p_strURLforRemoteSite) 2014-10-03 11:00:58251[5084]错误-InnerException RemoteServer.System.Runtime.Remoting.RemotingException:无法加载类型RemoteServer.SPN.ChargebackSPNRemoteServer。RemoteServer.SPN,版本=2.0.0.0,区域性=中立,PublicKeyToken=null

服务器堆栈跟踪: 在System.Runtime.Remoting.Activation.ActivationListener.Activate(IConstructionCallMessage)中 在System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb、对象[]args、对象服务器、Int32 methodPtr、布尔fExecuteInContext、对象[]和outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg、Int32 methodPtr、Boolean fExecuteInContext)

在[0]处重试异常: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg) at System.Runtime.Remoting.proxy.RealProxy.PrivateInvoke(MessageData&msgData,Int32类型) at System.Runtime.Remoting.Activation.IActivator.Activate(IConstructionCallMessage消息) 在System.Runtime.Remoting.Activation.LocalActivator.DoRemoteActivation(IConstructionCallMessage) 在System.Runtime.Remoting.Activation.LocalActivator.Activate(IConstructionCallMessage)中 在System.Runtime.Remoting.Activation.AppDomainLevelActivator.Activate(IConstructionCallMessage)中 在System.Runtime.Remoting.Messaging.ClientContextTerminatorSink.SyncProcessMessage(IMessage reqMsg)中 在System.Runtime.Remoting.Activation.ActivationServices.Activate(RemotingProxy remProxy,IConstructionCallMessage TorMsg) 在System.Runtime.Remoting.Proxy.RemotingProxy.InternalActivate(IConstructionCallMessage)中 at System.Runtime.Remoting.proxy.RemotingProxy.Invoke(IMessage reqMsg) at System.Runtime.Remoting.proxy.RealProxy.PrivateInvoke(MessageData&msgData,Int32类型)
在RemoteServer.SPN.ChargebackSPNRemoteServer..ctor()上,我们需要更多信息。你试过在客户机上调试它吗?事件日志中是否有任何内容?事件日志文件中没有任何异常。我们已在服务器中部署了相同的文件。它在本地环境中运行良好。但在客户端位置不工作