Attachmate Worldwide  |   Contact Us  |   NetIQ.com
Home » Support » Solution Library

Technical Notes

Web Builder VB.NET Projects: Build Failure on .NET Framework Version 2.0
Technical Note 10056
Last Reviewed 21-Jul-2006
Applies To
Verastream Host Integrator version 5.5 only
Summary

If Verastream Web Builder is using Microsoft .NET Framework version 2.0, attempts to build .NET Visual Basic (VB) projects may fail. This technical note describes the errors and explains how to resolve this problem.

Symptom

When you attempt to build a VB.NET Web Application or Web Service project in Verastream Web Builder, the Build Project dialog may display BUILD FAILED with the following reason:

C:\Inetpub\wwwroot\<projectname>\Global.asax.vb(5) : error BC30183: Keyword is not valid as an identifier.

This error may also be preceded or followed by other warnings:

BC40000: 'Public Property Document() As System.Xml.XmlDocument' is obsolete.
BC42020: Variable declaration without an 'As' clause; type of Object assumed.
BC42021: Function without an 'As' clause; return type of Object assumed.
BC42022: Property without an 'As' clause; type of Object assumed.
BC42104: Variable '<name>' is used before it has been assigned a value. A null reference exception could result at runtime.
BC42105: Function '<name>' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used.

Explanation

Verastream Host Integrator Web Builder version 5.5 was designed to support Microsoft .NET Framework version 1.1 (and Microsoft Visual Studio 2003), which were available at the time of product release. Compiling problems may occur when attempting to build VB projects with .NET Framework version 2.0. (C# .NET projects do not display these compile errors.)

This issue is likely to occur in development environments using Microsoft Visual Studio 2005, which uses .NET Framework version 2.0. (Microsoft Visual Studio 2003 uses .NET Framework version 1.1.)

Solution

To resolve this issue, upgrade to Verastream Host Integrator version 6.0 or higher. For more information on upgrading, see Technical Note 40031.

If you are unable to upgrade to version 6.0 or higher, follow the procedures below to resolve this problem in version 5.5.

  1. Install Microsoft .NET Framework version 1.1, in addition to the existing version 2.0.
    • Use Microsoft Windows Update (http://windowsupdate.microsoft.com) to install this optional software update.
    • Note that the Microsoft .NET Framework is designed to allow multiple versions to co-exist for application compatibility.
  1. Modify Verastream Web Builder Settings (from Options menu) to use the Framework 1.1 version. A typical .NET Framework directory is:
C:\Windows\Microsoft.NET\Framework\v1.1.4322

Note: If you want to use the built project with Visual Studio 2005 or .NET Framework version 2.0, see Technical Note 10058.

Related Technical Notes
10058 Web Builder Projects and Visual Studio 2005
40031 Upgrading to Host Integrator 6.6 in a Windows Environment
40034 Error Running .NET Web Application: "Could not load file or assembly..."
40037 Verastream Host Integrator 6.6 and .NET 1.1 Applications
40999 Verastream Host Integrator Technical Notes

Did this technical note answer your question?

Yes    No    Somewhat     Not sure yet

Additional comments about this tech note:

Need further help? For technical support, please contact Support.