Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

SWS Error code 10037

Created: 23 May 2011 • Updated: 08 Oct 2013 | 6 comments
Screenbert's picture
This issue has been solved. See solution.

When trying to open any streamed application I get "Error Code 10037: Creating application process failed. Please try removing the application cache and accessing the application again. If the problem persists, contact your system administrator." There is also another error screen. The only message in that box is : "The parameter is incorrect".  When I try to open the same application a 2nd time It opens fine.

I'm running SP6 on a Windows 7 64bit PC. Any ideas on how to clear the cache or what this error means?

Comments 6 CommentsJump to latest comment

ryanmc's picture

There are two common reasons for this error:

  • The XPF package was created with SVSAdmin instead of with Streaming Composer.  You will get a warning if you try this with SP7.
  • The %TEMP% directory doesn't exist or the %TEMP% environment variable is invalid.

There are other less common reasons, but without more information from the client logs it is hard to say.  The SWS client logs the command line it tries to execute, does anything look strange in the paths or arguments when the error occurs?

Screenbert's picture

I created it with Streaming Composer using the Wizard. This happens on all packages. I've verified the %TEMP% variable is working correctly. Here's a snippit from the log:

2011-05-23 15:59:17 INFO   [2232] Management,InstallationNeeds::setMachinePreloadDoneToReg#503| Set PRELOADED value to the 80B034A647B5438FAF058F0FED3DC5C7 key
2011-05-23 15:59:18 INFO   [2232] ProcessControl,MainProcess::createProcessSuspend#338| Creating application process as "<SNIPPED>".  Executable path: "C:\Users\<SNIPPED>\AppData\Local\Temp\ProcessCreator2232.exe" "67108868" "C:\_AC\2794393543" "Global\ASWIPE:4288b8" "C:\Windows\System32\rundll32.exe" "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen C:\Windows\Installer\{E84D1C9D-6669-4156-992B-17557D64F1D3}\Comm.Ico
2011-05-23 15:59:18 INFO   [2232] ProcessControl,MainProcess::createProcessSuspend#365| Surrogate process #4188 created.
2011-05-23 15:59:18 INFO   [2232] ProcessControl,MainProcess::createProcessSuspend#372| Surrogate process #4188 tracked, signaling event: Global\ASWIPE:4288b8
2011-05-23 15:59:22 INFO   [2232] ProcessControl,OpenProcessHandle#92| PID=0, Handle=0000000000000000, Error=87
2011-05-23 15:59:22 FATAL  [2232] ProcessControl,MainProcess::createProcessSuspend#402| Unable to open process 0, error: 87
2011-05-23 15:59:22 FATAL  [2232] ProcessControl,MainProcess::createProcessSuspend#457| Creation of application process failed.  Last error: 87.  Command line: "C:\Users\<SNIPPED>\AppData\Local\Temp\ProcessCreator2232.exe" "67108868" "C:\_AC\2794393543" "Global\ASWIPE:4288b8" "C:\Windows\System32\rundll32.exe" "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen C:\Windows\Installer\{E84D1C9D-6669-4156-992B-17557D64F1D3}\Comm.Ico, current directory: C:\_AC\2794393543\
2011-05-23 15:59:22 FATAL  [2232] Management,LaunchSession::createApplicationMainProcess#190| Could not create main process: C:\Windows\System32\rundll32.exe "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen C:\Windows\Installer\{E84D1C9D-6669-4156-992B-17557D64F1D3}\Comm.Ico, in dir: C:\_AC\2794393543\
2011-05-23 15:59:23 INFO   [5032] GuiHandler,CEventHandler::errorBox#147| Sends message to the Gui
2011-05-23 15:59:23 INFO   [2232] Management,Session::sessionErrorHandler#1412| Error handler reached for session 1, error: "Error Code 10037 : Creating application process failed. Please try removing the application cache and accessing the application again. If the problem persists, contact your system administrator.".  Closing session.
 

Screenbert

ryanmc's picture

Looks like the target of your shortcut is an icon file instead of an executable.

"C:\Windows\System32\rundll32.exe" "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen C:\Windows\Installer\{E84D1C9D-6669-4156-992B-17557D64F1D3}\Comm.Ico

The streaming client is trying to launch Windows Photo Viewer passing the icon as an argument to the program, along with the function in the Photoviewer to launch.  I doubt that is what you really want to execute as a shortcut.  Check the shortcut properties in Streaming Composer and make sure you didn't swap the executable (path) and icon (Icon File) somehow.

AngelD's picture

I'm not sure that the shortcut's target is the icon in this case, shortcuts installed by an MSI stores their icon in the C:\Windows\Installer\<ProductCode> folder.

Seems to me that the shortcut target is located in the user's temp-folder; Executable path: "C:\Users\<SNIPPED>\AppData\Local\Temp\ProcessCreator2232.exe"

Does the target exist in the temp-folder?

Could it be a permission issue?

ryanmc's picture

The ProcessCreator process is a temporary process created by the SWS client to get around a deadlock that can occur in the SWS service process if it needs to create a process from a streamed file (which it often does).  The arguments to ProcessCreator are then executed as another process by ProcessCreator.

We see problems with invalid data in the shortcuts when packages are created with SVSAdmin instead of Streaming Composer, especially with "advertised shortcuts".  It is possible that Streaming Composer missed this one as well.

You might try disabling the advertised shortcuts when capturing the package by passing DISABLEADVTSHORTCUTS=1 to msiexec when installing.

SOLUTION
Screenbert's picture

I recaptured the package and everything seems OK now. The first time I opened a command window and executed the MSI and the MSP, the 2nd time I just selected them individually. Seems to work now.

Screenbert