Click here to Skip to main content
13,053,345 members (58,012 online)
Rate this:
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 :

<br />
MbnConnectionManager mcm = new MbnConnectionManager();<br />
IMbnConnectionManager icm = (IMbnConnectionManager)mcm;<br />
IMbnConnection[] connections = (IMbnConnection[])icm.GetConnections();<br />

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

<br />
Element not found. (Exception from HRESULT: 0x80070490)<br />
Posted 5-Jul-11 23:28pm
Sheer_123 18-Jul-11 8:43am
I get the exact same problem, does anyone have a solution?
mehmet6parmak 25-Jul-11 5:46am
i get the exception too
bensonjwl 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

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