System.ComponentModel.Win32Exception: 'The network connection profile is corrupted'

I try to run the ManagedWifi and faced one exceptional case in WlanApi.cs and I don't understand. Can someone please help explain to me? The expcetional case is happened in code below:

public Wlan.WlanReasonCode SetProfile(Wlan.WlanProfileFlags flags, string 
 profileXml, bool overwrite)
 {
    Wlan.WlanReasonCode reasonCode;

    Wlan.ThrowIfError(                   
    Wlan.WlanSetProfile(client.clientHandle, info.interfaceGuid, flags, 
    profileXml, null, overwrite, IntPtr.Zero, out reasonCode));
    return reasonCode;
 }

This is the error messaged: System.ComponentModel.Win32Exception: 'The network connection profile is corrupted'