Thanks for the updated code, but I see some problems with the sample code you recently provided.
1. It does not actually validate that the authentication was successful:
private void Login_button_Click(object sender, EventArgs e)
//set the credentials
string sfUrl = this.url.Text;
string username = this.username.Text;
string password = this.password.Text;
helper.SignIn(username, password, sfUrl);
The above simply makes the auth request and then enables the other buttons.
2. I do not think auth is working STILL because when I click the button "List data" I get an error:
An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in System.Runtime.Serialization.dll
This code causes that error: NewsItems rolesData = (NewsItems)rolesSerializer.ReadObject(ms);
It appears that the object is empty which means auth failed.
I am going to try a few things, but do you have any further tips?