Another error:
An exception of type 'MicroFocus.COBOL.COBOLRuntimeException' occurred in MicroFocus.COBOL.Runtime.dll but was not handled in user code
Additional information: 198 Load failure [Program has an incompatible codepage dependency
"ClassLibrary1.GET_ENVIRONMENT_VARIABLE" is using codepage Unicode (UTF-8)
but the main program "ASP.logon_aspx" is using Western European (Windows)
Please see documentation for more information.]
I have opened LOGON.aspx in Visual Studio, selected Advanced Save Options in the File menu, and changed the character set to UTF-8. this was also done to all other cbl files in the solution. I also set the compiler directive SOURCE-ENCODING"UTF8" in the project. I am still getting the error on ASP.LOGON_aspx, which I am assuming is the generated aspx page.
I am using the default asp.net server with Visual Studio 2010, if that helps.