win10 rs4 更新后 DotRas 停止工作

DotRas stop working after win10 rs4 update

请帮我解决以下问题:

win10更新红石4后 以下代码序列停止工作:

  1. RasPhoneBook pbk = GetUserPhoneBook();
    1. RasEntry entry = RasEntry.CreateVpnEntry(ConnectionName, server, this.VpnStrategy, RasDevice.GetDeviceByName(this.DeviceName, RasDeviceType.Vpn));
    2. pbk.Entries.Add(entry);

错误出现在第三行3。 pbk.Entries.Add(条目);

错误信息是: 检测到不正确的结构大小。

StakTrace 是

在 DotRas.Internal.ThrowHelper.ThrowRasException(Int32 错误代码) 在 DotRas.Internal.RasHelper.SetEntryProperties(RasPhoneBook 电话簿,RasEntry 值) 在 DotRas.RasEntryCollection.InsertItem(Int32 索引,RasEntry 项) 在 DotRas.Design.RasCollection`1.Add(TObject 项目)

谢谢

RS4 中的 RAS API 发生了变化,看起来正在搞砸大量 VPN 产品(我 运行 在大约发布 17025 后遇到了 Insider Builds 的问题) https://support.f5.com/csp/article/K84747528

我不知道实际的 API 变化是什么,也不知道短期内有哪些解决方法(MS 知识库搜索没有找到任何有用的信息),但看起来 MS 终于承认了问题并希望在即将到来的 RS4 累积更新中解决它。