mikefourie-zz / MSBuildExtensionPack

MIT License
366 stars 104 forks source link

BizTalkSendHandler task cannot update the default send handler #40

Closed TWolverson closed 6 years ago

TWolverson commented 8 years ago

To update a BizTalk artefact, my understanding is that TaskAction="Create" must be used, which deletes and recreates the specified artefact with the specified properties. This doesn't work if:

Doing this causes a mysterious error message (NullReferenceException: Object reference not set to an instance of an object) to be emitted to the console, and the deployment to be aborted.

I've inspected the code to identify what the problem is here and can PR when I have time. At a minimum, I think this condition should supply a sensible error message. I'm not sure this can be adequately resolved given the way BizTalk works i.e. default handlers cannot be deleted.

mikefourie-zz commented 8 years ago

IIRC we kept a dummy sendhandler around at all times that was just used to hold the default while we tore down and then recreated artifacts. I agree, the error you are getting is not ideal.