List Info

Thread: Re: Per COM+ app .NET config files - not working




Re: Per COM+ app .NET config files - not working
country flaguser name
Australia
2007-06-26 18:39:53
Charles,

Could you recompile the 1.1 app to 2.0?

Seeya
Matthew Wills | Senior Analyst Programmer | Adviser Tools
and Services |
Financial Planning and Third Party | NAB Technology

Phone: 02 9957 8183 | Mobile: 0435 002 520 | Email:
matthew.willsnab.com.au



                                                            
             

             Charles Gamble                                 
             

             <Charles.GambleS                          
                 

             INGULARITY.CO.UK>                           
              To

                                       ADVANCED-DOTNETDISCUSS.DEVELOP.COM

                                                            
           cc

                                                            
             

                                                            
      Subject

                                       [ADVANCED-DOTNET] Per
COM+ app .NET

                                       config files - not
working         

                                                            
             

                                                            
             

                                                            
             

                                                            
             

                                                            
             

                                                            
             





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:windowssystem32 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, bond,
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..c
om

____________________________________________________________
__________
This email has been scanned by the MessageLabs Email
Security System.
For more information please visit http://www.messagela
bs.com/email
____________________________________________________________
__________



National Australia Bank Ltd - ABN 12 004 044 937
This email may contain confidential information. If you are
not the intended recipient, please immediately notify us at
postmasternab.com.au or by replying to the sender, and then
destroy all copies of this email. Except where this email
indicates otherwise, views expressed in this email are those
of the sender and not of National Australia Bank Ltd. Advice
in this email does not take account of your objectives,
financial situation, or needs. It is important for you to
consider these matters and, if the e-mail refers to a
product(s), you should read the relevant Product Disclosure
Statement(s)/other disclosure document(s) before making any
decisions. If you do not want email marketing from us in
future, forward this email with "unsubscribe" in
the subject line to Unsubscriptionsnab.com.au in order to stop
marketing emails from this sender. National Australia Bank
Ltd does not represent that this email is free of errors,
viruses or interference.

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

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


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )