I'm trying to find out for a couple of days with no luck what is the problem with an ASP.Net project that had the server migrated from Windows Server 2016 to Windows Server 2019 with only Oracle 19c 64bit client installed.
If I open the solution and build/start it, the website opens in browser and works. If I close and try to build/start it gives the error below.
Could not load file or assembly 'Oracle.DataAccess, Version=4.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
Any help is greatly appreciated.
I registered the dll in the GAC and is shows in project references.

It's in web.config
<add assembly="Oracle.DataAccess, Version=4.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
Versions:
Microsoft Visual Studio Professional 2019
Version 16.11.12
VisualStudio.16.Release/16.11.12+32407.337
Microsoft .NET Framework
Version 4.7.03190
Installed Version: Professional