1
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年安装的,现在这是行不通的。而这个代码在模拟器上工作,但不在设备上。

+0

什么是异常和堆栈跟踪? – thumbmunkeys

+0

它没有给出具体的异常的实际问题是,否则我可以解决这个问题:)它从程序抛出进入这里后突然:#如果DEBUG && DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION UnhandledException + =(发件人,E)=> { 如果! (global :: System.Diagnostics.Debugger.IsAttached)global :: System.Diagnostics.Debugger.Break(); }; #endif @thumbmunkeys –

+0

异常有一个类型,例如。 'NullReferenceException',类型对于分析问题非常重要 – thumbmunkeys

回答

1

看来有一个bug,尝试更新您的天蓝色的SDK

+0

它仍然不起作用相同的错误和”blobClient.ParallelOperationThreadCount = 1;“是绿色下划线:“CloudBlobClient.ParallelOperationThreadCount已过时:使用DefaultRequestOptions.ParallelOperationThreadCount”当我尝试建议时,仍然有相同的错误继续 –

+0

@Thomas一个错误,我认为它是我的,因为它几乎与我的相同 – thumbmunkeys