调用暂存环境中托管的工作流服务时,我收到以下错误。
Stored procedure returned unknown execution result Unknown.
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at IWorkflow.InvokeWorkflowRequest(String id)
at WorkflowClient.InvokeWorkflowRequest(String id)
我的配置文件
<system.serviceModel>
<services>
<service name="WorkflowService">
<endpoint binding="basicHttpBinding" contract="IWorkflow" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<sqlWorkflowInstanceStore connectionString="Data Source=.;Initial Catalog=Store;Integrated Security=True;Asynchronous Processing=True" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
在本地,该服务运行良好,即使在指向我的暂存数据库时也是如此。我将不胜感激任何帮助。
我在使用工作流基础 4.5 时遇到了类似的问题,当时在没有 DefinitionIdentity 的情况下保留了一个新实例。
引发异常"存储过程返回未知执行结果未知",并且未给出内部异常。
引发异常的原因是 SaveInstance 过程返回 99,并且是由表 [System.Activities.DurableInstancing] 中缺少的行引起的。[定义标识表]。
您可以使用以下 sql 脚本重新创建缺少的行:
插入 [System.Activities.DurableInstancing]。[定义标识表] ([SurrogateIdentityId], [DefinitionIdentityHash], [DefinitionIdentityAnyRevisionHash], [Name], [Package], [build], [主要], [次要], [修订]) 值 (1, N'00000000-0000-0000-0000-00000000000000', N'00000000-0000-0000-0000-0000000000000', 空, 空)
我希望它对某人有所帮助
如果持久性数据库内存不足,也可能会出现此问题。今天得到了它,解决方案是扩展持久性数据库可用空间。