This article was previously published under Q190165
This article has been archived. It is offered "as is" and will no longer be updated.
When you use command line arguments to compile a Microsoft Visual Basicproject that contains WebClass designers, you may encounter errors.
When you use the command line argument /MAKE to compile the application, ifthe associated .DCA files for the Designers (.DSR) are not in the samedirectory as the .DSR files, you may encounter errors during thecompiling. The .DCA files contain type library information that isnecessary to compile the project.
Use one of the following workarounds to compile the projectwithout errors:
Open the project in Visual Basic, and make a change in the project. Any change, such as entering a space and then deleting the space in the project, will suffice. Close Visual Basic, and save the changes. This rebuilds the .DCA files for the application in the same directory where the .DSR files are located.
Compile the application inside of the Visual Basic Integrated Development Environment (IDE). This also rebuilds the .DCA files for the application.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Steps to reproduce the behavior
Create a new IIS application in Microsoft Visual Basic.
Double-click Designers in the Project Explorer window.
Double-click WebClass1 in the Project Explorer window.
Right-click Custom WebItems in the Project1 - WebClass1 window, and then select Custom WebItem.
Double-click WebItem1 in the Project1 - WebClass1 window.
In the WebItem1_Respond event, enter the following code:
WebItem1.Properties("String") = "Test"
Save the project, and exit Microsoft Visual Basic.
Change the filename of "WebClass1.DCA" or delete it.