DynamicsNinja / InAppNotificationBuilder

MIT License
11 stars 2 forks source link

System.IO.FileNotFoundException on startup/install #3

Closed bananamufu closed 2 years ago

bananamufu commented 2 years ago

Since updating to version 1.2021.12.1, the following error occurs on startup of the XrmToolbox or on installation of the tool:

System.IO.FileNotFoundException: The file or assembly "System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" or one of its dependencies was not found. The system cannot find the specified file. Dateiname: "System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType) at System.Reflection.RuntimePropertyInfo.get_Signature() at System.RuntimeType.RuntimeTypeCache.MemberInfoCache1.PopulateProperties(Filter filter, RuntimeType declaringType, Dictionary2 csPropertyInfos, Boolean[] usedSlots, ListBuilder1& list) at System.RuntimeType.RuntimeTypeCache.MemberInfoCache1.PopulateProperties(Filter filter) at System.RuntimeType.RuntimeTypeCache.MemberInfoCache1.GetListByName(Char pName, Int32 cNameLen, Byte pUtf8Name, Int32 cUtf8Name, MemberListType listType, CacheType cacheType) at System.RuntimeType.RuntimeTypeCache.MemberInfoCache1.Populate(String name, MemberListType listType, CacheType cacheType) at System.RuntimeType.GetPropertyCandidates(String name, BindingFlags bindingAttr, Type[] types, Boolean allowPrefixLookup) at System.RuntimeType.GetProperties(BindingFlags bindingAttr) at System.ComponentModel.Composition.AttributedModel.AttributedPartCreationInfo.<GetExportMembers>d__34.MoveNext() at System.Linq.Enumerable.Any[TSource](IEnumerable1 source) at System.ComponentModel.Composition.AttributedModel.AttributedPartCreationInfo.HasExports() 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.Linq.Enumerable.d__172.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at System.ComponentModel.Composition.Hosting.DirectoryCatalog.Refresh() at XrmToolBox.PluginManagerExtended.RescanIfRequired() at XrmToolBox.PluginManagerExtended.Recompose() at XrmToolBox.New.PluginsForm.ReloadPluginsList() at XrmToolBox.New.NewForm.d__79.MoveNext()`

Removing the .dll from the plugin folder solves the error and lets the toolbox start up again.

DynamicsNinja commented 2 years ago

Try updating XTB version

bananamufu commented 2 years ago

I'm on the newest version available for me (v1.2021.12.53)

DynamicsNinja commented 2 years ago

Did you restart XTB after updating the tool? I'm on the v1.2021.12.53 of XTB and it's working just fine.

DynamicsNinja commented 2 years ago

Also if you open the XTB root folder (where you can find the XrmToolBox.exe file), can you see the System.Memory.dll file there? If not, something went wrong with the update, you should definitely download the latest version and unpack it manually.

bananamufu commented 2 years ago

Manual re-unpacking did the trick 👍 wonder what went wrong there..