在 Web 应用程序上显示以下错误。
Cannot create ActiveX component.
[Exception: Cannot create ActiveX component.]
Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String ServerName) +469504
frmbarcodeeval.Page_Load(Object sender, EventArgs e) +268
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
当我们将 Web 应用程序传输到新的 Intranet Web 服务器时,就会发生这种情况。查看其源代码,它指向此代码:
Dim R3 As Object
R3 = CreateObject("SAP.Functions") ' Error occurs here
我尝试添加此处说明的 SAP 的引用对象,但它不起作用。我们也尝试安装 SAP GUI,但它也不起作用。
##### 更新
我发现这个链接可以解决我的问题。但是,我无法将目标 CPU 更改为 x86。这是一个网站项目。我目前正在尝试将其转换为 Web 应用程序以使目标平台显示 x86。