I have a created a solution with two projects 1) Trainig Plugins and 2) PluginBase
In the Plugin Base project , I have created a new class file (BasePlugin) as an abstract class inherited it to IPlugin interface so that it can be reusabale for all other projects
In the Training project , I have created a new class which includes the logic to create a contact on create of account and I have inherited the BasePlugin abstract class
After building the solution and while trying to register the assembly I am getting below error.
Microsoft.Crm.CrmException: PluginType [Training.Plugins.CreateContactOnAccountCreation] not found in PluginAssembly which has a total of [0] plugin/workflow activity types.
I don't know how you build solution successfully, there is not construct function defined in BasePlugin that take one parameter.
I think you should delete these code:
public CreateContactOnAccountCreation(string unsecureConfiguration, string secureConfiguration)
: base(typeof(CreateContactOnAccountCreation))
{
}
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.