使用插件注册工具注册自定义工作流程后,为什么需要重启CRM服务器才能使其正常工作 [英] Why do we need to restart the CRM server after registering the custom workflow using Plugin Registration tool to make that work properly

查看:105
本文介绍了使用插件注册工具注册自定义工作流程后,为什么需要重启CRM服务器才能使其正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以通过其他方法来使工作流步骤中的自定义工作流活动可运行吗。

Can we have any alternative way to make run-able the custom Workflow activity in Workflow steps.

我一直在使用插件注册来注册dll。工具,然后重新启动服务器。然后只有我们才能在Workflow上使用自定义工作流活动。

All the time what I do is register the dll using Plugin registration tool and then restart the server. Then only we can use the custom workflow activity on Workflow.

我在重新启动IIS之后尝试过,但愿它能成功但没有运气。

I have tried after restarting the IIS and hoping so it'll be done but no luck.

一直以来,重启服务器都不应该是任何解决方案。是否有其他替代方法,请提出建议。

All the time restarting server should not be any solution. Is there any alternative way for it please suggest. All you are suggestion would be greatly appreciated.

推荐答案

1)您无需重新启动IIS;无需重新启动IIS。使用以下命令重新启动应用程序池(速度更快并且不会中断服务器上可能正在运行的其他应用程序;默认情况下为 CrmAppPool):

1) You do not need to restart IIS; restart the application pool (its far faster and doesn't disrupt other applications that might be running on the server; by default its the 'CrmAppPool') using the command:

%systemroot%\system32\inetsrv\appcmd recycle apppool CrmAppPool

2)同样,您可以通过运行(powershell)来回收异步进程:

2) Similarly, you can recycle the async process by running (powershell):

Restart-Service -displayname "Microsoft Dynamics CRM Asynchronous Processing Service"

3)这两个命令都可以使用powershell命令远程运行:

3) Both of these commands can be run remotely using the powershell command:

powershell Invoke-Command [CrmServerName] -ScriptBlock { ["Restart-Service...."] }

4)您不需要部署到服务器来调试插件。创建测试工具更加容易/快捷。下面的链接概述了如何为单元测试设置开发环境。

4) You do not need to deploy to the server to debug plugins. Its far easier/faster to create a test harness. The link below outlines how to setup a dev environment for unit testing.

如何开发和单元测试CRM 2011插件

这篇关于使用插件注册工具注册自定义工作流程后,为什么需要重启CRM服务器才能使其正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆