Error message when you try to open an application in SoftGrid: "Error code: xxxxxx-xxxxxx18-0000013A"

Article translations Article translations
Article ID: 930640 - View products that this article applies to.
Expand all | Collapse all


When you try to open an application in Microsoft SoftGrid, the operation is unsuccessful. Additionally, you receive the following error message:
The SoftGrid Client could not launch application_name.
A script failed to return the expected result. Please report the following error code to your System Administrator.
Error code: xxxxxx-xxxxxx18-0000013A


This issue may occur when the script in the .osd file does not return an exit code.

If the SUCCESSRESULT attribute of the SCRIPT element in the .osd file is set, the script must return an exit code. Otherwise, the application will not open, and you will receive the error message that it mentioned in the "Symptoms" section.

For example, if the SCRIPT element opens a command prompt, and if you exit the command prompt by clicking the "X" in the upper-right corner, the script does not successfully finish. Therefore, the script does not return the exit code that the SUCCESSRESULT attribute requires.


To resolve this issue, follow these steps:
  1. Open the .osd file by using a text editor such as Notepad.
  2. Review the exit codes in the SUCCESSRESULT="" and ABORTRESULT="" attributes.
  3. Review the script and exit codes in the <SCRIPTBODY> and </SCRIPTBODY> elements as follows.
        <SCRIPTBODY>review the script and exit codes here</SCRIPTBODY>
  4. Save and then close the .osd file.
For more information about the SUCCESSRESULT and ABORTRESULT attributes, click the following article number to view the article in the Microsoft Knowledge Base:
930973 How to fail or abort an application launch on script failure


Article ID: 930640 - Last Review: April 12, 2007 - Revision: 2.0
  • Microsoft SoftGrid for Terminal Services
  • Microsoft SoftGrid for Windows Desktops
kbtshoot kbexpertiseinter KB930640

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from