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 5-Jul-11 23:28pm
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

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)

  Print Answers RSS
0 CPallini 405
1 Sergey Alexandrovich Kryukov 262
2 OriginalGriff 165
3 George Jonsson 134
4 Richard MacCutchan 110
0 OriginalGriff 6,344
1 Sergey Alexandrovich Kryukov 5,890
2 CPallini 5,175
3 George Jonsson 3,559
4 Gihan Liyanage 2,522

Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 16 Jan 2012
Copyright © CodeProject, 1999-2014
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