Web Builder .NET Project Errors on Windows 7 or Windows Server 2008

  • 7021584
  • 30-Jun-2011
  • 11-Mar-2018

Environment

Verastream Host Integrator version 7.0 or higher

Situation

When running Verastream Host Integrator (VHI) Web Builder on newer Windows platforms, .NET projects may fail to build or run.

Note: Beginning in VHI version 7.5, the HTML 5 Web Application project type, which is platform and technology independent, is available in Web Builder. The .NET and Java Web Application project types are still available but deprecated on the Legacy tab.

When running VHI Web Builder on Windows 7, Windows Server 2008, or Windows Vista, you may see an error when building or running a .NET project.

After successfully building a .NET web application project, you may see the following IIS runtime error when the web application is launched:

HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.

View Full Size
Figure 1. Internet Information Services 7.5 Server Error Figure 1. Internet Information Services 7.5 Server Error

When building a .NET web service project (created in version 6.6 or earlier), you may see a build error similar to the following:

BUILD FAILED
Reason: The following error occurred while executing this line:
C:\Program Files\VHI\projects\MyModel\build.xml:24: The following error occurred while executing this line:
C:\Program Files\VHI\projects\MyModel\build.xml:63: The following error occurred while executing this line:
C:\Program Files\VHI\projects\MyModel\build.xml:115: The following error occurred while executing this line:
C:\Program Files\VHI\projects\MyModel\build.xml:132: The following error occurred while executing this line:
C:\Program Files\VHI\projects\MyModel\build.xml:138: Can't get http://localhost/MyModel/MyModel.asmx?wsdl to C:\Program Files\VHI\projects\MyModel\wsdl\MyModel.wsdl

Resolution

To install IIS with ASP.NET, follow these steps:

  1. In Control Panel, open Programs (or Programs and Features) > Turn Windows features on or off. On Windows Server 2008, use Manage Server to Add a Role to install IIS.
  2. Expand Internet Information Services > Web Management Tools by clicking the "+" icons.
  3. Enable IIS 6 Management Compatibility by clicking the check box. Note: The filled box indicates that the feature is partially enabled, which is sufficient; it is not necessary to select all subcomponents. (Enabling this feature avoids the error described in KB 7021546.)
  4. Expand Internet Information Services > World Wide Web Services > Application Development Features.
  5. Enable ASP.NET by selecting the check box. Dependent features are automatically enabled.
  6. Click OK. The features are installed.
  7. When the installation is complete, re-build and/or re-deploy your .NET project. Note: If Windows User Account Control is enabled, you must run Web Builder version 7.0 and earlier as an administrator. (This is not necessary in version 7.1; the iisdeploy.exe utility will prompt you to run as administrator.)

Cause

ASP.NET must be installed to run .NET web applications. In older versions of Windows, ASP.NET is installed by default when you install Internet Information Services (IIS). In newer versions of Windows running Microsoft IIS version 7.x, ASP.NET is not installed by default.

Additional Information

Legacy KB ID

This article was originally published as Attachmate Technical Note 10124.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.