Troubleshoot Your Microsoft .NET and Silverlight Clients

This procedure provides troubleshooting information for the most common issues that occur when using Kaazing Microsoft .NET and Silverlight clients.

Before You Begin

This procedure is part of Checklist: Build Microsoft .NET and Silverlight Clients Using Kaazing WebSocket Gateway:

  1. Set Up Your Development Environment
  2. Interact with Kaazing WebSocket Gateway Using the WebSocket API
  3. Interact with Kaazing WebSocket Gateway Using the EventSource API
  4. Interact with Kaazing WebSocket Gateway Using the ByteSocket API
  5. Configure Automatic Connection
  6. Secure Your Microsoft .NET and Silverlight Client
  7. Display Logs for .NET and Silverlight Clients
  8. Troubleshoot Your Microsoft .NET and Silverlight Clients

Note: Learn about supported browsers, operating systems, and platform versions in the Release Notes.

To Troubleshoot Your Microsoft .NET and Silverlight Clients

The following are some things that can go wrong when using the .NET and Silverlight clients:

Debug Log Produces an Error

When debugging a Silverlight application from Visual Studio, the debug log gives you a disconnecting message or an error.

Cause

This message usually means that you are trying to debug a Silverlight application from Visual Studio and using the incorrect cross-site-constraint to connect to Kaazing Gateway services.

Action

A cross-site-constraint of * is required to connect to Kaazing Gateway services when debugging Silverlight applications from Visual Studio using a file:// based URL.

Delay to Initial Connection Request from the .NET Client

The initial WebSocket connection from the .NET client built using Kaazing client libraries for .NET and Silverlight is delayed by several seconds.

Cause

The delay may be caused by automatic proxy detection in Windows.

Action

To address this, if using Internet Explorer, choose Options > Connections tab > LAN Settings. Clear the Automatically Detect Settings checkbox and, if necessary, specify the proxy settings. In .NET applications, you can bypass the proxy settings by including the lineSystem.Net.WebRequest.DefaultWebProxy = null; beforethe client initiates the WebSocket connection. If your application requires a proxy, change the null value in this line to the default proxy or follow these instructions.

To get more troubleshooting information for your .NET and Silverlight clients, see Display Logs for .NET and Silverlight Clients.

.NET client has reached connection limit

The .NET client has reached a maximum connection limit per domain of two connections.

Cause

The Microsoft .NET 4.0 Framework has a maximum connection limit of two per domain, similar to the browser limitation.

Action

For any Microsoft .NET application that uses more than one WebSocket connection at a time, you must either ensure that any WebSocket connection is closed by using WebSocket.Close() before opening another WebSocket connection, or increase the connection limit on the application by updating the maxconnection attribute in the app.config file. For more information about the error and tuning .NET client connections, see (KG-1851) Two Connection Limit in Kaazing Kaazing Clients for Microsoft .NET in Release Notes.

Next Step

You have completed the Microsoft .NET and Silverlight client procedures. For more information on client API development, see the .NET and Silverlight Client API.

TOP