BHM Load Error: Could not load assembly file ‘file:///C:\Program files (x86)\BizTalkHealthMonitor\MYHCQueries_MBVQueries.dll’ or one of its dependencies

This BHM load error regarding to MYHCQueries_MBVQueries.dll, that can may also occurs with MaintenanceRep.dll, is a very well-known problem/annoying issue that occurs after we install BizTalk Health Monitor or update it to a new version that will apply in all BizTalk versions (BizTalk Server 2016, 2013 R2, 2013 or 2010) and SO (Windows 10, Windows Server 2016, 2012 R2, 2012 and so on):

Could not load assembly file ‘file:///C:\Program files (x86)\BizTalkHealthMonitor\MYHCQueries_MBVQueries.dll’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

BHM Could not load assembly MYHCQueries_MBVQueries.dll

CAUSE

That is one of that times that BizTalk Server team did a great job. Not only throw the error but they also explain the problem and the solution to solve it.

This error when BHM tries to load the repository files downloaded from the Microsoft Download Center (DLC). BHM is using two repositories for this configuration, these repository files (MYHCQueries_MBVQueries.dll and MaintenanceRep.dll) can be blocked by OS when downloading from DLC and may cause this issue.

Solution

Again, the solution to this problem is also explained in the error window:

  • Close BHM
  • Go to BHM installation folder
    • The default path is C:\Program files (x86)\BizTalkHealthMonitor
  • Right-click in MYHCQueries_MBVQueries.dll and select “Properties” option

Select MYHCQueries_MBVQueries.dll Properties

  • You may see that the security warning at the bottom of the windows saying: “The file came from another computer and might be blocked to help protect this computer”
    • Check “Unblock” option and click “OK”

MYHCQueries_MBVQueries.dll Properties Security Warnings

  • Do the same steps for “MaintenanceRep.dll”

Once you have unblocked both files, you should no longer see the security warning when you go back into their properties and if you try to execute BHM again all the above-mentioned errors related to loading repositories should be resolved.

You may also find more details about this issue directly from BizTalk Health Monitor blog: BHM v3.2 – Errors While Loading Repositories.

Note:

  • If you have not yet installed BHM, you can also follow the above steps on the unzipped package prior to installing BHM.
Author: Sandro Pereira

Sandro Pereira lives in Portugal and works as a consultant at DevScope. In the past years, he has been working on implementing Integration scenarios both on-premises and cloud for various clients, each with different scenarios from a technical point of view, size, and criticality, using Microsoft Azure, Microsoft BizTalk Server and different technologies like AS2, EDI, RosettaNet, SAP, TIBCO etc.

He is a regular blogger, international speaker, and technical reviewer of several BizTalk books all focused on Integration. He is also the author of the book “BizTalk Mapping Patterns & Best Practices”. He has been awarded MVP since 2011 for his contributions to the integration community.

One Platform Operations, Monitoring and Analytics Software
BizTalk360

microsoft biztalk

Learn more

Over 500 customers across 30+ countries depend on BizTalk360

ServiceBus360

Azure service bus

Learn more

Start managing your Azure Service Bus namespaces in minutes

One Platform - Operations, Monitoring and Analytics Software
BizTalk360

microsoft biztalk

Learn more

Over 500 customers across 30+ countries depend on BizTalk360

One Platform - Operations, Monitoring and Analytics Software
ServiceBus360

Azure service bus

Learn more

Start managing your Azure Service Bus namespaces in minutes

Back to Top