Hi all,

 

We have a .NET COM+ application that is written in .NET 1.1. However, we
need to call out to .NET 2.0 DLLs from out .NET COM+ DLLs. 

If we create a dllhost.exe.config file as follows:

<?xml version="1.0" ?>

<configuration>

      <startup>

            <supportedRuntime version="v2.0.50727" />

            <supportedRuntime version="v1.1.4322" />

      </startup>

</configuration>

 

and put into C:\windows\system32 folder this means we can run the .NET
2.0 DLLs successfully.

 

However, this is not a proper solution as it affects all COM+ packages
on the machine. So we tried using the per COM+ app config files as
mentioned in this article:

http://blog.devstone.com/aaron/archive/2004/10/18/310.aspx

 

We cannot get this to work (we are testing on a Windows 2003 machine),
it still loads the .NET 1.1 framework, and all the calls to .NET DLLs
fail stating that file is invalid (as it is a .NET 2.0 DLL).

 

We created an application.config file containing the same text as the
dllhost.exe.config mentioned above. We created an application.manifest
file containing:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0"></assembly>

 

Both files are saved as ANSI text files. They are saved to the root
directory of our app, and the Application Root Directory is set to the
same folder in the COM+ app properties.

 

What could we be doing wrong?

 

Thanks a lot,

            Charles.

 

 


________________________________________________________________________
This e-mail has been scanned for all viruses by MessageLabs.

Singularity operates globally through its offices in New York, London, 
Singapore, Ireland and India. Singularity Limited is incorporated in the United 
Kingdom with Registration Number NI 31519 and its Registered Office at 100 
Patrick Street, Derry, BT48 7EL, United Kingdom.
________________________________________________________________________

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to