Hello everyone,

I my ASP.Net webservice, I use a COM component. Locally in my
development environment, everything works fine. On my pruduction
server (Windows Server 2003 + IIS 6.0) now, I receive the following
error:

Unable to cast COM object of type 'SMARTocx.clsInterfaceClass' to
interface type 'SMARTocx._clsInterface'. This operation failed because
the QueryInterface call on the COM component for the interface with
IID '{4F40B407-2C07-4F11-B98E-55855E96F636}' failed due to the
following error: Error loading type library/DLL. (Exception from
HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).

It seems to be a specific asp.net error, because starting of an
application on the server, which also uses the com-component is
working properly. I tried everything I found on google. (settings
rights, ...) But It still does not work.

Can please anybody help?

Best regards,

Alex

Re: Error loading type library/DLL by Trevor

Trevor
Wed May 07 18:57:22 CDT 2008

Do you have AspCompat="true" in the ASPX page declaration ?

Regards,

Trevor Benedict
MCSD


"LosWochos" <alexander.stuckenholz@gmail.com> wrote in message
news:8d311b79-e896-4cba-9581-5a4bb39899b5@x41g2000hsb.googlegroups.com...
> Hello everyone,
>
> I my ASP.Net webservice, I use a COM component. Locally in my
> development environment, everything works fine. On my pruduction
> server (Windows Server 2003 + IIS 6.0) now, I receive the following
> error:
>
> Unable to cast COM object of type 'SMARTocx.clsInterfaceClass' to
> interface type 'SMARTocx._clsInterface'. This operation failed because
> the QueryInterface call on the COM component for the interface with
> IID '{4F40B407-2C07-4F11-B98E-55855E96F636}' failed due to the
> following error: Error loading type library/DLL. (Exception from
> HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
>
> It seems to be a specific asp.net error, because starting of an
> application on the server, which also uses the com-component is
> working properly. I tried everything I found on google. (settings
> rights, ...) But It still does not work.
>
> Can please anybody help?
>
> Best regards,
>
> Alex



Re: Error loading type library/DLL by LosWochos

LosWochos
Thu May 08 02:51:51 CDT 2008

It's not a ASPX-page, but a web-service. The content of the asmx-file
looks like this:

<%@ WebService Language="C#" CodeBehind="~/bin/AdiosService.dll"
Class="AdiosSOA" %>

Best regards,

Alex