2

我在我的 Windows 商店应用程序中添加了 Application Insights,在输出中我有很多行出现异常。

我有 ApplicationInsight 消息:

Application Insights Telemetry: {"ver":1,"name":"Microsoft.ApplicationInsights.PageView",.............}

例外情况,例如:

A first chance exception of type 'System.Net.WebException' occurred in mscorlib.dll
A first chance exception of type 'System.Net.WebException' occurred in System.dll
A first chance exception of type 'System.Net.InternalException' occurred in System.dll
A first chance exception of type 'System.Net.InternalException' occurred in System.dll
A first chance exception of type 'System.Net.WebException' occurred in mscorlib.dll
A first chance exception of type 'System.Net.WebException' occurred in mscorlib.dll
A first chance exception of type 'System.TimeoutException' occurred in Microsoft.ApplicationInsights.winmd
A first chance exception of type 'System.TimeoutException' occurred in mscorlib.dll
A first chance exception of type 'System.Net.InternalException' occurred in System.dll
A first chance exception of type 'System.Net.InternalException' occurred in System.dll

异常消息是:

Message "An attempt was made to access a socket in a way forbidden by its access permissions 23.101.68.210:443"

我真的不知道是什么导致了这个异常。我尝试关闭防火墙但没有成功。我尝试在 VS 2013 中使用更新 4 开发应用程序,机器使用 Windows 2012 R2

感谢您的建议。

4

1 回答 1

2

如果这是在 Windows 商店应用程序上,您是否打开了清单中允许应用程序发出出站网络请求的功能?

请参阅相关: 尝试以访问权限禁止的方式访问套接字

我让拥有说明的团队在这里更新了他们的页面:http: //azure.microsoft.com/en-us/documentation/articles/app-insights-windows-monitor-usage-crashes/,这样如果你按照这些说明,它会专门要求检查此设置。(他们调查了,似乎windows phone silverlight是现在唯一默认关闭此设置的模板,所有当前模板默认都打开网络访问?)

于 2015-02-05T00:08:46.230 回答