请帮我解决以下问题:
win10更新红石4后,以下代码序列停止工作:
- RasPhoneBook pbk = GetUserPhoneBook();
- RasEntry entry = RasEntry.CreateVpnEntry(ConnectionName, server, this.VpnStrategy, RasDevice.GetDeviceByName(this.DeviceName, RasDeviceType.Vpn));
- pbk.Entries.Add(entry);
错误发生在第三行3. pbk.Entries.Add(entry);
错误消息是: 检测到不正确的结构大小。
StakTrace 是
在 DotRas.Internal.ThrowHelper.ThrowRasException(Int32 错误代码) 在 DotRas.Internal.RasHelper.SetEntryProperties(RasPhoneBook phoneBook, RasEntry 值) 在 DotRas.RasEntryCollection.InsertItem(Int32 索引, RasEntry 项) 在 DotRas.Design.RasCollection`1.Add (TObject 项)
谢谢