Unfortunately no - the files are already signed. I don't make the copies - the framework/shadow copy does. Both AppDomains are "pointed" to the exact same folder, however because one is shadow copied, it makes copies elsewhere and then causes these issues.
Dino -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of J. Merrill Sent: Wednesday, 28 February 2007 12:33 To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Alternatives to remoting This might not be right, but if "the same files [loaded] from different locations" are in fact identical, couldn't you let the CLR know that by signing the file before making copies? It should know that two files that have the same name and signature are the same file even though they loaded from different paths. At 03:33 PM 2/27/2007, Dean Cleaver wrote >Hi, > >I've been using Remoting on several projects with great success for >several years now, however I've now struck a hurdle - one of my >projects is an Outlook Addin, and it also loads as OCX controls into >HTML pages in Outlook folders - these are each in separate AppDomains >over which I have no control, and one uses shadow copy one doesn't, so >they load the same files from different locations. This causes remoting >to complain that it can't cast A to A, because it thinks they're >different. Putting them in the GAC isn't really an option either, as >this system is auto-updated over the web while running as a user. >Otherwise, the GAC might have solved the problem. > >The obvious choice is WebServices, but some projects have 150+ classes >in them that I call - I'd have to make 150+ web services, but also I'd >have to add 150+ web references to the Business Services project - >seems very messy to me. > >Another option is to create one massive web service with functions like >Aload, ASave and BLoad etc that call the existing Data Access class >functions, and return the same objects/values. Seems like it would get >out of hand quickly - 150+ classes with 10+ methods each - that's a lot >of functions in one web service. > >Are there any other options I have missed? > >Dino J. Merrill / Analytical Software Corp =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com