Problem:
Customer created an ASP.NET Web Application using Visual COBOL 2.1 for Visual Studio 2010. The application runs fine in development but when he deploys it to an IIS Server under Windows Server 2012, on which COBOL Server is installed, when he runs the web site he gets the error:
Method not found: MFClrRts.MFClrRts.Disconnect Context(Int16 ByRef)
Why?
Resolution:
The problem is that the version of COBOL Server that was installed on the production computer was COBOL Server for Visual Studio 2012 and the application was developed with Visual COBOL for Visual Studio 2010.
The two products are not compatible.
If you develop your application using the Visual COBOL for Visual Studio 2010 product then you must deploy it to a system on which the COBOL Server for Visual Studio 2010 product is installed.
If you develop using the Visual COBOL for Visual Studio 2012 product then you must deploy it to a system on which the COBOL Server for Visual Studio 2012 product is installed.
In this case the customer rebuilt the application with Visual COBOL for Visual Studio 2012 an then redeployed it and everything worked fine.