Întrebare UCCA client application and VS2010 with .Net 4.0

  • Friday, March 09, 2012 7:23 PM
     
     

    We already have .Net 2.0/ VS2005 application using UCCA API sucessfully.

    Recently we upgraded to VS2010 / .Net 4.0 and I am getting following error.

    Retrieving the COM class factory for component with CLSID {201D2DCD-AF4F-484E-9793-56CAC5EC0C16} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

    We have application manifest file as it is and also able to register uccapi.dll sucessfully.

    Do I need to update anything in manifest file for VS2010 , .Net 4.0 or VC 10 runtime?

All Replies

  • Saturday, March 10, 2012 5:11 AM
     
     

    Ok found root cause.

    Noticed this issue is happning only using VS 2010 and having UCCA logic in dll and that dll is loaded dynamically.

    Same thing works with VS2005 but fail using VS2010.

    After investigation found that for VS 2010 you need manifest file tagged as application manifest in projects. This was not case for VS2005. For VS2010 I just copied manifest file in output dirctory only.

    so solution is, add following line in your application project,clean solution and rebuild.

       <ApplicationManifest>application.exe.manifest</ApplicationManifest>