Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / February 2004

Tip: Looking for answers? Try searching our database.

How to tell a .Net COM+ application which version of the Framework version to use?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Craig Bryden - 30 Jan 2004 14:00 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.