List<Person> friends = new List<Person>();
StorageCredentials credential = new StorageCredentials(x, x);
// Retrieve storage account from connection string.
CloudStorageAccount storageAccount = new CloudStorageAccount(credential, true);
// Create the blob client.
CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
// Retrieve reference to a previously created container.
CloudBlobContainer container = blobClient.GetContainerReference("cryptochat");
在“CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();”创建blob客户端时,申请休息,在这里输入:Windows Phone 8.1 UNHANDLED_EXCEPTION
#if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
UnhandledException += (sender, e) =>
{
if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break();
};
#endif
唯一的例外是:{"The argument 'ParallelOperationThreadCount' is larger than maximum of '64'\r\nParameter name: ParallelOperationThreadCount"}
此代码是在Visual Studio 2013的工作,然后我重新安装了Windows 10和2015年安装的,现在这是行不通的。而这个代码在模拟器上工作,但不在设备上。
什么是异常和堆栈跟踪? – thumbmunkeys
它没有给出具体的异常的实际问题是,否则我可以解决这个问题:)它从程序抛出进入这里后突然:#如果DEBUG && DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION UnhandledException + =(发件人,E)=> { 如果! (global :: System.Diagnostics.Debugger.IsAttached)global :: System.Diagnostics.Debugger.Break(); }; #endif @thumbmunkeys –
异常有一个类型,例如。 'NullReferenceException',类型对于分析问题非常重要 – thumbmunkeys