I created a Wcf service to support an Ajax page (.Net 3.5). He participated in the IIS 6.1 Integrated Pipeline. (The rest of Autofac is correctly configured for Web Forms integration.)
Everything works fine and dandy with the usual Wcf pipeline. However, when I plug in Autofac Wcf Integration (according to the Autofac wiki), I get this delicious exception:
[SecurityException: this assembly does not partially trust callers.] Autofac.Integration.Wcf.AutofacHostFactory.CreateServiceHost (String constructorString, Uri [] baseAddresses) in c: \ Work \ Autofac \ src \ Source \ Autofac.Integration.Wcf \ AutofHost .cs: 78 System.ServiceModel.HostingManager.CreateService (String normalizedVirtualPath) +604 System.ServiceModel.HostingManager.ActivateService (String normalizedVirtualPath) +46 System.ServiceModel.HostingManager.EnsureServiceAvableablevalable +65
My google-fu didn't help me find a solution to this problem. Any ideas or workarounds would be appreciated.
source
share