HWC Buildpack error when pushing a .NET framework application
book
Article ID: 297578
calendar_today
Updated On:
Products
VMware Tanzu Application Service for VMs
Issue/Introduction
Symptoms: If a developer attempts to push a .NET Framework app using the HWC buildpack it fails with the following error:
-----> Configuring hwc
**ERROR** Unable to install HWC: link C:\Users\vcap\AppData\Local\Temp\contents805190215\deps\0\hwc\hwc.exe \tmp\app\.cloudfoundry\hwc.exe: Cannot create a file when that file already exists.
**ERROR** Unable to install HWC: link C:\Users\vcap\AppData\Local\Temp\contents805190215\deps\0\hwc\hwc.exe \tmp\app\.cloudfoundry\hwc.exe: Cannot create a file when that file already exists.
Environment
Cause
The logic in the HWC buildpack does not take into consideration that .cloudfoundry\hwc.exe could exist in the developers application folder where the `cf push` is issued from.
Resolution
The fix is to remove .cloudfoundry\hwc.exe from the application folder you are pushing from. Developers should remove the folder/file to successfully push the .NET Framework application.