Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Unassigned: TargetInvocationException and MethodAccessException in new builds with self host [1209]

$
0
0
After updating from nightly 2013 Jul 20 build to 2013 Aug 09 build from myget and I'm receiving this error upon the startup of the host:

using (WebApp.Start<Startup>(serverUrl)

The error is:

"Inheritance security rules violated while overriding member: 'Autofac.Integration.WebApi.AutofacWebApiDependencyResolver.BeginScope()'.
Security accessibility of the overriding method must match the security accessibility of the method being overriden.":"Autofac.Integration.WebApi.AutofacWebApiDependencyResolver.BeginScope()"

What has been changed in terms of added .Net security to the new version and what modification do I've to apply to my host assembly to make it work with the newer builds?

Specifying SecurityTransparent does not work, since then I get this error:

Attempt by security transparent method 'Host.Program.Main(System.String[])' to access security critical method 'Microsoft.Owin.Hosting.WebApp.Start<Host.Startup>(System.String)' failed.

Thanks for the help,
Attila

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>