I created a new solution via CRM SDK on VS 2012. When I click Deploy on the solution, I get this error.
Error registering plugins and/or workflows. Plug-in assembly does not contain the required types or assembly content cannot be updated. C:\Program Files (x86)\MSBuild\Microsoft\CRM\Microsoft.CrmDeveloperTools.12.targets 176 4 CrmPackage
Opening this file, below is what from line 174. This is my first plugin deployment so any help would be appreciated.
<Target Name="PluginsAndWorkflowsDeploy" Condition="'@(RegisterPlugin)' != ''"> <Message Text="WorkingFolder: $(Workingfolder)" Importance="high" /> <RegisterPlugin DiscoveryServer="$(CRMDiscoveryServer)" Port="$(CRMDiscoveryServerPort)" Scheme="$(CRMDiscoveryServerScheme)" Organization="$(CRMOrganization)" Password="$(CRMUserPassword)" UserName="$(CRMUserName)" Domain="$(CRMUserDomain)" SolutionName="$(CRMSolutionName)" RegistrationFile="%(RegisterPlugin.Identity)" WorkingFolder="$(WorkingFolder)" /> </Target>
Also, here is my RegisterFile.crmregister:
<?xml version="1.0"?> <Register xmlns:xsi="www.w3.org/.../XMLSchema-instance" xmlns:xsd="www.w3.org/.../XMLSchema" xmlns="schemas.microsoft.com/.../pluginregistration"> <Solutions> <Solution Assembly="SalesOrderPlugin2.Plugins.dll" Id="00000000-0000-0000-0000-000000000000" IsolationMode="Sandbox" SourceType="Database"> <PluginTypes> <Plugin Description="Plug-in to EPSalesOrderSetStatePlugin2" FriendlyName="EPSalesOrderSetStatePlugin2" Name="SalesOrderPlugin2.Plugins.EPSalesOrderSetStatePlugin2" Id="00000000-0000-0000-0000-000000000000" TypeName="SalesOrderPlugin2.Plugins.EPSalesOrderSetStatePlugin2"> <Steps> <clear /> <Step CustomConfiguration="" Name="EPSalesOrderSetStatePlugin2" Description="If Consolidate in Services equals True, merge service details into a single sales order detail. " Id="00000000-0000-0000-0000-000000000000" ImpersonatingUserId="d8a1d4b3-4b0e-e711-80ee-005056bece16" MessageName="SetState" Mode="Synchronous" PrimaryEntityName="salesorder" Rank="1" SecureConfiguration="" Stage="PreInsideTransaction" SupportedDeployment="ServerOnly"> <Images /> </Step> </Steps> </Plugin> </PluginTypes> </Solution> </Solutions> <XamlWorkflows /> </Register>
*This post is locked for comments