This documentation is archived and is not being maintained.

CantStartSingleInstanceException Class

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
Not applicable.

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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0