kristofferahl / FluentSecurity

Fluent Security configuration for ASP.NET MVC
MIT License
163 stars 47 forks source link

Possible TypeLoadException with FluentSecurity.2.0.0-beta1 #61

Closed kristofferahl closed 11 years ago

kristofferahl commented 11 years ago

In beta 1 of FluentSecurity v.2.0 we have introduced an event pipeline that is used for diagnostic purposes. https://github.com/kristofferahl/FluentSecurity/wiki/Diagnostics-2.0#diagnostics-pipeline-securitydoctor

When bootstrapping FluentSecurity we scan for eventlisteners in the loaded assemblies. In some cases you might get a TypeLoadException when running beta1. Do not worry, there will be a second beta available soon that adresses this issue.

The TypeLoadException is not caused by FluentSecurity so you can continue to use beta1 if you are willing to deal with the underlying issue (and you probably should).

kristofferahl commented 11 years ago

Just pushed the beta 2 nuget package to the public nuget feed. It includes a fix for this issue. https://github.com/kristofferahl/FluentSecurity/commit/8fb9c256fac9c8c28e23f99e83c110974bcc1a51