PRB: Error 429 Using MSDN File System Object Programming Examples (247979)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q247979 SYMPTOMS
You are distributing an application that uses one of the MSDN programming examples for the File System Object (FSO) when you are running an application after installation the following error appears:
Runtime Error '429' : ActiveX Component Can't Create Object
CAUSE
This error occurs because many of the MSDN code examples use late binding to the Microsoft Scripting Runtime (the component that contains the FS0.) Because late binding is used, a reference to the component (Scrrun.dll) is not required. When you use the Setup Wizard or Package and Deployment Wizard to package your application, the Wizards look at the references in the project to see which components need to be included in the package. Because there is no reference for this component, the component is not included, and the end result is an error when you attempt to create an FSO.
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.
RESOLUTIONThe Microsoft Scripting Runtime must be installed from the Microsoft Windows Script components. The Microsoft Windows Script components are installed by a self-extracting EXE. You can redistribute this EXE with your setup package. Alternately, your customers can download and install the appropriate self-extracting EXE at following Microsoft Web site: STATUS
This behavior is by design.
REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
254166 BUG: Distribution of Microsoft Scripting Runtime Library Fails
Modification Type: | Major | Last Reviewed: | 11/4/2003 |
---|
Keywords: | kbAppSetup kbDeployment kbprb kbsetup kbwizard KB247979 |
---|
|