Yes, I jus got the latest code from trunk and built the Silverlight version (but had to change a few things to get it to compile) and it fixed my problem. Let me know if I can be of help.
Mark -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Adam Tybor Sent: Monday, 15 June 2009 7:45 a.m. To: Rhino.Mocks Subject: [RhinoMocks] Re: Silverlight/Unity I was having this issue with non silverlight as well. I am assuming the patch to DP fixed it everywhere? I will need to rebuild from trunk and verify. On Jun 8, 10:02 pm, Mark <[email protected]> wrote: > I raised an issue > <http://support.castleproject.org/projects/DYNPROXY/issues/view/DYNPRO... > UE-92> for this and someone has fixed it already in the Castle's trunk. > > I can't find a Silverlight version on the Castle build site so not sure if > this is supported or not. > > I downloaded the Castle source and modified the Silverlight version until it > compiled and have built the Dynamic Proxy (+ core) and it fixes my issue but > not sure if I have broken anything else in the process. I will try and get > someone from the Castle devs to look at it. > > In the meantime if anyone else faces this issue they can get a version of > RhinoMocks (Silverlight) I built against the updated castle binaries here > <http://www.walkersretreat.co.nz/files/Rhino.Mocks%203.5.Silverlight.zip> . > > The Castle Binaries are here > <http://www.walkersretreat.co.nz/files/Castle.zip> . > > And the patch for the Castle source is here > <http://www.walkersretreat.co.nz/files/DYNPROX-92-Silverlight.patch> . > > It may help someone. > > Cheers > > Mark > > From: Mark [mailto:[email protected]] > Sent: Monday, 8 June 2009 3:25 p.m. > To: '[email protected]' > Subject: RE: Silverlight/Unity > > Turns out this is a bug in Castle's Dynamic Proxy (not just the Silverlight > version). I have posted on the Castle-users group a failing test: > > http://groups.google.com/group/castle-project-users/browse_thread/thr... > 499bdaf73071?hl=en# > <http://groups.google.com/group/castle-project-users/browse_thread/thr... > 1499bdaf73071?hl=en> > > Will have to wait and see if it gets fixed, then will need to be put into > Silverlight version before I can use it . L > > From: Mark [mailto:[email protected]] > Sent: Friday, 5 June 2009 4:06 p.m. > To: '[email protected]' > Subject: Silverlight/Unity > > Hi all, > > I have just started using the Silverlight version of Rhino Mocks but I'm > having some problems. > > I am using the Prism framework with the default IOC container which is > Unity. > > In my real app when I do this: > > MockContainer = MockRepository.GenerateStub<IUnityContainer>(); > > EntityConverter<Port> pec = new EntityConverter<Port>(ActivePorts); > > MockContainer.Expect(x => x.Resolve > <IValueConverter>("ActivePorts")).Return(pec); > > When the last line is hit the code just seems to never return and continue > (no error - just kind of hangs). I've also tried. > > MockContainer.Expect(x => x.Resolve <IValueConverter>("ActivePorts")); > > .and. > > MockContainer.Expect(x => x.Resolve <IValueConverter>()); > > .and. > > MockContainer.Expect(x => x.Resolve(typeof(IValueConverter))); > > .all to the same effect > > I tried to reproduce this in a simple test app and I get an error: > > BadImageFormatException occurred > > An attempt was made to load a program with an incorrect format. (Exception > from HRESULT: 0x8007000B) > > I'm not sure whether this is a red-herring or not. > > Here is the test app including dlls I am using (~900kb): > > http://www.walkersretreat.co.nz/files/RhinoSL.zip > > If someone using Silverlight could take a look (and compare with what they > have, perhaps?), I'd appreciate it! > > Thanks > > Mark --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/RhinoMocks?hl=en -~----------~----~----~----~------~----~------~--~---
