【发布时间】:2017-03-20 11:21:12
【问题描述】:
我的应用程序正在使用库 SqlXML,我正在尝试将此应用程序发布到 Azure Web 服务。
一旦我发布它,我就会收到此错误:
Retrieving the COM class factory for component with CLSID {83D0FC3E-8B31-4B35-A1B2-346BA3954514} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
我检查了堆栈跟踪及其使用 SqlXML 的方法。
我检查了 dll 是否在 web.config 中作为程序集被引用并且它是
<add assembly="Microsoft.Data.SqlXml, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
我检查了 DLL 是否存在以及是否存在。
有没有办法在 Azure Web 服务上安装 SQLXML?
【问题讨论】:
-
如果您尝试安装 COM 对象,则不能 - 您无法在 Azure Web 应用程序上进行此类安装。
标签: c# azure azure-web-app-service sqlxml