verificationexception

Operation could destabilize the runtime in StructureMap

荒凉一梦 提交于 2019-11-28 10:23:59
I am getting this error in one of my ASP.NET 4.5 MVC application on my local machine. Other applications setup with ASP.NET 4.5 and using StructureMap work fine. Any help/solution on this would be highly appreciated. The line of code that causes this is: using StructureMap; using StructureMap.Graph; namespace Management.Web.DependencyResolution { public static class IoC { public static IContainer Initialize() { ObjectFactory.Initialize(x => { x.Scan(scan => { scan.TheCallingAssembly(); scan.WithDefaultConventions(); scan.Assembly("Management.Core"); scan.Assembly("Management.DAL"); scan

Operation could destabilize the runtime in StructureMap

孤街醉人 提交于 2019-11-27 03:35:31
问题 I am getting this error in one of my ASP.NET 4.5 MVC application on my local machine. Other applications setup with ASP.NET 4.5 and using StructureMap work fine. Any help/solution on this would be highly appreciated. The line of code that causes this is: using StructureMap; using StructureMap.Graph; namespace Management.Web.DependencyResolution { public static class IoC { public static IContainer Initialize() { ObjectFactory.Initialize(x => { x.Scan(scan => { scan.TheCallingAssembly(); scan