Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Remoting and ActiveX - Location of .Net Assemblies

Reply
 
Old 11-18-2008   #1 (permalink)
Steve G


 
 

Remoting and ActiveX - Location of .Net Assemblies

I have a VB6 ActiveX exe application that uses a .Net DLL that is exposed as
a COM DLL. The VB6 application is stored in ParentFolder. The .Net DLL is
stored and registered in ChildFolder. I have several other .Net DLL's (Com
exposed) loaded in ParentFolder that are used by the VB6 app. I have 2 setup
programs to install the software. The main server software is in
ParentFolder, the optional special software is loaded to ChildFolder only
when needed.

The .Net DLL does a remoting call to another computer that is setup as the
remoting server, hence the server is now the client. The response from the
remote computer is returned but the application fails because of a missing
assembly. The missing assembly is present in ChildFolder not ParentFolder.

This works just fine if the 2 software systems are installed in the same
folder.

It appears that on the return from remoting, the location of the original
VB6 application is used to look for the .Net assemblies instead of the COM
registered location, ChildFolder.

Is there a way to specify the location of the assembly so that I can keep
the 2 folder architecture???

The remoting config file contains very little info:

Client Remoting config file:
<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel ref="tcp" secure="true"
TokenImpersonationLevel="identification" port="0" />
</channels>
<clientProviders>
<formatter ref="binary" />
<formatter ref="soap" />
</clientProviders>
<serverProviders>
<provider ref="wsdl" />
<formatter ref="soap" typeFilterLevel="Full" />
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</application>
<customErrors mode="Off"/>
</system.runtime.remoting>
</configuration>
--
Steve G

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Powershell Assemblies PowerShell
Powershell 2.0 with remoting : ok what is Remoting ? PowerShell
Powershell assemblies PowerShell
ActiveX Control prompt "An ActiveX control on this page might be u Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46