This project is read-only.

Error in example?

Oct 5, 2010 at 9:51 AM
Edited Oct 5, 2010 at 9:52 AM

Hi I just stumpled upon your project when I was trying to make a sort of VPN application.

Anyway I tried to learn by looking at your examples that goes with the SDK. I think there's a few errors in the "GetActiveConnectionIPAddress" project because it doesn't run well. The GetAdressButton never gets enabled and it's not possible to get the IP adress.

After some changes it ran well though.


if (connection.EntryId == (Guid)((ComboBoxItem)this.ConnectionsComboBox.SelectedValue).Value)


if (connection.EntryId == (Guid)((ComboBoxItem)this.ConnectionsComboBox.SelectedItem).Value)




this.GetAddressButton.Enabled = this.ConnectionsComboBox.SelectedIndex > 1;


this.GetAddressButton.Enabled = this.ConnectionsComboBox.SelectedIndex >= 1;


This so the first connection could be selected.


But I have a question though, why do I keep getting prompted for cs-files when I'm trying to step through the code?

Oct 5, 2010 at 2:17 PM

Ah, thanks for the info about the examples, I'll get them fixed up.

Maybe you're trying to step into the DotRas code? The examples don't directly reference the DotRas project due to problems once they're installed on the target machine. Though I think I used a debug version of the assembly when I updated it earlier, guess I need to switch that to release as well.