Wednesday, 23 December 2020

ASP.NET Core: FileNotFoundException: Could not load file or assembly

 I had a complex solution with multiple projects and NuGet references.

To debug one troublesome Nuget package, I removed the Nuget reference and added a project reference so I could step through the code.

However when the website ran, it would throw the error:

FileNotFoundException: Could not load file or assembly <troublesome assembly>

Investigation

  1. procmon.exe indicated that the website wasn't even loading the assembly - or trying to
  2. <website>.deps.json didn't have a reference to the assembly
  3. Visual Studio Resharper was showing the following popup:


Conclusions

The problem was that I had added the project to the solution, but the project was located in a folder outside of the root solution folder. By taking a copy inside of the root solution folder and re-adding the reference, the <website>.deps.json then included the reference and the assembly loaded.

  1. Check your <website>.deps.json 
  2. Use ProcMon
  3. Make sure that the project referenced is inside your solution folder.


Tuesday, 24 November 2020

Move To iOS - transfer interrupted problem

A common problem described on the reviews of the "Move to iOS" app is that people are being constantly disconnected when transferring files and settings.

FIXED THE TRANSFER INTERRUPTED PROBLEM

What is happening is your Android connects to a local hotspot created on the iPhone. You will notice that the Wifi indicator on the Android has an exclamation mark. This is because it detects it cannot reach the internet, so it disconnects and tries your home LAN again.


Go to Network Settings and FORGET YOUR EXISTING WIFI connections so it cannot reconnect to your home wifi. Then it is forced to stay on the iPhone hotspot.

Sunday, 8 November 2020

Git Settings

Git Difftool with Beyond Compare 3

git config --global diff.tool bc

git config --global difftool.bc.path "C:\Program Files (x86)\Beyond Compare 3\BComp.exe"

git config --global difftool.prompt false

git config --global merge.tool bc

git config --global mergetool.bc.path "C:\Program Files (x86)\Beyond Compare 3\BComp.exe"

git config --global alias.mydiff "difftool --dir-diff --tool=bc --no-prompt"

Git Difftool with Beyond Compare 3 - Linux

git config --global diff.tool bc

git config --global difftool.bc.path '/mnt/c/Program Files (x86)/Beyond Compare 3/BComp.exe'

git config --global difftool.prompt false

git config --global merge.tool bc

git config --global mergetool.bc.path '/mnt/c/Program Files (x86)/Beyond Compare 3/BComp.exe'

git config --global alias.mydiff "difftool --dir-diff --tool=bc --no-prompt"

Git Difftool with Beyond Compare 3 - WSL2

nano ~/.gitconfig

[difftool "bc"]
        cmd = '/mnt/c/Program Files (x86)/Beyond Compare 3/BComp.exe'   \"$(wslpath -aw $LOCAL)\" \"$(wslpath -aw $REMOTE)\"
        trustExitCode = true

Stack Overflow

Carriage return line feeds

Resolved: Git warning LF will be replaced by CRLF in file | vGeek - Tales from real IT system Administration environment (vcloud-lab.com)

Windows uses CRLF (\r\n) whereas Linux and MacOS just use line feed (\n).

You can turn off warnings with

git config core.autocrlf true


Wednesday, 28 October 2020

Search filters for Outlook Web

 https://support.microsoft.com/en-us/office/learn-to-narrow-your-search-criteria-for-better-searches-in-outlook-d824d1e9-a255-4c8a-8553-276fb895a8da

Thursday, 22 October 2020

VSIX install location

 Custom VSIX extensions are saved to


%LocalAppData%\Microsoft\VisualStudio\[Version]\Extensions

Saturday, 5 September 2020

The history of the Service Bus SDK

 An interesting article on the history of the Service Bus SDK:


https://weblogs.asp.net/sfeldman/the-future-of-asb-dotnet-sdk


Tuesday, 18 August 2020

VPN passthrough on Virgin Media Superhub 3.0

 I upgraded to the Virgin Media Superhub 3.0 and discovered VPN passthrough was not working.

The solution was to put it into cable modem mode.