2015-06-12 41 views
0

完成升级到DNN 7.4后,出现下面列出的错误。一切顺利,安装日志中没有错误。这发生在任何页面,并没有新的依赖关系,我假设Visual Studio ...从DNN 7.0升级到7.4.1(版本升级包)后出错

2015-06-12 17:43:49,567 [scrumorg-stage][Thread:5][ERROR] DotNetNuke.Common.Internal.EventHandlersContainer`1[[DotNetNuke.Services.FileSystem.IFileEventHandlers, DotNetNuke, Version=7.4.1.280, Culture=neutral, PublicKeyToken=null]] - The type initializer for 'DotNetNuke.ExtensionPoints.ExtensionPointManager' threw an exception. 
System.TypeInitializationException: The type initializer for 'DotNetNuke.ExtensionPoints.ExtensionPointManager' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 
    at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) 
    at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) 
    at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) 
    at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) 
    at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) 
    at System.Reflection.CustomAttribute.IsCustomAttributeDefined(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Int32 attributeCtorToken, Boolean mustBeInheritable) 
    at System.Reflection.CustomAttribute.IsDefined(RuntimeType type, RuntimeType caType, Boolean inherit) 
    at System.ComponentModel.Composition.AttributedModel.AttributedPartCreationInfo.IsPartDiscoverable() 
    at System.ComponentModel.Composition.AttributedModel.AttributedModelDiscovery.CreatePartDefinitionIfDiscoverable(Type type, ICompositionElement origin) 
    at System.ComponentModel.Composition.Hosting.TypeCatalog.get_PartsInternal() 
    at System.ComponentModel.Composition.Hosting.TypeCatalog.GetEnumerator() 
    at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) 
    at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) 
    at DotNetNuke.ExtensionPoints.SafeDirectoryCatalog..ctor(String directory) 
    at DotNetNuke.ExtensionPoints.ExtensionPointManager.InitializeMefCompositionContainer() 
    at DotNetNuke.ExtensionPoints.ExtensionPointManager..cctor() 
    --- End of inner exception stack trace --- 
    at DotNetNuke.ExtensionPoints.ExtensionPointManager.ComposeParts(Object[] attributeParts) 
    at DotNetNuke.Common.Internal.EventHandlersContainer`1..ctor() 

任何想法我失踪或可能发生什么?

+0

您是否尝试过在web.config文件中评论该程序集引用? – Keval

+0

尝试下载7.4.1的安装包并从zip包中取出web.config。使用文本比较工具将其与现有的web.config进行比较。我在过去的升级过程中发现了错误,这些错误是由于web.config中缺失的部分造成的。 – DotNetNuclear

+0

好的建议!我从安装版本中取得了web.config,并没有做任何事情,只是更新了连接字符串和机器密钥....仍导致上述错误。奇怪的是,这个错误是指mstest,我想知道如果这个发行版有问题吗? –

回答

1

因此,这个问题最终成为在Ryan升级的DNN网站的BIN文件夹中找到的自定义DLL。

我的非科学的方法来解决,这是到:

  1. 在bin文件夹中删除散装DLLS(保持DLL文件的副本,你不知道哪一个是问题,把它们经过测试)
  2. 加载网站恢复(使用admin /网站设置页)
  3. 看看页面仍然出错,如果是的话,重复步骤1和2

结束了这是导致问题的DLL我相信用于测试的webservice/api URL。删除这些更正了他们正在使用的DNN的7.3.4实例上的问题。

+0

感谢您发布答案克里斯! –

+0

具体而言,单元测试已进入生产组装并已部署(以及对MS测试的参考)。该错误很难追查,因为引发的MEF错误不是程序集特定的......它实际上是任意数量的程序集。 –