C# {“The network connection profile is corrupted. (Exception from HRESULT: 0x800704B6)”} Connecting to Mobile Broadband Adaptor with MBN API

One possible cause of this error, The network connection profile is corrupted. (Exception from HRESULT: 0x800704B6), is that the SubscriberID is set incorrectly.

Microsoft have published the Schema Definition for the network connection profile

It is a 15 digit number that needs to be set to the IMSI number of your Mobile Broadband Adaptor


  tempProfile             
  false           
  IMSI NEEDS TO GO HERE           
  internet   
  

You can get the IMSI by opening the network connections window:

Network Connections

Right click on the mobile broadband adaptor and open the Properties window:

Mobile Broadband Adaptor Properties