none
workflow运行原来运行在32位现改为64位出现错误 RRS feed

  • 问题

  • 使用workflow3.0开发的web程序,原来运行在32位windows server 2003上正常,现在为了升级服务器的性能,购买了新的服务器安装了正版的64位的windows server 2003上,但工作流就无法运行了,具体操作是:创建工作流后,响应具体方法时报出传递的接口类型错误,innerException报出索引超界。具体错误如下:

    System.Workflow.ComponentModel.Serialization.ActivitySurrogate.ActivitySerializedRef.System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(Object sender)

       System.Runtime.Serialization.DeserializationEventHandler.Invoke(Object sender)

       System.Runtime.Serialization.ObjectManager.RaiseDeserializationEvent()

       System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)

       System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)

       System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)

       System.Workflow.ComponentModel.Activity.Load(Stream stream, Activity outerActivity, IFormatter formatter)

       System.Workflow.ComponentModel.Activity.Load(Stream stream, Activity outerActivity)

       System.Workflow.Runtime.Hosting.WorkflowPersistenceService.RestoreFromDefaultSerializedForm(Byte[] activityBytes, Activity outerActivity)

       System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService.LoadWorkflowInstanceState(Guid id)

       System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId, CreationContext context, WorkflowExecutor executor, WorkflowInstance workflowInstance)

       System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext context, WorkflowInstance workflowInstance)

       System.Workflow.Runtime.WorkflowRuntime.GetWorkflow(Guid instanceId)

       System.Workflow.Activities.ExternalDataExchangeService.EnqueueMessageWrapper.DeliverMessage(ExternalDataEventArgs eventArgs, IComparable queueName, Object message, Object workItem, IPendingWork workHandler)

       System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs)

    2011年8月5日 3:12

全部回复

  • 您好,

    请问您是否尝试在64位系统下重新编译该程序呢?


    http://marui.blog.51cto.com http://www.melvillo.com 新浪微博:http://weibo.com/melvillo

    2012年7月6日 12:37
    版主