I'm migrating our database from MySQL to SQL Azure and the files and services hosted with another hosting provider to Windows Azure, we had migrated the databases and the Web Service without problems, but we are saving the password of our users as hashCode,
and the hashCode varies from my previous Web Service to my new Web Service under Windows Azure, for example the hashCode of the character "1" is -842352753 consuming the Web Service without Windows Azure, and running under Windows Azure the Web Service return
the hashCode 372029325, so we cannot validate our users.
Do you know a solution to solve this issue?
I'm not doing anything with SQL Azure yet, I'm testing the Web Services getting the hashCode of a string with a method like this:
string getData(string s)
{
return s.GetHashCode.ToString();
}
And I was consuming the Web Service in my client calling the method in the service with this code:
ServiceClient.getData("1");
Then the Web Service get me the hashCode of my string, in this case "1", I didn't use databases yet.
I guess that the variation of the hashCode is due of the version of Framework or the Architecture of the OS, but I don't know if the variation is due to the Web Service is running under Windows Azure, maybe this is happening, because the hashCode returned
varies if I run the Web Service Local or I run the Web Service under Windows Azure, both are running in my Laptop.
Thanks and greetings.
Adán Carrasco