Error when adding a site with french settings

Feb 10, 2010 at 10:14 AM

Hello and thanks for your great work.

I'm using the 2.5 version of SPDevExplorer with Visual Studio 2008 with french settings.

When i try to connect to a site, i get the following error :

"Failed to retrieve the current version of the SPDevExplorer web service on server 'http://mysite' probably because you are not authorized to access the web service. The following exception is thrown: "input string was not in a correct format ""

While debugging the project i found the problem in SiteExplorer.Util.cs  lines 112 & 113. Webservice versions use dot as decimal separator whereas Double.Parse expects a comma (with french settings).

With the fallowing lines, all is ok.

double webServiceVersion = double.Parse(webServiceVersionAsString.Replace(",", "."), new System.Globalization.CultureInfo("en-US", false));
double requiredWebServiceVersion = double.Parse(SPDevExplorer.AddInVersionNumber.RequiredWebServiceVersionNumber.Replace(",", "."), new System.Globalization.CultureInfo("en-US", false));