CantStartSingleInstanceException Class

Note: This class is new in the .NET Framework version 2.0.

This exception is thrown when a subsequent instance of a single-instance application is unable to connect to the first application instance.

Namespace: Microsoft.VisualBasic.ApplicationServices
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)

public class CantStartSingleInstanceException : Exception
/** @attribute SerializableAttribute() */ 
public class CantStartSingleInstanceException extends Exception
public class CantStartSingleInstanceException extends Exception

A single-instance application differs from a normal application in that only one instance of the application can be running at a time. When a subsequent application instance starts, it attempts to contact the first instance application to pass its command-line arguments. If the first instance cannot be contacted, the CantStartSingleInstanceException is raised in the subsequent application instance. The Visual Basic Application Model does not provide any context information in the exception.

For more information, see Overview of the Visual Basic Application Model.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0