Exception using an object in Visual Basic Retrieving the COM class factory for component with CLSID

0

I got an old project that it is being use as a DLL in a project that I'm changing now, that DLL has this code:

Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)
        writer.Write(
            String.Format(
                "<object id='{0}' servertype=""application/sigplus"" classid='clsid:69A40DA3-4D42-11D0-86B0-0000C025864A' width=""{1}px"" height=""{2}px"" ></object>",
                MyBase.ID,
                mWidth,
                mHeight
            )
        )

        'onfocus=""onStart();""

        MyBase.Render(writer)
    End Sub

In my current project I have the DLL referenced in my project, and also I have this object in the ASPX file:

<AD:Signature ID="sig" runat="server" Width="450" Height="60" HorizontalOffset="140" VerticalOffset="-130" SigHiddenFieldID="hfSig" NOSHiddenFieldID="hfNOS" visible="true"/>

The problem that I found is in this piece of of code:

imgSuccess = sig.SaveSignatureAsImage(mTempDirectory, imgFileName, signature, If(mSignatureType = SignatureType.Clipboard, 6, 4))

where sig is the object from the ASPX file.

When I debug the code I got the following exception:

{"Retrieving the COM class factory for component with CLSID {69A40DA3-4D42-11D0-86B0-0000C025864A} failed due to the following error: 800700c1 is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)."}

I tried to change the target environment to Any CPU in Both Projects, I really don't know where to find a possible solution for this. If you can orientate me into a possible solution or any help will be appreciate.

vb.net
activex
asked on Stack Overflow Jun 5, 2018 by Jose Raul Perera • edited Jun 5, 2018 by Mathieu Guindon

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0