[UWP]在为Windows 10手机开发UWP应用程序时观察到频繁的异常。 [英] [UWP]Frequent exception observed while developing UWP app for windows 10 phone.

查看:53
本文介绍了[UWP]在为Windows 10手机开发UWP应用程序时观察到频繁的异常。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在为Windows 10手机开发UWP应用程序时经常出现异常。

abc在0x76E94CB7(KernelBase.dll)中抛出异常.exe:0x40080201:WinRT发起错误(参数:0x80072EE7,0x00000032,0x039CF018)。

System.Net.Http.HttpRequestException:net_http_client_execution_error ---> System.Exception:找不到与此错误代码关联的文本。
$


无法解析服务器名称或地址。

HttpRequest在第一次尝试时工作正常,但在后续调用中失败。当我们在应用程序的发布模式下设置VS2015时会观察到这种行为。在调试模式下,它工作正常。 

The HttpRequest works fine in first attempt, but it fails in subsequent calls. And the behavior is observed when we set VS2015 in release mode for the app. In debug mode it works fine. 

推荐答案

Hi TubeInc,

Hi TubeInc,

欢迎
到开发通用Windows应用论坛!

请阅读粘贴帖子,尤其是

发布指南:主题行标签

Windows 10 SDK和工具的已知问题 

Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools 

你说HttpRequest在VS2015的发布模式下抛出异常,但是你没告诉我你的操作系统版本,你的Windows手机版本和项目的目标版本。您能否稍后向我提供版本信息?

我在VS2015中制作了一个简单的样本,目标是使用
来构建10586和构建14393
System.Net.Http.HttpClient
发送获取请求在windows phone中测试这个问题,它有一个版本的windows 10,build 15063和build 14393.这是发布模式,应用程序没有抛出任何异常。

那么你能提供一个样本吗?能为我重现这个问题吗?您可以从项目中删除敏感信息,只需创建一个简单的项目即可重现您的问题。您可以将此示例上传到OneDrive并在此处发布链接。

You said the HttpRequest throws exception when in the release mode in VS2015 but you didn’t tell me your OS version, the version of your windows phone and the target version of your project. Could you offer me the information of version later?
I made a simple sample in VS2015 targeting  windows 10, build 10586 and build 14393 using System.Net.Http.HttpClient to send a get request to test this issue in windows phone which has a version of windows 10, build 15063 and build 14393. It was release mode and the app didn’t throw any exception.
So could you provide a sample which can reproduce the issue for me? You can delete the sensitive information from your project and just made a simple project to reproduce your problem. You can upload this sample to the OneDrive and post link here.

最好的问候,

Xavier Eoro

Xavier Eoro


这篇关于[UWP]在为Windows 10手机开发UWP应用程序时观察到频繁的异常。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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