Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
.Net remoting assembly search bug?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
sean  
View profile  
 More options Jul 2, 8:39 am
From: sean <smcco...@gmail.com>
Date: Thu, 2 Jul 2009 05:39:05 -0700 (PDT)
Local: Thurs, Jul 2 2009 8:39 am
Subject: .Net remoting assembly search bug?
I'm working on a .NET remoting application, and I've read in a number
of places that the .dll that exposes the shared objects in the
remoting interface needs to be copied to the same directory as the
executable for the application, in order for the runtime to find the
assembly when it comes time to access server instantiated objects on
the client app.

It seems strange though, that I can include the shared .dll as a
reference in my client (wherever that dll happens to live ), I can
create instances of the shared objects local to the client from that
shared library (without remoting, to demonstrate that the shared
assembly is loaded), but that shared object returned through remoting
will generate an exception if that same .dll isn't located in a
particular place.

And actually, it gets weirder - I implemented a handler for
AppDomain.AssemblyResolve, and found that if I simply return the
*already loaded* shared assembly remoting needs by pulling it from
AppDomain.CurrentDomain.Load(AssemblyName) everything works.  What
gives?

It looks like the assembly search path for remoting is different from
that used for the application itself, and specifically, that it
doesn't even look for assemblies in the currently loaded AppDomain.
Am I missing something?  This seems to be a common problem out there.
Thank for any help!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sandrino  
View profile  
 More options Jul 4, 4:48 am
From: Sandrino <cont...@sandrino.be>
Date: Sat, 4 Jul 2009 01:48:31 -0700 (PDT)
Local: Sat, Jul 4 2009 4:48 am
Subject: Re: .Net remoting assembly search bug?
You could try to use PROCMON to see where your application is
searching for the assembly.
These tools show all the file access, registry access, ... by an
application.

- sandrino.be

On Jul 2, 2:39 pm, sean <smcco...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean McCormick  
View profile  
 More options Jul 7, 9:20 am
From: Sean McCormick <smcco...@gmail.com>
Date: Tue, 7 Jul 2009 09:20:26 -0400
Local: Tues, Jul 7 2009 9:20 am
Subject: Re: [DotNetDevelopment] Re: .Net remoting assembly search bug?

I know where the application is looking - it's the "standard" assembly
search path, starting from the same directory as the client exe.  What's
weird is it's not searching for the assemblies listed in the app manifest,
and it's not using assemblies that have *already been loaded.*


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google