SAP Business One DI API for ASP.NET Web Application

邮差的信 提交于 2019-12-11 15:15:46

问题


I developed one console application using DI API(x64). Now I am trying to develop a web application using the same code but getting the following error in the very first line

SAPbobsCOM.Company sboCompany = new SAPbobsCOM.Company(); //in this line

Retrieving the COM class factory for component with CLSID {632F4591-AA62-4219-8FB6-22BCF5F60090} failed due to the following error:

80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

I have tried changing Platform target (x84, any, x64) but no luck. I also have Enabled 32-Bit Applications on IIS.

I am using Visual studio 2017 community version and Windows 10(x64).

I have no idea why I am getting this error as its perfectly working for my console application. I have seen some are suggesting to use DI Server for web application but I am wondering if its possible to use DI API as I won't have much traffic.

Any help would be highly appreciated.

来源:https://stackoverflow.com/questions/51988193/sap-business-one-di-api-for-asp-net-web-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!