This problem is not specific to the FSO or the Scripting Runtime. The error can occur with any component when you use late binding. If you are using late binding, make certain that the component you are late binding to is either included with your application package or is already present on the target computer.
Steps to Reproduce Behavior
- Verify that the scripting runtime (Scrrun.dll) is present on your computer.
- Start a new Standard EXE project in Visual Basic. Form1 is created by default.
- Add the following code to Form1. (This code is from a MSDN example.)
Private Sub Form_Click()
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\testfile.txt", True)
a.WriteLine ("This is a test.")
- From the File Menu, save the project then chose Make Project1.exe.
- To verify that this works, run the EXE and click on the form. You will find a file named Testfile.txt in you root (C:\) directory that contains the text, "This is a test."
- Start the Package and Deployment Wizard, and build a setup package for Project1.
- Install the application on a computer that does not have the scripting runtime installed.
- Run the application, and click on Form1.
- You should receive Error 429.
ID d'article : 247979 - Dernière mise à jour : 6 août 2007 - Révision : 1