WinDynamicDesktop icon indicating copy to clipboard operation
WinDynamicDesktop copied to clipboard

WDD not starting with Windows 7.

Open MD-DeCode opened this issue 8 years ago • 8 comments

In log file:

System.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта. в WinDynamicDesktop.ThemeManager.Initialize() в WinDynamicDesktop.AppContext..ctor() в WinDynamicDesktop.Program.Main()

MD-DeCode avatar Aug 24 '18 16:08 MD-DeCode

The latest version of the app should run fine on Windows 7. Are you trying with the latest version 2.0.1?

Could you try deleting all other files inside the folder where the app EXE is (images and themes folders, settings.conf file, etc.) and verify that the app still does not run? If you still get the same error message I'll look into it more, currently I don't have any idea what would be causing it.

t1m0thyj avatar Aug 25 '18 13:08 t1m0thyj

not working on w7

log file:

System.TypeLoadException: Não foi possível carregar o tipo 'System.Collections.Generic.IReadOnlyDictionary2' da assemblagem 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. em Newtonsoft.Json.Utilities.CollectionUtils.IsDictionaryType(Type type) em Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType) em System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func`2 valueFactory) em Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type) em Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) em Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) em Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) em Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) em WinDynamicDesktop.JsonConfig.LoadTheme(String name) em WinDynamicDesktop.ThemeManager.Initialize() em WinDynamicDesktop.AppContext..ctor() em WinDynamicDesktop.Program.Main()

samorinha avatar Oct 17 '18 22:10 samorinha

@samorinha Thanks for including the full error log. It seems like the app is crashing when it tries to load the theme JSON files. I'm not sure why this would happen unless you were creating a custom theme file and the contents were not valid JSON? But if you never created your own theme file then this is a bug.

t1m0thyj avatar Oct 18 '18 03:10 t1m0thyj

Hi, not creating anything, after Install it just does not Launch...

samorinha avatar Oct 18 '18 07:10 samorinha

I believe I see what the problem is now based on the log. It is trying to load version 4.0.0.0 of a .NET DLL, but WinDynamicDesktop is built to target .NET Framework 4.6.1. Perhaps your machine does not have a new enough version of .NET Framework to run the app. Could you try installing .NET Framework 4.6.1 (download link) and see if that fixes the problem?

If you want to check which .NET Framework versions are installed on your machine, there are instructions for how to do that here.

t1m0thyj avatar Oct 18 '18 11:10 t1m0thyj

I believe I see what the problem is now based on the log. It is trying to load version 4.0.0.0 of a .NET DLL, but WinDynamicDesktop is built to target .NET Framework 4.6.1. Perhaps your machine does not have a new enough version of .NET Framework to run the app. Could you try installing .NET Framework 4.6.1 (download link) and see if that fixes the problem?

If you want to check which .NET Framework versions are installed on your machine, there are instructions for how to do that here.

updating the framework dit it! working ok now!! thanks

samorinha avatar Oct 18 '18 21:10 samorinha

Installing .NET Framework 4.6.1 download link should fix this issue. I'll add a note to the README about this and maybe put code in the installer that checks what versions of the framework are installed.

t1m0thyj avatar Oct 19 '18 05:10 t1m0thyj

sorry, but I have the same problem while using .NET Framework 4.6.1 or latest version(Win 10). what should I do now?

System.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта. в WinDynamicDesktop.UpdateHandler.UpdateToVersion4() в WinDynamicDesktop.JsonConfig.LoadConfig() в WinDynamicDesktop.AppContext..ctor(String[] args) в WinDynamicDesktop.Program.Main(String[] args)

m1cham0v avatar Apr 21 '21 23:04 m1cham0v