This project is read-only.

Incorrect structure Size

Dec 16, 2011 at 11:23 AM

Hello!

I have the project to create a connection VPN using dotras. My project works fine in windows 7, but when running on windows xp 32 bit gives the following error: detected an incorrect structure

size. I used your tutorial to create the VPN connection.

The code is as follows:

this.rasPhoneBook1.Open();
RasEntry entry = RasEntry.CreateVpnEntry(nome_connection, server, RasVpnStrategy.Default, RasDevice.GetDeviceByName(("PPTP"), RasDeviceType.Vpn, false));
                entry.Options.RemoteDefaultGateway = false;
                entry.Options.IPv6RemoteDefaultGateway = false;
                entry.NetworkProtocols.IPv6 = false;
                this.rasPhoneBook1.Entries.Add(entry);
                MessageBox.Show("Conexão criada com sucesso");

I am using visual studio 2008 and c#.

Thank you!

Dec 17, 2011 at 5:18 AM

If you're getting a RasException with ErrorCode 632 you need to read the "Choosing Your Build" in Getting Started within the help documentation included with the SDK.

There's also a good description of what causes that here: http://dotras.codeplex.com/discussions/281397