I am creating a web application from files that I successfully created a web site with. I am creating new pages, and copying the bulk of the code to the web application. I am doing this because the pages are not successfully compiled because of the header information being different. I have gotten the code to compile in VS 2010 successfully, along with 3 assemblies.
When I try to call one of the programs in the assemblies, I get an error:
MicroFocus.COBOL.COBOLRuntimeException was unhandled by user code
HResult=-2146232832
Message=198 Load failure [Program not verifiable]
[Program "ClassLibrary1.GET_ENVIRONMENT_VARIABLE" is not verifiable, Initial Program "logon_aspx" is verifiable]
Source=MicroFocus.COBOL.Runtime
ErrorNumber=198
ErrorString=198 Load failure [Program not verifiable]
[Program "ClassLibrary1.GET_ENVIRONMENT_VARIABLE" is not verifiable, Initial Program "logon_aspx" is verifiable]
StackTrace:
at MicroFocus.COBOL.Runtime.Common.RunUnit.AddClass(ClassInfo classInfo, IObjectControl pgInstance)
at MicroFocus.COBOL.Runtime.Common.RunUnit.AddInstance(IObjectControl pgInstance)
at MicroFocus.COBOL.Program.Control.Load(RuntimeTypeHandle rth, RunUnit runUnit)
at MicroFocus.COBOL.Program.Control.Load(RuntimeTypeHandle rth, IObjectControl pgInstance)
at SWODM.WebApp.Logon.Authenticate_User() in C:\Source\ProjectPlanCode\ProjectPlanWebTest\SWODM.WebApp\SWODM.WebApp\Logon.aspx.cbl:line 156
at SWODM.WebApp.Logon.Page_Load(Object param-sender, EventArgs param-e) in C:\Source\ProjectPlanCode\ProjectPlanWebTest\SWODM.WebApp\SWODM.WebApp\Logon.aspx.cbl:line 136
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
This code is successfully running in a web site. It appears it cannot see the assembly code, or can't verify it. I looked at the Book sample in the provided samples with the code, but could not determine what I am doing wrong.
Can anyone provide any insight? I would like to use our code as a web app, rather than a web site.
Thanks!