我收到以下错误:
Constructor on type 'Glimpse.EF.AlternateType.GlimpseDbProviderServices' not found.
按照How can I get Glimpse to work with EF6?的建议后,我将EF降级到6.02(从6.1.1),但仍然出现错误。我还确保我不再在解决方案的任何地方引用Glimpse。
还有其他方法让我的项目运行起来吗?
修改
为了它的价值添加了堆栈跟踪:
[MissingMethodException: Constructor on type 'Glimpse.EF.AlternateType.GlimpseDbProviderServices' not found.]
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1136
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +128
System.Activator.CreateInstance(Type type, Object[] args) +19
Glimpse.Ado.AlternateType.GlimpseDbProviderFactory`1.GetService(Type serviceType) +382
System.Data.Common.DbProviderServices.GetProviderServices(DbProviderFactory factory) +149
System.Data.Common.DbProviderServices.GetProviderServices(DbConnection connection) +14
System.Web.Providers.ModelHelper.GetStorageMetadata(String providerName, DbConnection connection, String ssdl) +66
System.Web.Providers.ModelHelper.CreateMetadataWorkspace(String providerName, DbConnection connection, String csdl, String ssdl, String msl) +246
System.Web.Providers.ModelHelper.CreateEntityConnection(ConnectionStringSettings setting, String csdl, String ssdl, String msl) +198
System.Web.Providers.ModelHelper.CreateMembershipEntities(ConnectionStringSettings setting) +82
System.Web.Providers.DefaultRoleProvider.RoleExists(String roleName) +138
System.Web.Security.Roles.RoleExists(String roleName) +56
XXXX.Common.Helpers.Security.SecurityHelper.RegisterRoles() in e:\xxxxxx\SecurityHelper.cs:82
XXXX.Platform.Global.Application_Start(Object aSender, EventArgs aEventArgs) in e:\xxxxxx\Global.asax.cs:60
[HttpException (0x80004005): Constructor on type 'Glimpse.EF.AlternateType.GlimpseDbProviderServices' not found.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9936761
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296
[HttpException (0x80004005): Constructor on type 'Glimpse.EF.AlternateType.GlimpseDbProviderServices' not found.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9915300
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
答案 0 :(得分:0)
从BIN文件夹中删除Glimpse dll。