title: Create ikev2 profile using dotRas
body: <p>I've trying to create ikev2 with special options using doRas1.3  with no success giving error</p>
  <pre><code>'entry' contains invalid or conflicting settings. Please verify the settings are correct and try again.
  Parameter name: entry
  </code></pre>
  <p>My simple code</p>
  <pre><code>string vpnName = &quot;MyVPN&quot;;
          string destination = &quot;SERVER_ADDRESS&quot;;
          string username = &quot;test&quot;;
          string password = &quot;test123&quot;;
  
      try
      {
          RasPhoneBook phoneBook = new RasPhoneBook();
          string path = RasPhoneBook.GetPhoneBookPath(RasPhoneBookType.User);
  
          phoneBook.Open(path);
          RasEntry vpnEntry = RasEntry.CreateVpnEntry(vpnName, destination,
              RasVpnStrategy.IkeV2Only, 
              RasDevice.Create(vpnName, RasDeviceType.Vpn), 
              false);
        
          //vpnEntry.Options.UsePreSharedKey = false;
          vpnEntry.Options.UseLogOnCredentials = false  ;
          vpnEntry.Options.RequireMSChap2 = true;
          vpnEntry.Options.RequireEap = true;
          //vpnEntry.Options.RequireDataEncryption = true;
          //vpnEntry.Options.RequirePap = false  ;
          //  vpnEntry.Options.RequireMSEncryptedPassword = true;
          vpnEntry.Options.CacheCredentials = false;
  
          phoneBook.Entries.Add(vpnEntry);
  
          //update user credintials
          NetworkCredential myCred = new NetworkCredential(username, password, destination);
          vpnEntry.UpdateCredentials(myCred, true);
          bool isUpdated = vpnEntry.Update();
  
          Console.WriteLine(@&quot;Entry Changed &quot;);
  
      }
      catch (Exception ex)
      {
          Console.WriteLine(@&quot;ERROR: &quot; + ex.Message + &quot; Details: &quot; + ex.Source);
  
      }
  </code></pre>
  <p>I have created ikev2 profile using <strong>PowerShell</strong> using this commands and its working very fine</p>
  <pre><code>Add-VpnConnection -Name &quot;IKEv2&quot; `
      -ServerAddress &quot;111.222.184.117&quot; `
      -TunnelType &quot;IKEv2&quot; `
      -AuthenticationMethod &quot;EAP&quot; `
      -EncryptionLevel &quot;Maximum&quot; `
      -RememberCredential `
      
      
  Set-VpnConnectionIPsecConfiguration -Name &quot;IKEv2&quot; `
      -AuthenticationTransformConstants GCMAES256 `
      -CipherTransformConstants GCMAES256 `
      -DHGroup ECP384 `
      -IntegrityCheckMethod SHA384 `
      -PfsGroup ECP384 `
      -EncryptionMethod GCMAES256
  </code></pre>
  <p><strong>How to create ikev2 profile using dotRas as same as powershell profile settings?</strong></p>