异常下载Azure的斑点 [英] Exception Downloading Azure Blob

查看:164
本文介绍了异常下载Azure的斑点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有时无法在本地调试时从Azure的Blob存储下载。我有我上传了一个静态的文件,然后在测试过程中下载。我可以下载很多次成功,但有时当我打电话DownloadToFile,它阻止了一会儿,创建一个具有正确名称的0KB文件,然后抛出一个异常说:服务器遇到一个内部错误,请过一段时间后再试。

I am sometimes unable to download from an Azure blob storage when debugging locally. I have a static file that I uploaded and then download it during testing. I can download it many times successfully, but sometimes when I call DownloadToFile, it blocks for a while, creates a 0kb file with the correct name, then throws an exception saying "Server encountered an internal error. Please try again after some time".

在此之后,我不能再除非我删除并重新上传文件下载。在此期间,没有发生code的变化。

After this, I cannot download again unless I delete and upload the file again. No code changes occur during this time.

该内部异常是一个500错误与-2146233088的HRESULT。

The inner exception is a 500 error with an HResult of -2146233088.

推荐答案

的HResult -2146233088是例外,这样没有说太多的默认值,但一些谷歌上搜索后,好像它几乎总是与MS SQL Server关联,所以我觉得这是它采用MS SQL Server的本地Azure存储模拟器的问题。

HResult -2146233088 is the default value for exceptions so that doesn't say much, but after some googling it seems like it's almost always associated with MS SQL Server, so I think this is an issue with the local Azure storage emulator which uses MS SQL Server.

尝试升级到的Azure SDK 1.7(它使用SQL Server 2012的前preSS),如果你有没有准备好,然后再尝试从一个真正的Blob存储上下载云中的数据,以确保这个问题实际上是当地的模拟器。

Try upgrading to Azure SDK 1.7 (which uses SQL Server 2012 Express) if you haven't already, and then try to download data from a real blob storage on the cloud to make sure the problem is actually in the local emulator.

这篇关于异常下载Azure的斑点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆