You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EXPECTED: Image is successfully stored and then displayed in 3 variations
ACTUAL: Image is successfully stored, but image cannot be retrieved and results in 3 404s
Try to access the image without a query string
EXPECTED: Image loads
ACTUAL: Still a 404
Considering the issue I am having here, I decided to see if I could get the samples working. No luck. With the linked problem I get 404 for anything in Azure with a query string. With the sample, I always get a 404.
The text was updated successfully, but these errors were encountered:
Looks like the problem comes down to the sample specifying connectionString="BlobConn" in the AzureReader <plugin> configuration and trying to migrate the sample to AzureReader2. The AzureReader's (1.x) virtual path provider uses CloudStorageAccount.FromConfigurationSetting() (which looks up the connection string in Azure), but the AzureReader2 virtual path provider uses CloudStorageAccount.Parse() (because FromConfigurationSetting() doesn't exist in Azure 2.x), which expects the final connection string itself, not a lookup-key.
For 1.x/2.x compatibility, AzureReader2 should be using CloudConfigurationManager.GetSetting() in order to look up the connection string, and then pass that value to CloudStorageAccount.Parse(). When I try this in AzureSamples, things still fail, however, because it doesn't seem to be detecting that it's in an AppFabric environment. This might just be configuration weirdness on my machine, however. Adding in a non-Azure placeholder in AzureWebImages' web.config like this:
... does do the trick, but really shouldn't be necessary. (It also should get ignored if things are working correctly, so it might be worth putting in place to help the sample succeed.)
EXPECTED: Image is successfully stored and then displayed in 3 variations
ACTUAL: Image is successfully stored, but image cannot be retrieved and results in 3 404s
EXPECTED: Image loads
ACTUAL: Still a 404
Considering the issue I am having here, I decided to see if I could get the samples working. No luck. With the linked problem I get 404 for anything in Azure with a query string. With the sample, I always get a 404.
The text was updated successfully, but these errors were encountered: