BHoM / RDF_Prototypes

Research project of the Cluster of Excellence "Integrative Computational Design and Construction for Architecture" (IntCDC) https://www.intcdc.uni-stuttgart.de/ **Project Name**: Knowledge Representation for Multi-Disciplinary Co-Design of Buildings. https://www.intcdc.uni-stuttgart.de/research/research-projects/rp-20/
GNU Lesser General Public License v3.0
9 stars 4 forks source link

PullFromGraphDB component fails to load assembly through Grasshopper #93

Closed polnischfrosch closed 1 year ago

polnischfrosch commented 1 year ago

Description:

PullFromGraphDB component fails to load assembly. Only occurs when called from Grasshopper, test for PullFromGraphDB method is working fine.

Exception from Grasshopper component: image

Working method from test: image

Test files:

PullFromGraphDB.zip

alelom commented 1 year ago

The reason for this is that the reference "HtmlAgilityPack" (screenshot 1) is not copied in the AppData/BHoM/Assemblies folder, so it cannot be found when the functionality is used via Grasshopper. We just need to add another PostBuild event that copies the HtmlAgilityPack dll in AppData. Just need to copy one of the existing events and replace the name of the dll with the correct one. The name of the HtmlAgilityPack dll can be found in the nuget package reference.