COM+ component calling other COM+ components - “Cannot load type”

后端 未结 3 1790
闹比i
闹比i 2021-01-07 03:57

I have a two .NET assemblies which are registered as COM+ components and I\'m testing them from a regular console application test harness;

Dim objFirst As N         


        
3条回答
  •  一生所求
    2021-01-07 04:08

    Although you obviously resolved the issue with the steps included in the answer, this problem can also occur if you have a version of PowerShell that is not compatible with the assembly you are trying to load.

    For example, you may have an assembly targeting .NET framework 4.5.1, but the PowerShell version you are running is version 2.0. If you upgrade the version to 4.0 or 5.0, you should have no issue.

提交回复
热议问题