2015-06-12 101 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錯誤不是程序集特定的......它實際上是任意數量的程序集。 –