我已将我的应用程序上传到客户端。我们正在获取" System.Runtime.Remoting.RemotingException:无法加载类型"我是新手使用远程处理。任何人都可以让我知道如何解决这个问题。我的本地服务器正在运行。它通过System.Runtime.Remoting.RemotingException:连接到远程时无法加载类型错误服务器。我尝试了几种方法,但徒劳无功
连接RemoteServer时发生错误.System.Reflection.TargetInvocationException:调用目标抛出了异常。 ---> System.Runtime.Remoting.RemotingException:无法加载类型RemoteServer.SPN.ChargebackSPNRemoteServer,RemoteServer.SPN,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = null。
服务器堆栈跟踪: 在System.Runtime.Remoting.Activation.ActivationListener.Activate(IConstructionCallMessage ctorMsg) 在System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb,Object [] args,Object server,Int32 methodPtr,Boolean fExecuteInContext,Object []& outArgs) 在System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg,Int32 methodPtr,Boolean fExecuteInContext)
在[0]处重新抛出异常: 在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg) 在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 type) 在System.Runtime.Remoting.Activation.IActivator.Activate(IConstructionCallMessage msg) 在System.Runtime.Remoting.Activation.LocalActivator.DoRemoteActivation(IConstructionCallMessage ctorMsg) 在System.Runtime.Remoting.Activation.LocalActivator.Activate(IConstructionCallMessage ctorMsg) 在System.Runtime.Remoting.Activation.AppDomainLevelActivator.Activate(IConstructionCallMessage ctorMsg) 在System.Runtime.Remoting.Messaging.ClientContextTerminatorSink.SyncProcessMessage(IMessage reqMsg) 在System.Runtime.Remoting.Activation.ActivationServices.Activate(RemotingProxy remProxy,IConstructionCallMessage ctorMsg) 在System.Runtime.Remoting.Proxies.RemotingProxy.InternalActivate(IConstructionCallMessage ctorMsg) 在System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(IMessage reqMsg) 在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 type) 在RemoteServer.SPN.ChargebackSPNRemoteServer..ctor() ---内部异常堆栈跟踪结束--- 在System.RuntimeTypeHandle.CreateInstance(RuntimeType类型,Boolean publicOnly,Boolean noCheck,Boolean& canBeCached,RuntimeMethodHandle& ctor,Boolean& bNeedSecurityCheck) 在System.RuntimeType.CreateInstanceSlow(Boolean publicOnly,Boolean fillCache) 在System.RuntimeType.CreateInstanceImpl(Boolean publicOnly,Boolean skipVisibilityChecks,Boolean fillCache) 在System.Activator.CreateInstance(Type type,Boolean nonPublic) 在System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes) 在System.Activator.CreateInstance(Type type,BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes) 在Com。 Service.Items.InProcess.SPNServiceProvider.ConnectDBServerRemote(String p_strURLforRemoteSite) 2014-10-03 11:00:58,251 [5084]错误 - InnerException RemoteServer.System.Runtime.Remoting.RemotingException:无法加载类型RemoteServer.SPN.ChargebackSPNRemoteServer ,. RemoteServer.SPN,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = null。
服务器堆栈跟踪: 在System.Runtime.Remoting.Activation.ActivationListener.Activate(IConstructionCallMessage ctorMsg) 在System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb,Object [] args,Object server,Int32 methodPtr,Boolean fExecuteInContext,Object []& outArgs) 在System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg,Int32 methodPtr,Boolean fExecuteInContext)
在[0]处重新抛出异常: 在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg) 在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 type) 在System.Runtime.Remoting.Activation.IActivator.Activate(IConstructionCallMessage msg) 在System.Runtime.Remoting.Activation.LocalActivator.DoRemoteActivation(IConstructionCallMessage ctorMsg) 在System.Runtime.Remoting.Activation.LocalActivator.Activate(IConstructionCallMessage ctorMsg) 在System.Runtime.Remoting.Activation.AppDomainLevelActivator.Activate(IConstructionCallMessage ctorMsg) 在System.Runtime.Remoting.Messaging.ClientContextTerminatorSink.SyncProcessMessage(IMessage reqMsg) 在System.Runtime.Remoting.Activation.ActivationServices.Activate(RemotingProxy remProxy,IConstructionCallMessage ctorMsg) 在System.Runtime.Remoting.Proxies.RemotingProxy.InternalActivate(IConstructionCallMessage ctorMsg) 在System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(IMessage reqMsg) 在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 type) 在RemoteServer.SPN.ChargebackSPNRemoteServer..ctor()