May 24, 2018 06:21 PM|turbosupramk3|LINK
For anyone that stumbles upon this in a search
As a last resort, I created a new project and copied the code over and it still occurred, then I created an empty project and it still occurred, so I closed all instances of Visual Studio and (presumably) cleared out any cache or memory objects and then
the same code that was failing worked properly.
I made many suggested changes I found on the internet when troubleshooting this, so the fix may have been a combination of those and closing Visual Studio.