Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Errors after renaming assembly and contents of RegisterFile.cmregister

(0) ShareShare
ReportReport
Posted on by 1,579

I have a Visual Studio 2019 Plugin Project for D365 CE and had to rename numerous things. 

I renamed the assembly name, the plugin class, and the namespace, as well as several things within the RegisterFile.cmregister file.

I had several issues but have been able to resolve all of them up to this. 

The project deploys to D365, creates the assembly, and pushes everything into D365 successfully.

The problem is I need to make changes rapidly and do everything from within Visual Studio 2019 and am getting the following errors from within the CRMExplorer area of Visual Studio 2019. 

The first issue is when I try and edit the plugin registration itself by right clicking the registration and click "Edit Plugin" as shown below. 

3716.Screen-Shot-2021_2D00_02_2D00_03-at-2.00.12-PM.png

I get the following error. 

5618.Screen-Shot-2021_2D00_02_2D00_03-at-2.00.27-PM.png

The second issue is when I try and edit the individual steps as shown below. 

2337.Screen-Shot-2021_2D00_02_2D00_03-at-3.17.03-PM.png

As soon as I click "Edit Step" I get the error shown below.

0066.Screen-Shot-2021_2D00_02_2D00_03-at-3.09.35-PM.png

What else do I need to adjust for this to work?

Is there some xml in a file that I have missed somewhere or that does not show up when doing a find/replace in the entire solution? 

Any help of guidance would be greatly appreciated. 

  • Verified answer
    ACECORP Profile Picture
    ACECORP 1,579 on at
    RE: Errors after renaming assembly and contents of RegisterFile.cmregister

    I ended up doing the following to fix the problem.

    1. Deregister everything manually using the plugin registration tool except for the top level assembly.
    2. Remove everything from the RegisterFile.crmregister file except for the assembly information.
    3. Create a new registration with the name test just to get something to re-populate the RegisterFile.crmregister file. 
    4. Open/Edit RegisterFile.crmregister and change the name to the correct class, delete the test class that was automatically created as a result of the new registration
    5. Save/Close RegisterFile.crmregister
    6. Clean, build, deploy and push the registration back Into D365
    7. Go back to the CrmExplorer tab and attempt to edit the registration. 
    8. That was successful. No error
    9. Right click and add a step
    10. Fill in the step info and save
    11. Check the RegisterFile.crmregister file for updates
    12. Go back to the CrmExplorer tab and attempt to click/open both the registration and the step.
    13. Success!
  • ACECORP Profile Picture
    ACECORP 1,579 on at
    RE: Errors after renaming assembly and contents of RegisterFile.cmregister

    I managed to fix the topmost problem by removing a duplicate entry from the RegisterFile.crmregister file.

    I suspect the solution to the second issue is also some kind of modification to the RegisterFile.crmregister file. 

    To confirm, the only remaining problem is that as soon as I click "Edit Step" as shown in the image show below under ACTION,  I get the error shown below under ERROR.

    ACTION

    3441.pastedimage1612384388801v2.png

    ERROR

    0160.pastedimage1612384353002v1.png

    Any help of guidance would be greatly appreciated. 

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,996 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,853 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans