Good day,
I have some code which works perfectly well in a macro of a spreadsheet but now need to put it into a aspx page. Unfortunately it is failing right at the very beginning. My code portion is as follows:
PUBLIC Sub SAP
Dim LogonControl
Dim funcControl
Dim TableFactoryCtrl
Try
LogonControl = Server.CreateObject("SAP.LogonControl.1")
funcControl = Server.CreateObject("SAP.Functions")
TableFactoryCtrl = Server.CreateObject("SAP.TableFactory.1")
Catch ex As Exception
lbInformation.Text = Err.Description
End Try
End SUb
It is failing on the line LogonControl = Server.CreateObject("SAP.LogonControl.1") with the following error:
Retrieving the COM class factory for component with CLSID {B24944D6-1501-11CF-8981-0000E8A49FA0} failed due to the following error: 80040154
SAP is installed on the Server from where the page is running and the macro in the spreadsheet when run on the server where the page is been run from works fine. I just can't understand why this is not working.
The page is a
VB asp dot net page.
Please help.