Untitled-5

How to use Package deployer tool to deploy packages for dynamics 365

If you are a developer then you must know what is use of package solutions into dynamics. A package solution contains entities, fields, plugins, your application logic code and etc elements. Sometimes we need more than one package to ship to our customers for their functional dependency. Package deployer tool helps to create a single package that can contain multiple packages, master data files, code, and able to contains almost most of the required elements to create a single package on which we can show custom Html to describe details about the package.

 

We can download the Package Deployer using PowerShell from below link

https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/download-tools-nuget

For creating package using visual studio we need package deployer template you can download it from below site

https://marketplace.visualstudio.com/items?itemName=DynamicsCRMPG.MicrosoftDynamicsCRMSDKTemplates

Run the CRMSDKTemplates.vsix to install the template for your visual studio.

After successful installation, create a new project of type CRM Package

In solution we have PkgFolder, Inside it we have:

Content -folder in which we can configure wizard’s html page to show information regarding package and company.

ImportConfig.xml – Configuration file for mapping data files and solutions.

Here we need to place our configdata and record files as well.

Below is the screenshot:

To create the data file use configuration migration tool of CRM SDK.

Update ImportConfig.xml by mentioned your files. Place the solution which you like to ship.

Update Html according to your needs.

Now Create one folder and place all the code which you found inside PackageDeployment tool.

Build the solution and copy PkgFolder and dll of the project and paste into newly created folder which has PackageDeployement files

Run PackageDeployer, add your orgainization credentials and you will get the deployer wizard as below

Untitled-design

Microsoft CRM Reporting RdlHelper Error in SSRS Report

ERROR WHILE LOADING CODE MODULE ‘MICROSOFT.CRM.REPORTING.RDLHELPER’. COULD NOT LOAD FILE OR ASSEMBLY ERROR IN REPORT INSIDE DYNAMICS 365

 

Today I found this issue when trying to compile a FetchXML-based report in Visual Studio 2015 I got an error. So this story starts when I downloaded a working rdl file from MS CRM D365 and made some minor changes in it inside the visual studio. I was trying to preview this existing report in Visual Studio 2015 I got this following error:

After banging my head for some time, I found that this issue occurred due to the Assembly version of Microsoft.Crm.Reporting.RdlHelper,

TO FIX THIS ISSUE FOLLOW THE BELOW STEPS:
  1. Click on Report rdl file in solution explorer.
  2. Go to the Report section in the header in visual studio.
  3. Click on Report Properties, It will open property section.

Now go to References Tab and browse to the correct version of the assembly in the BidExtensions folder, even if the Microsoft.Crm.Reporting.RdlHelper is listed, it may be that this is the wrong version…

The earlier version of Microsoft.Crm.Reporting.RdlHelper was 7.0.0.0 so we need to update it to 9.0.0.0 in my case.

In our case it was located here C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Crm.Reporting.RdlHelper\v4.0_9.0.0.0__31bf3856ad364e35

although the exact location will depend on which version of the helper you have installed.

Remove any pre-existing references (which are not necessary or maybe different version of the dll).

I hope this will help you in solving your issue, signing off!