1
Vote

Constructor on type 'Glimpse.EF.AlternateType.GlimpseDbProviderServices' not found on 3d party DNN modules (2sic)

description

Hello,

Glimpse is a great tool for analyzing performance on DNN, but it seems to have incompatibility with some 3d party DNN modules (2sic module https://sexycontent.codeplex.com/)

Here is the message :

Error: [Module name] is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Unfortunately we don't support using Glimpse.Ado without using Glimpse.EF when you are using EntityFramework. This is due to the way in which EntityFramework handles particular cases.

Here is the complete call stack:

DotNetNuke.Services.Exceptions.ModuleLoadException: Unfortunately we don't support using Glimpse.Ado without using Glimpse.EF when you are using EntityFramework. This is due to the way in which EntityFramework handles particular cases. ---> System.NotSupportedException: Unfortunately we don't support using Glimpse.Ado without using Glimpse.EF when you are using EntityFramework. This is due to the way in which EntityFramework handles particular cases.
at Glimpse.Ado.AlternateType.GlimpseDbProviderFactory1.GetService(Type serviceType) at System.Data.Common.DbProviderServices.GetProviderServices(DbProviderFactory factory) at System.Data.Metadata.Edm.StoreItemCollection.Loader.InitializeProviderManifest(Action3 addError)
at System.Data.EntityModel.SchemaObjectModel.Schema.HandleAttribute(XmlReader reader)
at System.Data.EntityModel.SchemaObjectModel.SchemaElement.ParseAttribute(XmlReader reader)
at System.Data.EntityModel.SchemaObjectModel.SchemaElement.Parse(XmlReader reader)
at System.Data.EntityModel.SchemaObjectModel.Schema.HandleTopLevelSchemaElement(XmlReader reader)
at System.Data.EntityModel.SchemaObjectModel.Schema.InternalParse(XmlReader sourceReader, String sourceLocation)
at System.Data.EntityModel.SchemaObjectModel.Schema.Parse(XmlReader sourceReader, String sourceLocation)
at System.Data.EntityModel.SchemaObjectModel.SchemaManager.ParseAndValidate(IEnumerable1 xmlReaders, IEnumerable1 sourceFilePaths, SchemaDataModelOption dataModel, AttributeValueNotification providerNotification, AttributeValueNotification providerManifestTokenNotification, ProviderManifestNeeded providerManifestNeeded, IList1& schemaCollection) at System.Data.Metadata.Edm.StoreItemCollection.Loader.LoadItems(IEnumerable1 xmlReaders, IEnumerable1 sourceFilePaths) at System.Data.Metadata.Edm.StoreItemCollection.Init(IEnumerable1 xmlReaders, IEnumerable1 filePaths, Boolean throwOnError, DbProviderManifest& providerManifest, DbProviderFactory& providerFactory, String& providerManifestToken, Memoizer2& cachedCTypeFunction)
at System.Data.Metadata.Edm.StoreItemCollection..ctor(IEnumerable1 xmlReaders, IEnumerable1 filePaths)
at System.Data.Metadata.Edm.MetadataCache.StoreMetadataEntry.LoadStoreCollection(EdmItemCollection edmItemCollection, MetadataArtifactLoader loader)
at System.Data.Metadata.Edm.MetadataCache.LoadItemCollectionT
at System.Data.Metadata.Edm.MetadataCache.GetOrCreateStoreAndMappingItemCollections(String cacheKey, MetadataArtifactLoader loader, EdmItemCollection edmItemCollection, Object& entryToken)
at System.Data.EntityClient.EntityConnection.LoadStoreItemCollections(MetadataWorkspace workspace, DbConnection storeConnection, DbProviderFactory factory, DbConnectionOptions connectionOptions, EdmItemCollection edmItemCollection, MetadataArtifactLoader artifactLoader)
at System.Data.EntityClient.EntityConnection.GetMetadataWorkspace(Boolean initializeAllCollections)
at System.Data.EntityClient.EntityConnection.InitializeMetadata(DbConnection newConnection, DbConnection originalConnection, Boolean closeOriginalConnectionOnFailure)
at System.Data.EntityClient.EntityConnection.Open()
at System.Data.Objects.ObjectContext.EnsureConnection()
at System.Data.Objects.ObjectQuery1.GetResults(Nullable1 forMergeOption)
at System.Data.Objects.ObjectQuery1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector)
at ToSic.Eav.EavContext.GetAllZones()
at ToSic.Eav.DataSources.Caches.BaseCache.EnsureCache()
at ToSic.Eav.DataSources.Caches.BaseCache.GetZoneAppId(Nullable1 zoneId, Nullable1 appId)
at ToSic.Eav.DataSource.GetZoneAppId(Nullable1 zoneId, Nullable1 appId)
at ToSic.Eav.DataSource.GetDataSource(String sourceName, Nullable1 zoneId, Nullable1 appId, IDataSource upstream, IConfigurationProvider configurationProvider)
at ToSic.Eav.EavContext.InitZoneApp(Nullable1 zoneId, Nullable1 appId)
at ToSic.Eav.EavContext.Instance(Nullable1 zoneId, Nullable1 appId)
at ToSic.SexyContent.SexyContent..ctor(Int32 zoneId, Int32 appId, Boolean enableCaching, Nullable`1 ownerPortalId)
at ToSic.SexyContent.SexyControlEditBase.get_Sexy()
at ToSic.SexyContent.SexyControlEditBase.get_Elements()
at ToSic.SexyContent.SexyControlEditBase.get_Template()
at ToSic.SexyContent.SexyControlEditBase.get_IsList()
at ToSic.SexyContent.SexyViewContentOrApp.get_ModuleActions()
--- End of inner exception stack trace ---

The Error is related to a missing EF dll, so I installed all the needed dependencies (Glimpse.EF6.dll + EntityFramework.dll) but I'm blocked at another error :

DotNetNuke.Services.Exceptions.ModuleLoadException: Constructor on type 'Glimpse.EF.AlternateType.GlimpseDbProviderServices' not found.

Can you help me ? What am I missing ?

comments

dukesb11 wrote Feb 9, 2015 at 3:49 PM

Sorry, that's a limitation of Glimpse's SQL support. The quickest way to get around it is to delete the Glimpse.ADO.dll file from your website's bin folder.

Hope it helps.

mconta wrote Feb 10, 2015 at 1:10 PM

Solved!!! Thank you Brian Dukes!!!!!

Great support !