Autofac Wcf Integration Security Problem

Posted by ecoffey on Stack Overflow See other posts from Stack Overflow or by ecoffey
Published on 2010-03-11T23:56:24Z Indexed on 2010/03/12 19:17 UTC
Read the original article Hit count: 792

Filed under:
|

I've created a Wcf Service to back a Ajax page (.Net 3.5). It's hosted in IIS 6.1 Integrated Pipeline. (The rest of Autofac is setup correctly for Web Forms integration).

Everything works fine and dandy with the normal Wcf pipeline. However when I plug in the Autofac Wcf Integration (as per the Autofac wiki) I get this delightful exception:

[SecurityException: That assembly does not allow partially trusted callers.] Autofac.Integration.Wcf.AutofacHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) in c:\Working\Autofac\src\Source\Autofac.Integration.Wcf\AutofacHostFactory.cs:78 System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +604 System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +46 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +654

My Google-fu has failed me on finding a solution to this problem. Any insights or workarounds would be appreciated.

© Stack Overflow or respective owner

Related posts about autofac

Related posts about wcf