Error: “Error (pp_init): Failed to load data file MsgId: MERR0” when replaying a Windows Sockets multi-protocol script

Error: "Error (pp_init): Failed to load data file [MsgId: MERR0]" when replaying a Windows Sockets multi-protocol script

Problem

When a multi-protocol script that includes the Windows Sockets protocol is created and saved using VuGen, a subsequent attempt to replay the script may result in the following error message being displayed:

Error (pp_init): Failed to load data file [MsgId: MERR0]

Warning: Extension wsrun32.dll reports error -1 on call to function ExtPerProcessInitialize [MsgId: MWAR-10485]

Error: Thread Context: Call to service of the driver failed, reason – thread context wasn’t initialized on this thread. [MsgId: MERR-1017

A Windows Sockets single protocol script can be created, saved and then replayed successfully.

Cause

The multi-protocol script fails to replay as a script file required by the Windows Socket protocol is missing from the script directory. The missing script file that is required for the script to replay successfully is the file "data.ws".

Solution

This file is present in a Windows Sockets single protocol script. To workaround this issue in a multi-protocol script that includes the Windows Sockets protocol follow these steps:

  1. Open VuGen and create an empty Windows Sockets single protocol script. Save the script,
  2. Select (or create) the multi-protocol script that includes the Windows Sockets protocol in VuGen,
  3. Right click in the scripts pane in the Script View and select "Add Files to Script",
  4. Browse to the folder containing the Windows Sockets single protocol script and open the "data.ws" file to add it to the multi-protocol script,
  5. Save the multi-protocol script and confirm it now replays correctly.
Advertisements

One thought on “Error: “Error (pp_init): Failed to load data file MsgId: MERR0” when replaying a Windows Sockets multi-protocol script

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s