none
plugIn注入后,保存时报错,求指点 RRS feed

  • 问题

  • using System;
    using System.Collections.Generic;
    using System.Text;
    using Microsoft.Crm.Sdk;
    using Microsoft.Crm.Sdk.Query;
    using Microsoft.Crm.SdkTypeProxy;
    
    namespace UpdateAccountEntity
    {
      public class UpdateAccount:IPlugin
      {
        public void Execute(IPluginExecutionContext context)
        {
             /*这里什么也没有写*/
        }  
      }
    }
    
    

    我在更新时,为Account实体附加以上PlugIn,Crm弹出 “发生错误。”

    求高手指点!


    To find out the dream is true.
    2011年5月17日 8:53

答案

  • 有没有签名?

    Step 3: Sign your Plug-in

    1. Right-click the AccountCreatePlugin project in Solution Explorer and click Properties.
    2. Create a new strong key file by clicking the Signing tab, select the Sign the assembly check box and select <New…> in the drop down list.
    3. Type AccountCreateStrongKey and clear the Protect my key file with a password check box. Click OK.
    4. Save your changes by clicking the Save All button.

    微软CRM
    2011年5月18日 0:28
    版主

全部回复

  • 有没有签名?

    Step 3: Sign your Plug-in

    1. Right-click the AccountCreatePlugin project in Solution Explorer and click Properties.
    2. Create a new strong key file by clicking the Signing tab, select the Sign the assembly check box and select <New…> in the drop down list.
    3. Type AccountCreateStrongKey and clear the Protect my key file with a password check box. Click OK.
    4. Save your changes by clicking the Save All button.

    微软CRM
    2011年5月18日 0:28
    版主
  • Thank you, with your method, I solved the problem.

    To find out the dream is true.
    2011年5月18日 3:04