madd0/AzureStorageDriver

FormatException when creating a connection with UseHttps set to false

Closed this issue · 2 comments

When you create a connection, by default it sets UseHttps to false. It then stores the connection info in the connections.xml file and does not serialize UseHttps since it's a default value.

Then when you attempt to deserialize UseHttps, you get an empty string which throws a format exception when you try to convert it to a bool. By manually adding false to the connections file, or setting UseHttps to true in the UI, you can get around this error.

Update StorageAccountProperties.UseHttps to pull out the XElement value, and then manually call Bool.TryParse on it to avoid this problem.

What version of the driver and LinqPad are you using? You seem to be describing issue #4 which was corrected in version 1.0.1 of the driver.

It appears as though the 'update' process for the LinqPad drivers is not working properly. It wasn't until I uninstalled the AzureStorage driver and reinstalled it that I got the 1.0.1 driver. The install page just says 'download again to update' and that didn't seem to work. I can't reproduce the problem right now, so it looks like it's been fixed. Thanks!