积极答复者
plugin注入报错

问题
-
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Crm.Sdk;
using Microsoft.Crm.Sdk.Query;
using Microsoft.Crm.SdkTypeProxy;
namespace CRMPLUGIN
{
public class CustomerPlugIn : IPlugin
{public void Execute(IPluginExecutionContext context)
{
throw new InvalidPluginExecutionException("看看进来没有");
}
}
}
我就写了个而已。然后在account的create事件中注册,然后运行客户的新建就报错。说“发生错误”,各位老大有没有精于plugin的,给小第支支招。
答案
-
正常的话 应该也是报错,错误信息为:"看看进来没有"
如果可以放上你注册plugin的画面,包括注册assembly和step时的设置
Batistuta Cai-刀客 | 蔡敏生 | MS CRM MVP | Blog:http://caims.cnblogs.com- 已标记为答案 Jim Wang (Microsoft)Microsoft employee, Moderator 2009年10月26日 8:29
-
日志 (Event Viewer) 那里有没有什么的报错呢? 如果还有问题, 做个 CRM Trace。 我想这个问题一定是一个简单的问题。:)
Darren Liu | 刘嘉鸿 | MS CRM MVP | English Blog: http://msdynamicscrm-e.blogspot.com | Chinese Blog: http://liudarren.spaces.live.com- 已标记为答案 Jim Wang (Microsoft)Microsoft employee, Moderator 2009年10月26日 8:29
全部回复
-
正常的话 应该也是报错,错误信息为:"看看进来没有"
如果可以放上你注册plugin的画面,包括注册assembly和step时的设置
Batistuta Cai-刀客 | 蔡敏生 | MS CRM MVP | Blog:http://caims.cnblogs.com- 已标记为答案 Jim Wang (Microsoft)Microsoft employee, Moderator 2009年10月26日 8:29
-
你这个Plug-in 是 Pre 还是 Post 的 Plugin 呢?
Darren Liu | 刘嘉鸿 | MS CRM MVP | English Blog: http://msdynamicscrm-e.blogspot.com | Chinese Blog: http://liudarren.spaces.live.com- 已标记为答案 Jim Wang (Microsoft)Microsoft employee, Moderator 2009年10月26日 8:28
- 取消答案标记 Jim Wang (Microsoft)Microsoft employee, Moderator 2009年10月26日 8:29
-
日志 (Event Viewer) 那里有没有什么的报错呢? 如果还有问题, 做个 CRM Trace。 我想这个问题一定是一个简单的问题。:)
Darren Liu | 刘嘉鸿 | MS CRM MVP | English Blog: http://msdynamicscrm-e.blogspot.com | Chinese Blog: http://liudarren.spaces.live.com- 已标记为答案 Jim Wang (Microsoft)Microsoft employee, Moderator 2009年10月26日 8:29