dyn365-ce-vsts-tasks icon indicating copy to clipboard operation
dyn365-ce-vsts-tasks copied to clipboard

NullReferenceException on Plugin registration

Open kazur97 opened this issue 2 years ago • 6 comments

Task Version: 12.* Registration Type: Upsert Solution Name: None Mapping File Path: None Assembly Path: From Pipeline Artifacts Connection String: From secret variable

When running the MSCRM Plugin Registration task, it fails with the error "Object reference not set to an instance of an object". No further info is given.

kazur97 avatar Aug 30 '21 10:08 kazur97

@kazur97, have you been able to find a solution? I'm struggling with a similar one, but it just gives me a generic error. image

When I run the powershell script stand alone it works great.

Task Version: 12.* Registration Type: Upsert Solution Name: None Mapping File Path: From Pipeline Artifacts Assembly Path: From Pipeline Artifacts Connection String: From secret variable

Millberg avatar Jan 05 '22 14:01 Millberg

@Millberg, unfortunately not, but haven't worked on it for a while

kazur97 avatar Jan 19 '22 07:01 kazur97

@Millberg Could you pls share the mapping file structure? I'm trying to use this but it only updates the assembly but not the new plugin class. SO i guess the mapping file is required here?

balatroy avatar Mar 02 '22 16:03 balatroy

@Millberg Could you pls share the mapping file structure? I'm trying to use this but it only updates the assembly but not the new plugin class. SO i guess the mapping file is required here?

I used the GetPluginRegistration ps script to get the mapping file structure. I highly recommend that method because then you will get the correct id's on the existing steps/images

Millberg avatar Mar 03 '22 09:03 Millberg

@kazur97 are you still having an issue with this?

WaelHamze avatar Apr 01 '22 17:04 WaelHamze

@kazur97 are you still having an issue with this?

Just tested it again, still the same error image

Back when I created the issue, I tried this on my local machine and on the build server and it worked just fine

kazur97 avatar Dec 01 '22 07:12 kazur97