cancel
Showing results for 
Search instead for 
Did you mean: 

Error when create object sap.logoncontrol.1 in Windows 7

Former Member
0 Kudos

Hi expert,

We have an problem with my vb.net application that connected to SAP system.

This application originally developed using VB.Net in Windows XP.

Now, we migrate the operating system to Windows 7, and if we run this application in Windows 7, it will raise an error message

"Cannot create ActiveX component"

Code:


        osAPLogon = CreateObject("SAP.LogonControl.1")
        oSAPCn = osAPLogon.NewConnection

Do we have to change program ID when we try to connect to SAP if the client is using Windows 7 ?

Because in Windows XP, we are using SAP.LogonControl.1 as the program ID and no issue.

Anybody know what is program ID for SAP Logon object in Windows 7 ?

Thanks.

Regards,

Pieter

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved by build to x86 bit CPU

Former Member
0 Kudos

Hi Pieter,

can you share with me how can i use create object in vb.Net to connect to SAP? I got some sample but all in vb6.

Thanks & Regards,

marksmyth
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Pieter

As this is not a PI (Process Integration) specific issue, we will move this thread to the SAP Netweaver .NET Technologies forum. Hopefully you will get a better response on that forum.

Regards

XI/PI Moderator