PRB: Filename Must Contain Text Error Message When Packaging Project (193174)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
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.
| Modification Type: | Minor | Last Reviewed: | 3/7/2005 |
|---|
| Keywords: | kbAppSetup kberrmsg kbprb kbwizard KB193174 |
|---|
|