# Problem when deploying a package with versions later than 2020

**URL:** <https://forum.dynamobim.com/t/problem-when-deploying-a-package-with-versions-later-than-2020/85635>\
**Category:** Developers\
**Tags:** revit, dynamo\
**Created:** [February 1, 2023, 1:17pm UTC](https://forum.dynamobim.com/t/problem-when-deploying-a-package-with-versions-later-than-2020/85635 "2023-02-01T13:17:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramoon\_Bandeira](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@Ramoon\_Bandeira](https://forum.dynamobim.com/u/Ramoon_Bandeira)\
**Post date:** [February 1, 2023, 1:17pm UTC](https://forum.dynamobim.com/t/problem-when-deploying-a-package-with-versions-later-than-2020/85635/1 "2023-02-01T13:17:14Z")

</div>

Hello.

I`m developing a custom package for the company i work for. It works perfectly for revit 2020.

But it doesn`t matter what i do, the package simply can not be loaded into dynamo versions for revit 2021, 2022 and 2023.

I`m creating a folder at %appdata%\Dynamo\Dynamo Revit%Dynamo Version%

Dynamo versions are:  
2.6 for Revit 2021  
2.12 for Revit 2022  
2.13 for Revit 2023

when i manually try to load my assembly from %appdata%\Dynamo\Dynamo Revit%Dynamo Version%\packages\MyPackage\MyPackage.dll dynamo says it couldn`t load the assembly.

On the notifications tab of dynamo i get the following message.Dynamo.Exceptions.LibraryLoadFailedException: Failed to load the library: MyPackage.dll

When i press show details it states the following:

Error generating the library: Mypackage.Dll  
Failed to import Mypackage.dll  
Exception of type ‘ProtoCore.BuildHaltException’ has been fired.

I`m going insane with this.

Any help?

Thank you all in advance

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [February 1, 2023, 1:56pm UTC](https://forum.dynamobim.com/t/problem-when-deploying-a-package-with-versions-later-than-2020/85635/2 "2023-02-01T13:56:22Z")

</div>

@Ramoon_Bandeira ,

For package management and deleting. Revit has to be closed!

KR

Andreas

---

<div class="post-metadata">

**Author:** ![Ramoon\_Bandeira](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@Ramoon\_Bandeira](https://forum.dynamobim.com/u/Ramoon_Bandeira)\
**Post date:** [February 1, 2023, 2:00pm UTC](https://forum.dynamobim.com/t/problem-when-deploying-a-package-with-versions-later-than-2020/85635/3 "2023-02-01T14:00:47Z")

</div>

I actually build the solution, which compiles and copy all the dependencies to the correct folder, before opening revit.  
So i guess that unfortunately this is not the problem

---

<div class="post-metadata">

**Author:** ![solamour](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/solamour/32/153516_2.png) [@solamour](https://forum.dynamobim.com/u/solamour)\
**Post date:** [February 1, 2023, 2:36pm UTC](https://forum.dynamobim.com/t/problem-when-deploying-a-package-with-versions-later-than-2020/85635/4 "2023-02-01T14:36:30Z")

</div>

@Michael_Kirschner2 any thoughts on this one?

---

<div class="post-metadata">

**Author:** ![Michael\_Kirschner2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/michael_kirschner2/32/75576_2.png) [@Michael\_Kirschner2](https://forum.dynamobim.com/u/Michael_Kirschner2)\
**Post date:** [February 1, 2023, 3:08pm UTC](https://forum.dynamobim.com/t/problem-when-deploying-a-package-with-versions-later-than-2020/85635/5 "2023-02-01T15:08:38Z")

</div>

debug Dynamo to see where the build halt exception is thrown - this will probably make it easier to reason about what is going wrong when importing.

We have some tasks in the backlog to make zt import failures contain better logging.

---

<div class="post-metadata">

**Author:** ![Ramoon\_Bandeira](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@Ramoon\_Bandeira](https://forum.dynamobim.com/u/Ramoon_Bandeira)\
**Post date:** [February 1, 2023, 5:30pm UTC](https://forum.dynamobim.com/t/problem-when-deploying-a-package-with-versions-later-than-2020/85635/6 "2023-02-01T17:30:26Z")

</div>

How to debug a solution that only contains node models?  
The exception is not triggered in visual studio. It never reaches the point where we start debugging the nodes from the solution
