SQLXML on Azure Web sites

≯℡__Kan透↙ 提交于 2019-12-11 02:29:40

问题


My application is using the library SqlXML and I am trying to publish this application to Azure Web Services.

Once I publish it I get this error:

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)).

I checked stacktracing and its on a method that uses the SqlXML.

I checked if the dll is referenced as an assembly in web.config and it is

<add assembly="Microsoft.Data.SqlXml, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />

I checked whether the DLL is present and its there.

Is there a way to install SQLXML on Azure Web Services?


回答1:


According to your description, I followed this tutorial to access SQL Server via Microsoft SQLXML Managed Class, I could reproduce this issue after deploying my web application to Azure Web App. I also tried to register this library by using Regsvr32 on KUDU > Debug console, but fail with the following error:

Is there a way to install SQLXML on Azure Web Services?

As David Makogon stated that you could not install SQLXML on Azure Web Apps. As I known, Azure Web Apps run in a sandboxed environment, so there are some limitations, for more details, you could refer to Azure Web App sandbox. Per my understanding, you could leverage Cloud Services or Azure Virtual Machines which could provide your with more controls on your Web Server. You could follow this official document for a comparison between Azure App Service, Virtual Machines, and Cloud Services.



来源:https://stackoverflow.com/questions/42902291/sqlxml-on-azure-web-sites

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