Hi Jana, I have faced to same problem, and compared my other working project. Found that I had forgotten to add TypedFactoryFacility reference to my project. Just install from Nuget.
Hope this helps. 21 Ağustos 2013 Çarşamba 01:22:25 UTC+3 tarihinde Jana Mandic yazdı: > > I've been struggling to get up and running using the WCF Facility. Finally > I decided to scour the internet for a sample solution so I could get my > bearings. I landed on the DogmaticWcf solution at > https://github.com/serdarb/DogmaticWcf and I can't get that to run > either. It runs fine if I just build it and run it outside the debugger. > But if I try to run it inside VS2010, I get the following exception: > > > System.TypeLoadException crossed a native/managed boundary > HResult=-2146233054 > Message=GenericArguments[0], 'System.ServiceModel.ServiceHostBase', on > 'Castle.Facilities.WcfIntegration.IChannelFactoryBuilder`1[M]' violates the > constraint of type parameter 'M'. > Source=mscorlib > TypeName="" > StackTrace: > at System.RuntimeTypeHandle.Instantiate(RuntimeTypeHandle handle, > IntPtr* pInst, Int32 numGenericArgs, ObjectHandleOnStack type) > at System.RuntimeTypeHandle.Instantiate(Type[] inst) > at System.RuntimeType.MakeGenericType(Type[] instantiation) > InnerException: > > > It's exactly the same exception I've been struggling with in my new code > and in VS2012. The new code uses Windsor 3.2.0 binaries, whereas > DogmaticWcf uses 3.0.0 RC1. > > Any idea what could be causing that exception? I'd *really* like to be > able to put a debugger on the service for when things start to get > complicated... > > Jana > -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/castle-project-users. For more options, visit https://groups.google.com/groups/opt_out.
