I have a project using ODP.Net version 12.2.1100. This project was working fine until opening today. The following line of code is causing the error:
using (var cn = new OracleConnection("User Name={userID}, etc, etc"))
The error being returned is:
Value cannot be null.
Parameter name: path
Inner exception
at System.Security.Permissions.FileIOPermission.CheckIllegalCharacters(String[] str, Boolean onlyCheckExtras)
Things I have tried so far to resolve the issue:
- Changed connection string from EZ Connect to full Oracle string
- Uninstalled and resintalled Oracle.ManagedDataAccess.dll (through NuGet)
- Ensured all config files were up to date
- Created a new simple test console project (which connected fine)
OracleConnection, esp. when you use the full Oracle string.