Getting error in Web Method "Unable to cast COM object of type " RRS feed

  • Question

  • Hi,

    I developed one web method with one com dll. I created interop of my dll and then added in my project. After that, I build deployment package of my Web Service project and then deployed it on Server Win 2008.

    Dll is already on server. But when I run my web method it gives this error:

    System.InvalidCastException: Unable to cast COM object of type 'IPrint.IWebIPrintClass' to interface type 'IPrint._IWebIPrint'..

    Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).


    Please suggest where I am doing wrong and how can I fix this issue.


    Thank you,


    Kaushal Kumar

    • Moved by Andrew_Zhu Monday, September 5, 2011 1:37 AM (From:.NET 3.0/3.5 Windows Workflow Foundation)
    Tuesday, August 30, 2011 6:07 AM

All replies

  • Hi kaushal,


    Thank for your post.

    As you described, would you please provide us more information? such as what language did you use, etc

    That will help us relocate you to the right direction.



    Liam Huang
    STO Application Team
    Server and Tools Online Operations Team
    Tuesday, September 6, 2011 2:51 AM