Microsoft KB Archive/193174

= PRB: Filename Must Contain Text Error Message When Packaging Project =

Article ID: 193174

Article Last Modified on 3/7/2005

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q193174



SYMPTOMS
When attempting to use the Package and Deployment Wizard (PDW) to package an ActiveX DLL/EXE project, the following error is received:

Filename must contain text

This occurs when the ActiveX DLL/EXE project is part of a project group that contains and references a UserControl project, and the projects are saved before being compiled.



CAUSE
The PDW reads all of the objects and references out of the VBP file. When you compile the control only after saving both the ActiveX Control project and the ActiveX DLL/EXE project, the latter's VBP does not reflect the current state of the referenced control and is therefore invalid. When you open the VBP in Notepad, note that the reference to the control is: Object=*\A[Name of Control Project].vbp However, if you choose to save the projects, the correct reference is saved: Object={GUID}#version#version; [Name of Control Project].ocx When the PDW fails to parse correctly in the first case, it tries to add a file named "" to make up for the name of the compiled OCX. This results in the above error.



RESOLUTION
To update the VBP file with correct references, save both projects before using the PDW to package them.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
 Create a new ActiveX DLL in Visual Basic. Class1 is created by default. In Project Explorer, right-click Class1 and select Remove Class1. Add a User Document (UserDocument1) to Project1. Add an ActiveX Control project (Project2). UserControl1 is created by default.</li> Close the designer of UserControl1. The control becomes visible in the toolbar. Place an instance of the control on UserDocument1 of Project1.</li> Save the projects in the project group by selecting Save Project Group under the File menu. Accept the default location suggested by Visual Basic.</li> Click on Project2 and select Make Project2.ocx under the File menu.</li> Click on Project1 and select Make Project1.dll under the File menu.</li> Select Add-In Manager under Add-Ins and select Package and Deployment Wizard (PDW) to load it.</li> Select Project1 and start the PDW by selecting it from the Add-Ins menu.</li> Choose No when asked to save the projects before packaging, and then select Package. Note that the following error occurs and further attempts to package the project result in the same error:

Filename must contain text

</li></ol>

Keywords: kberrmsg kbappsetup kbprb kbwizard KB193174

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.