Is anyone successfully using registration-free COM with .NET components?

前端 未结 3 515
我寻月下人不归
我寻月下人不归 2020-12-08 11:07

Until recently, we were happily using registration-free COM for our native and .NET COM components. However, we ran into a weird issue where our application started crashing

相关标签:
3条回答
  • 2020-12-08 11:28

    This issue is related to how SxS calculates the size of the class information. The version number of the assembly is part of this information.

    Since it was working with the release candidate version number, perhaps the workaround for you is to make the version number of the release the same length as the RC release.

    If this doesn't work for you, there is an established process for requesting redistribution rights for hotfixes. I would engage Microsoft customer support to pursue this route.

    0 讨论(0)
  • 2020-12-08 11:33

    We're using registration-free COM for both native and .NET components. We decided to use a fixed assembly version number for these components (mainly to prevent cluttering the registry when repeatedly regasm-ing .NET components that had a dynamic build number/*). Not ideal but we have other ways of determining which version of a given component is being used (they're never patched individually).

    That sounds like a very nasty issue indeed! That KB article almost makes it seem like using SxS is optional... As far as I know it's the only way to do reg-free COM?

    0 讨论(0)
  • 2020-12-08 11:34

    FYI the hotfix is now directly downloadable: http://www.microsoft.com/en-us/download/details.aspx?id=27680

    0 讨论(0)
提交回复
热议问题