Skip to main content

Notifications

Announcements

No record found.

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,320

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

  • Verified answer
    epark06 Profile Picture
    epark06 1,320 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans