Application Insights无法正常工作 - 套接字异常

时间:2015-02-03 14:09:07

标签: windows-store-apps azure-application-insights

我已经在我的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开发机器

感谢您的建议。

1 个答案:

答案 0 :(得分:2)

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

见相关: An attempt was made to access a socket in a way forbidden by its access permissions

我让拥有说明的团队在此处更新了他们的页面:http://azure.microsoft.com/en-us/documentation/articles/app-insights-windows-monitor-usage-crashes/,因此,如果您按照这些说明操作,则会专门检查此设置。 (他们调查过,似乎windows phone silverlight是现在默认启用此设置的唯一模板,默认情况下所有当前模板都有网络访问权限?)