.NET UserControls error in MS Access

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oquesada
    New Member
    • May 2015
    • 1

    .NET UserControls error in MS Access

    I want to share an issue I faced a few weeks ago that took me around 1 week to get solved.

    This issue is related to a .NET User control exposed via COM interop to be accessible from MS Access 2010.

    Despite the Usercontrol is registered in regasm using regams /tlb myUC.dll, every time I placed a instance of this .NET "Activex" control in a MS Access form I got this error: "OLE Server isn't registered".

    This issue was not reproduced in development environments with VS.NET installed.

    Anyway, the issue was fixed by strongly signing the assembly and all its references. Then, we used regasm /tlb /codebase myUC.dll to register the component.

    As soon as we did that, I was able to add this component in a MS Access form.
  • madankarmukta
    Contributor
    • Apr 2008
    • 308

    #2
    As per my experience , "OLE server isn't registered" usually comes when an assembly never gets signed by a correct key.

    Even ,incorrect key may leads to this error.

    Comment

    Working...