Skip to main content

Problem:

How to deploy a Net Express 5.0 Web Service?

Deploying a COBOL .NET Web Service and may get an error after deploying the .asmx and the code behind cbl file. This is due to the COBOL compiler not being included in the Server 5.0 runtime install.

Just copying the contents of the project to the deployment server server is not enough as it attempts to compile the CBL file.

Resolution:

To get a COBOL.NET Web Service working on a deployment machine there is a need to perform the following steps:-

- Load the Project in Visual Studio

- Highlight the COBOL project and use "Build" / "Publish Web Site" from menu

- Uncheck the "allow precompiled website to be updateable" option

A compiled version of the Web Service will then be built into the same location as the project. This can be copied to the deployment machine and configure IIS for use it as required.

There is also the need to setup some permissions in order for the Server 5.0 License to work:-

- Use Regedit and give the ASPNET user permissions to access HKLM\\Software\\Micro Focus

- Give the ASPNET user permissions to access the folder containing the License Database.

Old KB# 1241