WlanSetProfileEapXmlUserData - The network connection profile is corrupted

Oct 30, 2015 at 3:18 PM
Edited Oct 30, 2015 at 3:20 PM
Having problem with Enterprize wifi configurations. Wifi profile is created correctly using WlanSetProfile, but call of WlanSetProfileEapXmlUserData(clientHandle, interfaceGuid, profileName, SetEapUserDataMode.WlanSetEaphostDataAllUsers, __userCredentials__ , IntPtr.Zero) fails on some Windows 7 computers with error "The network connection profile is corrupted " All hotfixes/updates for windows are installed. Here is example of xml of __userCredentials__ <?xml version="1.0" ?> <EapHostUserCredentials xmlns="http://www.microsoft.com/provisioning/EapHostUserCredentials" xmlns:eapCommon="http://www.microsoft.com/provisioning/EapCommon" xmlns:baseEap="http://www.microsoft.com/provisioning/BaseEapMethodUserCredentials"> <EapMethod> <eapCommon:Type>25</eapCommon:Type> <eapCommon:AuthorId>0</eapCommon:AuthorId> </EapMethod> <Credentials xmlns:eapUser="http://www.microsoft.com/provisioning/EapUserPropertiesV1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:baseEap="http://www.microsoft.com/provisioning/BaseEapUserPropertiesV1" xmlns:MsPeap="http://www.microsoft.com/provisioning/MsPeapUserPropertiesV1" xmlns:MsChapV2="http://www.microsoft.com/provisioning/MsChapV2UserPropertiesV1"> <baseEap:Eap> <baseEap:Type>25</baseEap:Type> <MsPeap:EapType> <MsPeap:RoutingIdentity>BAC56623-90B2-4602-B416-7C60E23A395C</MsPeap:RoutingIdentity> <baseEap:Eap> <baseEap:Type>26</baseEap:Type> <MsChapV2:EapType> <MsChapV2:Username>BAC56623-90B2-4602-B416-7C60E23A395C</MsChapV2:Username> <MsChapV2:Password>eUgtWSg6QyRLLTM4dj1TKCpdXShlajFfUF5kX1JlfC0=</MsChapV2:Password> <MsChapV2:LogonDomain></MsChapV2:LogonDomain> </MsChapV2:EapType> </baseEap:Eap> </MsPeap:EapType> </baseEap:Eap> </Credentials> </EapHostUserCredentials> Can anybody help with this?