MSSOAPLib30 on Visual Studio 2022 x64

Esteban Benito 1 Reputation point
2022-08-26T10:12:06.847+00:00

Hello, I have a problem with the Microsoft Soap Type Library 3.0 component (Interop.MSSOAPLib30) when I run my project in Visual Studio 2022 debug (version x64):

System.Runtime.InteropServices.COMException
HResult=0x80040154
Message = Failed to retrieve COM class factory for component with CLSID {0AF40C53-9257-11D5-87EA-00B0D0BE6479} due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Source = ApplicationBase
Stack trace:
in ApplicationBase.Sms..ctor() in C:\PROJECTS[path]\Web\Sms.aspx.vb: line 25
in ASP.sms_aspx..ctor()
at __ASP.FastObjectFactory_app_web_r4ghdz5j.Create_ASP_sms_aspx()

235090-image.png

235172-image.png

The same project if I open it in Visual Studio 2019 (version x32) if it works fine.

I have looked for information before writing, it seems that SOAP is obsolete, but I have not seen how to migrate a project that uses the HttpConnector30, SoapReader30 and SoapSerializer30 methods to something else, since the Web Service I connect to is external and I have no possibility to migrate it to a rest API.

Does anyone have any solution for this problem?

Thank you very much, regards

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,355 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
958 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Lan Huang-MSFT 27,476 Reputation points Microsoft Vendor
    2022-08-29T03:32:34.16+00:00

    Hi @Esteban Benito ,

    The same project if I open it in Visual Studio 2019 (version x32) if it works fine.

    You can try changing your project to x32 in Visual Studio 2022.
    【Right-click the .NET project, and choose Properties-->Select the Build tab-->Set Platform target 】 or run regsvr32.exe.
    235597-image.png
    Note: The MSSOAPLib30 library is home to the SOAP Toolkit 3.0 Toolkit, which is obsolete and no longer supported.
    You can check out the documentation below or use SoapUI:
    Migrate from SOAP Toolkit to Web services
    https://learn.microsoft.com/en-us/previous-versions/dotnet/articles/ms973876(v=msdn.10)?redirectedfrom=MSDN
    Data Transfer and Serialization
    https://learn.microsoft.com/en-us/dotnet/framework/wcf/feature-details/data-transfer-and-serialization
    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Esteban Benito 1 Reputation point
    2022-09-05T08:30:19.463+00:00

    Hello Lan huang,

    Thank you very much for her response; Sorry I couldn't reply earlier.

    I just tried your solution, but it doesn't work in my case. The "prefer 32-bit" option is disabled in my project, and I see how to enable it.

    237765-anycpu-no32bits.png

    I have tried to compile in 32 bits, instead of in AnyCPU; but that generates a new error; I understand that I have 64-bit specific references, and I don't want to lose them.

    237755-cpux86.png

    237739-errorx86.png

    Thanks for the links; but the web service is not mine; so I can not migrate it to another technology; I must consume it with SOAP, even though it is deprecated.

    Any more ideas of something to try?

    Thank you very much, regards
    Esteban