Created On:  22 October 2010

Problem:

When using the Net Express IDE to generate client programs for a COBOL Web Service, the build might report errors like the following when attempting to build the clients for Winform and Webform programs.

WSCalc-app.cbl
WSCalc-proxy.cbl
Console client and proxy generation completed
WSCalcProxy.dll
calcInput.cbl
calcOutput.cbl
WSCalcHelper.dll
WSCalcIntf.cbl
WSCalcIntf.dll
WSCalcMain.cbl
WSCalcForm.cbl
WSCalcForm.Designer.cbl
WSCalcApp.exe
WSCalc.aspx
WSCalc.aspx.cbl
WSCalcProxyWrapperTrigger.cbl
WSCalcProxyWrapper.cbl
WSCalcProxyWrapper.tlb
WSCalcProxyWrapper.tlb
>>> Error executing program 'C:\\WINDOWS\\System32\\cmd.exe'

c:\\WS_acctdemo\\WS_acctdemo\\Client\\WSCalc\\ProxyWrapper>set include=C:\\Program Files\\Micro Focus\\Studio Enterprise Edition 6.0\\Base\\INCLUDE;%INCLUDE%;c:\\program files\\micro focus\\studio enterprise edition 6.0\\base\\include

...
midl : command line error MIDL1005 : cannot find C preprocessor cl.exe

C:\\WINDOWS\\System32\\cmd.exe /c "c:\\WS_acctdemo\\WS_acctdemo\\Client\\WSCalc\\ProxyWrapper\\midl.exe.cmdline.bat"

Generation failed

Resolution:

In order to build the Winform and Webform .NET managed code applications certain Microsoft tools are required and these tools must be on the system PATH or INCLUDE so that the build can find them.

These PATH and INCLUDE environment variables required to generate the Winform and Webform are not automatically set for the user.

The user must set these manually. Under Control Panel > System > Advanced > Environment Variables set the following entries:

PATH:
c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\bin;
c:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\Bin;
c:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5

INCLUDE:
C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\Include
Incident #2483052