我一直在尝试通过我的计算机的Azure存储模拟器创建表格。我可以只使用WindowsAzure.Storage的NuGet版本6.2.0一个非常简单的程序重现问题:在Azure存储模拟器中创建表格会产生HTTP 500错误
using Microsoft.WindowsAzure.Storage;
namespace StorageEmulatorTest
{
internal class Program
{
private static void Main(string[] args)
{
var cloudStorageAccount = CloudStorageAccount.Parse("UseDevelopmentStorage=true");
var cloudTableClient = cloudStorageAccount.CreateCloudTableClient();
cloudTableClient.GetTableReference("JohnnyTest").CreateIfNotExists();
}
}
}
其25秒钟后,这将引发Microsoft.WindowsAzure.Storage.StorageException
类型的异常,只有这条消息:
The remote server returned an error: (500) Internal Server Error.
我曾尝试:
- 确保我WindowsAzure.Storage NuGet包是最新的版本(6.2.0)。
- 重新安装在Azure SDK的VS2015 2.8.1(并确保它是最新版本)
- 停车,结算,通过Azure存储模拟器的命令行工具INITING的Azure存储模拟器(似乎做工精细,无错误)
- 通过异常的“.InnerException.Response.GetResponseStream()”读取Web响应的流。这会失败,并显示“流不可读”的异常。
- 重新启动我的机器(绝望踢)
我的锦囊已所剩无几。有没有人遇到过这个问题?
请用'UseDevelopmentStorage = true; DevelopmentStorageProxyUri = http://127.0.0.1;'试试。 –
感谢您的想法。但是,它没有改变行为。 –