Click here to Skip to main content
15,888,106 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

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
Comments
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

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900