turdeanu
turdeanu

Reputation: 45

DotRas stop working after win10 rs4 update

Please help me to solve the following problem:

After win10 update Red Stone 4 the following code sequence stops working:

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

the error occurs at the third line 3. pbk.Entries.Add(entry);

The error message is: An incorrect structure size was detected.

and the StakTrace is

at DotRas.Internal.ThrowHelper.ThrowRasException(Int32 errorCode) at DotRas.Internal.RasHelper.SetEntryProperties(RasPhoneBook phoneBook, RasEntry value) at DotRas.RasEntryCollection.InsertItem(Int32 index, RasEntry item) at DotRas.Design.RasCollection`1.Add(TObject item)

Thank you

Upvotes: 1

Views: 627

Answers (1)

Paul Browning
Paul Browning

Reputation: 46

There's been a change in the RAS API in RS4 that looks to be screwing up a significant number of VPN products (I was running into the issue with Insider Builds after about release 17025) https://support.f5.com/csp/article/K84747528

I don't know what the actual API changes were or what workarounds are available in the short term (MS knowledge base search is turning up nothing useful) but it does look that MS are finally acknowledging the issue and looking to resolve it in the upcoming RS4 Cumulative Updates.

Upvotes: 2

Related Questions