Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
I try to use the Windows Mobile Broadband API in managed code with C#, First I convert the Mbnapi.tlb to Mbnapi.dll with .net tool tlbimp.exe, After that I create the console project in C# with Visual Studio 2010 and I add reference of Mbnapi.dll in my project, when i write this code simple I have this exception :

MbnConnectionManager mcm = new MbnConnectionManager();
IMbnConnectionManager icm = (IMbnConnectionManager)mcm;
IMbnConnection[] connections = (IMbnConnection[])icm.GetConnections();

Unfortunately they not work very well. I have this exception in line 3 :

Element not found. (Exception from HRESULT: 0x80070490)
Posted 6-Jul-11 0:28am
Sheer_123 at 18-Jul-11 8:43am
I get the exact same problem, does anyone have a solution?
mehmet6parmak at 25-Jul-11 5:46am
i get the exception too
bensonjwl at 6-Oct-14 3:26am
I got this exception as well. But it works well sometimes. Does anyone knows why??

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Do you have registered devices in your system?
Try command line: netsh mbn show interfaces

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Mobile
Web03 | 2.8.150302.1 | Last Updated 16 Jan 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100