Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Application keeps giving NET Framework issues with the latest version. #42

Closed
TF2-Gaming opened this issue Sep 10, 2022 · 17 comments
Closed
Labels
bug Something isn't working

Comments

@TF2-Gaming
Copy link

After clean installing Windows 11 22H2 build 22622.590, and making sure all apps and frameworks are updated, when I try to launch WinPaletter, there are many NET Framework issues that occur when I use the app. This did not happen in previous versions. These issues occur when launching, when attempting to change settings, and even when closing the app.
image

@Abdelrhman-AK
Copy link
Owner

Can you click on details and show me the whole details?...

@TF2-Gaming
Copy link
Author

TF2-Gaming commented Sep 11, 2022

Hey, because the size of the details was too large for one image to cover all of it, I'll just upload the text of the details here.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at WinPaletter.CP..ctor(Mode Mode, String PaletteFile)
at WinPaletter.MainFrm.MainFrm_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

WinPaletter
Assembly Version: 1.0.5.0
Win32 Version: 1.0.5.0
CodeBase: file:///C:/Users/mundy/Downloads/WinPaletter.exe

Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

System.Deployment
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll

System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll

Animator
Assembly Version: 1.0.3.0
Win32 Version: 1.0.5.0
CodeBase: file:///C:/Users/mundy/Downloads/WinPaletter.exe

ColorThief.Desktop.v46
Assembly Version: 1.1.0.1
Win32 Version: 1.0.5.0
CodeBase: file:///C:/Users/mundy/Downloads/WinPaletter.exe

Cyotek.Windows.Forms.ColorPicker
Assembly Version: 1.0.0.0
Win32 Version: 1.0.5.0
CodeBase: file:///C:/Users/mundy/Downloads/WinPaletter.exe

System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

@Abdelrhman-AK
Copy link
Owner

Abdelrhman-AK commented Sep 11, 2022

Can you show me some registry keys? I suspect some and I want to make sure that they are the reason...

  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent and Double Click on "AccentPalette" to see its value

I mainly suspect this key (Microsoft maybe modified number of entries of accent color array), but I want to make sure about the others as well,

  • HKEY_CURRENT_USER\Control Panel\Colors
  • HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM
  • HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  • HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Personalization
  • HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System
  • HKEY_CURRENT_USER\Software\WinPaletter\Cursors

@Abdelrhman-AK Abdelrhman-AK added the bug Something isn't working label Sep 11, 2022
@TF2-Gaming
Copy link
Author

TF2-Gaming commented Sep 11, 2022 via email

@Abdelrhman-AK
Copy link
Owner

Abdelrhman-AK commented Sep 11, 2022

Edit: I found the bug. Try to create a reg value in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon with name Background and String Value 0 0 0
If this fixes the issue, then it is 100% the bug not this
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent

0

@Yuriy-RU
Copy link

Hello!
Perhaps my problem will suggest a solution to yours.
Windows 10 Pro x64 (2009 build 19044).
Screenshot_220911_194432
With this position in the registry, the program works fine, but as soon as I change this,
Screenshot_220911_193952
I get an error when starting the program:
Screenshot_220911_194136

@Abdelrhman-AK
Copy link
Owner

Abdelrhman-AK commented Sep 11, 2022

That is fine.. , however, the program saves this reg key without # (# only is written in Windows 8.1)
I'll investigate more about these registry keys, fix these and push an update today or tomorrow.

@Abdelrhman-AK
Copy link
Owner

@TF2-Gaming @Yuriy-RU
Can you use latest version and see if there is this bug or not ?
https://github.com/Abdelrhman-AK/WinPaletter/releases/tag/v1.0.5.1

@TF2-Gaming
Copy link
Author

TF2-Gaming commented Sep 11, 2022 via email

@Abdelrhman-AK
Copy link
Owner

You're welcome!

@Yuriy-RU
Copy link

Yes, the problem with logging into the program has been solved.
But when I make any changes in Win32UI (without logging into LogonUI) after saving, the registry [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization] changes for some reason (screenshots in the previous post).

@Abdelrhman-AK
Copy link
Owner

This is extremely weird as I have tested this multiple times yesterday ...

Can you delete the wrong "PersonalColors_Background" and reuse the application and see what will happen?

@Yuriy-RU
Copy link

Yuriy-RU commented Sep 12, 2022

I am a regular user (not a programmer).
Which I did before:
From the link in your thread found a way to make the Ctrl+Alt+Del panel black (instead of gray).
Applied reg file (Salmon_Red_Not_Theme.reg) and Ctrl+Alt+Del panel became black, also noticed that PersonalColors_Background REG_DWORD changed to PersonalColors_Background REG_SZ.
And now when I apply your program, the Ctrl+Alt+Del panel is reset to gray (PersonalColors_Background REG_DWORD).
Removed both, it (Ctrl+Alt+Del panel) always resets to gray.

@Abdelrhman-AK
Copy link
Owner

@Yuriy-RU

I'll remove all PersonalColors_Background, PersonalColors_Accent and Background

They all caused bugs in Windows after setting them correctly, their usage is mainly for Windows 8.1, not Windows 10

@Yuriy-RU
Copy link

Abdelrhman-AK
1.0.5.2
My problem solved. A great combine for "personalization". Thank you.

@Abdelrhman-AK
Copy link
Owner

You're welcome!

@TF2-Gaming
Copy link
Author

TF2-Gaming commented Oct 11, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants