SecureBlackbox 16: WinRT: troubleshooting connection failed exceptions

Note: This article applies only to SecureBlackbox Legacy. For future development please consider using the latest version.

This article shows how to troubleshoot the following error in WinRT applications:

Connection failed (error code is -2147024891)

The error code above ( 0x80070005 ) is an access denied error. You might get this error when connecting to network resources (e.g., by using the FTP, HTTP, or SSH components) if the security policy of your WinRT/Metro application is not explicitly configured to allow for networking-related operations.

If you are coming across the above issue, double-click the Package.appxmanifest entry in the Solution Explorer of your WinRT project in Visual Studio. Choose the Capabilities tab on the form that appears. Check that the following options are enabled:

  • Internet (Client): If your application is expected to set up network connections to internet servers.
  • Internet (Client & Server): If your application is expected to establish connections to internet servers and accept incoming connections from other computers outside of a local network.
  • Private Networks (Client & Server): If your application needs to establish connections to servers residing in a local network.

We appreciate your feedback.  If you have any questions, comments, or suggestions about this article please contact our support team at