Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Wed, 16 Jul 2008 11:35:01 -0700,    group: microsoft.public.dotnet.distributed_apps        back       


How to find one excecutable from another   
I need to use the namespace defined in file1.exe in the file2.exe. So far it 
worked as long as both files were in the same folder. Now I need to move one 
of them. I added app.config (below) to the second file with the following 
text, but it did not work. Can somebody help? Maybe there is another way to 
discover file1.exe from file2.exe at runtime (file1 path is available)

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="file1"/>
        <codeBase version="1.42.6.0"
                  href="C:\mypath\file1.exe"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

Note: assembly name and version are correct.
date: Wed, 16 Jul 2008 11:35:01 -0700   author:   Gregory Khra

RE: How to find one excecutable from another   
Please elaborate what's your exact requirement
-- 
----
Sundar Narasiman,
http://msmvps.com/blogs/sundar_narasiman/


"Gregory Khra" wrote:

> I need to use the namespace defined in file1.exe in the file2.exe. So far it 
> worked as long as both files were in the same folder. Now I need to move one 
> of them. I added app.config (below) to the second file with the following 
> text, but it did not work. Can somebody help? Maybe there is another way to 
> discover file1.exe from file2.exe at runtime (file1 path is available)
> 
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
>   <runtime>
>     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
>       <dependentAssembly>
>         <assemblyIdentity name="file1"/>
>         <codeBase version="1.42.6.0"
>                   href="C:\mypath\file1.exe"/>
>       </dependentAssembly>
>     </assemblyBinding>
>   </runtime>
> </configuration>
> 
> Note: assembly name and version are correct.
date: Mon, 11 Aug 2008 05:44:00 -0700   author:   Sundar Narasiman MVP

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us