web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error registering plugins and/or workflows. Plug-in assembly does not contain the required types or assembly content cannot be updated.

(0) ShareShare
ReportReport
Posted on by 1,328

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

I have the same question (0)
  • Verified answer
    epark06 Profile Picture
    1,328 on at
    RE: Error registering plugins and/or workflows. Plug-in assembly does not contain the required types or assembly content cannot be updated.

    Ok Solved! I had changed my namespace and class, so I had to update the Typename in RegisterFile.crmregister to reflect new changes.

    Reference: stackoverflow.com/.../7920473

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#3
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans