Hi
I created a COM+ application using .Net 1.0. I have subsequently installed
.Net 1.1 on my computer. It seem that the COM+ app has automatically started
running against 1.1, and is not working properly as a result.
I have found help on how to tell a .Net App(EXE) which Framework version to
use, but how do you tell a COM+ DLL which version to use???
Any help will be greatly appreciated!
Craig
Slava Gurevich - 01 Feb 2004 16:34 GMT
http://blogs.msdn.com/florinlazar/archive/2003/12/04/41369.aspx
>Hi
>
[quoted text clipped - 8 lines]
>
>Craig
Tomas Restrepo \(MVP\) - 01 Feb 2004 16:44 GMT
Craig,
> I created a COM+ application using .Net 1.0. I have subsequently installed
> .Net 1.1 on my computer. It seem that the COM+ app has automatically started
> running against 1.1, and is not working properly as a result.
>
> I have found help on how to tell a .Net App(EXE) which Framework version to
> use, but how do you tell a COM+ DLL which version to use???
It's interesting to note that COM+ *should* load the version of the .NET
framework that your assembly was compiled against by default, but
unfortunately, there are some bugs that can prevent that. There's one COM+
hotfix package that solves that for Win2k and another one for WinXP, though
I don't remember the exact numbers right now...

Signature
Tomas Restrepo
tomasr@mvps.org
Timofey Kazakov - 01 Feb 2004 18:12 GMT
Hello, "Tomas Restrepo (MVP)"
> It's interesting to note that COM+ *should* load the version of the .NET
> framework that your assembly was compiled against by default
> I don't remember the exact numbers right now...
The COM+ (Dllhost.exe) Process Loads the Latest Version of .NET Runtime During Remote Client Activations
PSS ID Number: 328925
Timofey Kazakov - 01 Feb 2004 17:56 GMT
Hello, "Craig Bryden"
> I created a COM+ application using .Net 1.0. I have subsequently installed
> .Net 1.1 on my computer. It seem that the COM+ app has automatically started
> running against 1.1, and is not working properly as a result.
>
> I have found help on how to tell a .Net App(EXE) which Framework version to
> use, but how do you tell a COM+ DLL which version to use???
COM+ uses dllhost.exe as host process. You can create dllhost.exe.config and put it in system32 directory
<configuration>
<startup>
<requiredRuntime version="v1.0.3705" safemode="true"/>
</startup>
</configuration