Share via

FileNotFound exception when loading Interop.MbnApi.dll

BorderKeeper 1 Reputation point
2022-03-18T15:44:34+00:00

Hello I work for Jamf and we are developing a Security app on Windows that communicates with MobileBroadband Windows API. My colleagues are using both Windows 10 and Windows 11, but I am the only one who is getting this error.

When I try to access MbnInterfaceManager class in the app both when debugging in VS and when the app starts up normally I get following error:
Retrieving the COM class factory for component with CLSID {BDFEE05B-4418-11DD-90ED-001C257CCFF1} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E).

This has started happening around a month ago some days before February 21st after a large Windows 11 update. I do not know what the error means in detail but the DLL I am using and the machine are both 64-bit and should be (and were in the past) loadable.

The only main difference I can think of between my machine and my colleagues is that I am using my desktop personal computer, whilst they are using a laptop. Could it be that Windows 11 has stopped including relevant libraries to support MobileBroadband discovery on desktop environments?

Below code is enough to get the exception:
using MbnApi;

var mbnInterfaceManagerClass = new MbnInterfaceManager();

Let me know if you want the DLL file for inspecting as well, but I could not find anything wrong with it.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. BorderKeeper 1 Reputation point
    2022-03-18T15:46:51.25+00:00

    Also any question on how to debug this issue further would be much appreciated. It could be that the DLL is somehow wrong, but my machine is similar enough to my colleagues (and it worked in the past) that I chose to blame Windows 11 update instead.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.