warrickvdb
Programmer
Hi
I receive an error when i try to open the 'ACCPACXAPILib.xapiSession' object in VB.Net web project.
My code is as follows:
Dim Session As ACCPACXAPILib.xapiSession
Session = New ACCPACXAPILib.xapiSession
Session.Open("ADMIN", "ADMIN", "RMICON", Now.Today, 0)
The code crashes on the last line of code and returns the following error:
Unspecified error
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Unspecified error
Source Error:
Line 92: Dim Session As ACCPACXAPILib.xapiSession
Line 93: Session = New ACCPACXAPILib.xapiSession
Line 94: Session.Open("ADMIN", "ADMIN", "RMICON", Now.Today, 0)
Line 95:
Line 96: ARCUSTOMER = Session.OpenView("AR0024", "AR"
Source File: c:\inetpub\ Line: 94
Stack Trace:
[COMException (0x80004005): Unspecified error]
ACCPACXAPILib.xapiSessionClass.Open(String UserIdentifier, String Password, String DataBase, DateTime SessionDate, Int32 Flags) +0
RMIWeb.ucContact.Page_Load(Object sender, EventArgs e) in c:\inetpub\ System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
I receive an error when i try to open the 'ACCPACXAPILib.xapiSession' object in VB.Net web project.
My code is as follows:
Dim Session As ACCPACXAPILib.xapiSession
Session = New ACCPACXAPILib.xapiSession
Session.Open("ADMIN", "ADMIN", "RMICON", Now.Today, 0)
The code crashes on the last line of code and returns the following error:
Unspecified error
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Unspecified error
Source Error:
Line 92: Dim Session As ACCPACXAPILib.xapiSession
Line 93: Session = New ACCPACXAPILib.xapiSession
Line 94: Session.Open("ADMIN", "ADMIN", "RMICON", Now.Today, 0)
Line 95:
Line 96: ARCUSTOMER = Session.OpenView("AR0024", "AR"
Source File: c:\inetpub\ Line: 94
Stack Trace:
[COMException (0x80004005): Unspecified error]
ACCPACXAPILib.xapiSessionClass.Open(String UserIdentifier, String Password, String DataBase, DateTime SessionDate, Int32 Flags) +0
RMIWeb.ucContact.Page_Load(Object sender, EventArgs e) in c:\inetpub\ System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()