Incorrect structure Size

Dec 16, 2011 at 10:23 AM


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:

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;
                MessageBox.Show("Conexão criada com sucesso");

I am using visual studio 2008 and c#.

Thank you!

Dec 17, 2011 at 4: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: