2

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?

Daniel
  • 61
  • 1
  • 5

1 Answers1

0

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:

enter image description here

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.

Bruce Chen
  • 18,207
  • 2
  • 21
  • 35