Shared Source CLI Managed Application Launcher

The Shared Source CLI (SSCLI) execution environment requires that managed applications be executed using the clix.exe application launcher.  This tool will load the SSCLI execution environment which will then load the managed application and start it's execution from the initial entry point. The intial execution entry point is defined by default by a static method named "Main" in some class in the assembly.  If there are multiple static classes named "Main" the entry point must be specified by using the /main:method option of the al.exe assembly linker or /main:type option of the C# compiler.

When executing managed applications on Microsoft® Windows® if you don't use the clix launcher and you have the Microsoft .NET Framework SDK, redistributable, or Microsoft® Visual Studio® .NET installed on your machine, the application might execute in the Microsoft .NET Framework execution environment and not the SSCLI execution environment.  You must use clix.exe to execute applications under the SSCLI execution environment.

The clix application (clix.exe on Windows, clix on FreeBSD) should be in your path if you have used env.bat, env.sh, or env.csh to set your SSCLI environment variables.

Usage:

clix managed_application [optional arguments to managed application]
Option Description
managed_application The filename of the managed application file you want to execute in the SSCLI execution environment.  The filename must fully specify the path to the managed application if it isn't in the current directory.

The application must be a managed executable file which has an initial execution entry point as defined by the /main:method option of the assembly linker (al.exe) or the /main:type option of the C# compiler.

The .exe extension will be inferred if it not directly specified.

If no extension is supplied and the filename doesn't exist exactly as specified, clix appends ".exe" (lowercase) to the name specified by managed_application and attempts to load a file with that name.

optional arguments to managed_application Arguments to be used by the managed application.

Shared Source CLI clix Application Launcher Errors

Error Description
Out of memory The application launcher failed to allocate sufficient memory.  The application may be too large to load into memory or there might be a configuration problem with the execution environment.
Invalid EXE file size  
Invalid EXE format The specified managed application file is not an executable file. It is probably a text or other document or data file.
Invalid EXE signature  
EXE is not Managed The specified managed application file is not a managed executable file.  It is probably an unmanaged application or library.
Failed to load Execution Engine from filename.

Reason for error

The application launcher is unable to load the SSCLI execution environment.  Either the environment configuration or environment variables are incorrect or specific required files are missing.

For example the full error:

Failed to load Execution Engine from sscoree.dll. 
The specified module could not be found.

means that the critical Shared Source CLI file, sscoree.dll, could not be found.  Your build process might have failed to build the file or the file might have been deleted or corrupted.  Build again and check closely for build errors.

Could not open file filename.

Reason for error

The specified managed application file, filename, could not be opened.  The reason for error text will indicate the reason for the error.  For example, the reason:

The system cannot find the file specified.

indicates that the file cannot be found at the specified location.

Could not find CorExeMain in the Execution Engine at filename.

Reason for error

The specified managed application file did not contain an execution entry point.  It is either a managed library assembly or an incorrectly linked managed application assembly.

Source Location

Source code for the clix.exe application launcher can be found by searching the SSCLI source tree for the  clix directory.  The default location is sscli\clr\src\tools\clix.

Copyright (c) 2002 Microsoft Corporation