简体   繁体   English

如何使watwp.codeplex.com NuGet Phone.Storage.Sample应用程序正常工作?

[英]How to make the watwp.codeplex.com NuGet Phone.Storage.Sample application work?

I am interested in working with blob storage from a Windows Phone app. 我对使用Windows Phone应用程序中的Blob存储感兴趣。

The Windows Azure Toolkit for Windows Phone should enable this. Windows Phone的Windows Azure工具包应启用此功能。 http://watwp.codeplex.com/ http://watwp.codeplex.com/

They have a sample application on NuGet which you install in a default WP application from VS, by running the command: 他们在NuGet上有一个示例应用程序,您可以通过运行以下命令将其安装在VS的默认WP应用程序中:

PM> Install-Package Phone.Storage.Sample, in the Package Manager Console PM>在Package Manager控制台中安装Package Phone.Storage.Sample

http://www.nuget.org/packages/Phone.Storage.Sample http://www.nuget.org/packages/Phone.Storage.Sample

The only configuration needed to run the app is to change the default navigation page in WMAppManifest.xml to "/Pages/StoragePage.xaml". 运行该应用程序所需的唯一配置是将WMAppManifest.xml中的默认导航页面更改为“ /Pages/StoragePage.xaml”。

But when I try to run this sample application in a default WP app from VS, I get the error: "The value for one of the HTTP headers is not in the correct format. RequestId:38df4766-0da8-4212-84a1-3da0c994a876 Time:2012-06-06T14:50:02.0209600Z" Any idea what to do to make it work? 但是,当我尝试在VS的默认WP应用程序中运行此示例应用程序时, 出现错误:“ HTTP标头之一的值格式不正确。RequestId:38df4766-0da8-4212-84a1-3da0c994a876时间:2012-06-06T14:50:02.0209600Z“您知道怎么做才能使其正常工作吗?

As you just made one changes in your sample, I believe you are using Azure Storage Emulator. 当您在示例中进行了一次更改时,我相信您正在使用Azure存储模拟器。 Have you verified if Azure Storage Emulator is running. 您是否验证过Azure存储模拟器是否正在运行。 Also be sure to have a physical network in your main machine rather then virtual network to connect as i have seen such problem with virtual network and loopback address. 另外,请确保在您的主机中有一个物理网络,而不是虚拟网络可以连接,因为我已经看到虚拟网络和环回地址存在这种问题。

It is very much machine specific issue as I just tried to exact same step with no error. 这是非常特定于机器的问题,因为我只是尝试完全相同的步骤而没有错误。 There could be any random error for this issue and while you try to restart the machine, re-install sdk and other components and it will go away. 此问题可能有任何随机错误,当您尝试重新启动计算机时,重新安装sdk和其他组件,它将消失。 I can help you to find some ways to trouble shoot it: 我可以帮助您找到一些解决问题的方法:

When you run this application in WP emulator, while using Development storage the HTTP request pass through localhost:PORT/storage_container means the network traffic is on localhost so you can run fiddler to capture traffic on 127.0.0.1 (by default it is not set so you need to configure it. Once you have network trace you can find the root cause however it would hard to find the fix, as i have seen in past. 当您在WP模拟器中运行此应用程序时,在使用开发存储时,HTTP请求通过localhost:PORT / storage_container传递,意味着网络流量位于localhost上,因此您可以运行fiddler捕获127.0.0.1上的流量(默认情况下未设置,因此您需要配置它。一旦有了网络跟踪,就可以找到根本原因,但是,就像我过去看到的那样,很难找到解决方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM