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

后端 未结 3 1792
闹比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 03:58

    I have finally found a solution to the problem described above. I'm answering the question myself here to save anyone else the pain that I went through trying to get this to work.

    • Go to Component Services > COM+ Applications > YourComApplication

    • Bring up the properties window for YourComApplication and go to the Activation tab.

    • Under "Application Root Directory", supply the path in which your DLLs reside.

    • Create an "application.manifest" file for your COM+ application and put it in the same directory as above. A sample file looks like this;

    
    
    
    
    • This final step is what I had missed before and this solution will not work without it.

    Also, make sure that you have a separate directory for each of your COM+ applications. This approach will allow you to have mulitple COM+ applications based on .NET assemblies calling each other without anything having to be in the GAC.

提交回复
热议问题