Visual studio outputs this message during build. when updating nuget packages, in a log message more or less like this: Resolution: Create a new registry DWORD value called LoaderOptimization and give it the value 1 within the key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework”. see also: https://stackoverflow.com/questions/42240956/loading-this-assembly-would-produce-a-different-grant-set-from-other-instances see also: https://learn.microsoft.com/en-us/archive/msdn-technet-forums/5db05238-3c12-4e7e-af95-ca56545f0721 see also: https://blog.bugrapostaci.com/2017/02/08/loading-this-assembly-would-produce-a-different-grant-set-from-other-instances-exception-from-hresult-0x80131401/
Author: bobnoordam
Network discovery does not stay turned on (server 2022)
Problem: If you turn on network discovery on server 2022 and save changes, it does not stay turned on. Additionaly you may see domain and private networks set to type ‘public’ Solution: Some of the services below are set to manual or disabled on default installs, set them to automatic start Lastly, make sure Windows […]
Solved: White screen on google chrome / msedge / new teams / CEF application
Jan. 2024 Symptom: Observed on: Workaround: Cause: Resolution: After removing the keys the sandboxing will no longer crash with an (unrelated?) GPU error and the application will work as normal.
Failed to update binding redirects […] Exception has been thrown by the target of an invocation.
Scope: This seems to happen only on .NET framework 4.8 projects (YMMV) Problem: A combination of assembly loading results in different grant sets Workaround: Create a new DWORD registry value called LoaderOptimization as below: [ see also 1 ] [ see also 2 ]
Flexbox
Establish the main container either inline or as block (below as block). All the children will pop into the container. Next, we can establish the direction of the flex, going left,right, down or up Next, we establish what we want to do with wrapping. The default is all goes in a single line, but we […]
Setting a default resolution for HYPER-V console (Linux)
This is the more pratical and quick way to set a default resolution for say a Linux desktop version installation under hyper-v: Depending on how modern your distribution is, there may be more work to do. If you are still stuck on the default 1024×768, make the following changes on the Linux guest: Now change […]
So which program is using port xxxx on my server
Finding which program is using a specific port on a windows server is a 2 step process: First, we want to get the process id that registered the port, In my case, i had a process using port 8000 that appeared to be a webserver, but did not give away any further info. output: That […]
Performance counter browser
A simple windows tool to browse performance counters on your local system In the first column, the list of categories is shown Upon selection, the second column will show the list of instance After which the third column will show the actual list of performance counters If you select an actual counter, the bottom right will show you a sample from the counter with a 1 second interval. Source and releases can be downloaded from github
Server 2019 timezone setting annoyance
Problem: You are unable to change Windows server 2019 timezone settings, not even as domain administrator or local administrator Resolution: Use the tzutil.exe command line tool from an elevated powershell prompt. Example below:
Untrusted file warning opening application from domain share
When opening an application from a domain share on windows server, you may still be prompted that the location is outside your local network and is considered unsafe. Resolution: Disable internet explorer enhanced security