06-24-2016 06:44 AM
Hey guys,
We have some internet banking C# scripts that utilize the Unity API to pull check images, deposit images, statements, etc. from OnBase and display them in the browser to a user making the call.
We have a new web server that is going to be used for OnBase 15+, and while trying to test the scripts I keep getting a compilation error:
"Error CS0246: The type or namespace name 'InternetBankingUnity' could not be found (are you missing a using directive or an assembly reference?)"
The above error is what is returned in the browser when trying to test a URL to retrieve a check image using our Checks.aspx.cs file. The line that is referenced in the above error is as follows:
InternetBankingUnity.OBUnityC OB_Unity = new InternetBankingUnity.OBUnityC();
Now, the confusion I have is that this is setup exactly how it is at many of our other sites. Our UnityC.cs file resides in the App_Code folder in the location of the other scripts. This is a very small exerpt from the script showing the namespace and class:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Hyland.Types;
using Hyland.Unity;
using System.IO;
using System.Configuration;
using System.Collections;
using System.Drawing;
namespace InternetBankingUnity
{
public class OBUnityC
{
In the bin folder, we have the following DLLs:
- Hyland.Types.dll
- Hyland.Unity.dll
- stdole.dll
- Interop.DMCOREX.dll (not used)
- Interop.OPB4_DESKTOPLib.dll (not used)
- Interop.OnBaseLib.dll (not used)
Looking for any advice on why this would work at every other site but not this one site in particular.
Thanks,
Cameron
06-24-2016 07:34 AM
Have you verified that checks.aspx.cs has a using statement for InternetBankingUnity, and that its project contains a reference to the project with InternetBankingUnity?
Looking at the bin folder is probably not useful in this case; it would provide the results of compilation, but it sounds like your process is not getting as far as finishing the compilation.
06-24-2016 07:34 AM
Have you verified that checks.aspx.cs has a using statement for InternetBankingUnity, and that its project contains a reference to the project with InternetBankingUnity?
Looking at the bin folder is probably not useful in this case; it would provide the results of compilation, but it sounds like your process is not getting as far as finishing the compilation.
06-24-2016 07:46 AM
06-24-2016 08:13 AM
06-24-2016 08:17 AM
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.