grc2001,
You use explicit rPath to set environment variables, but your process is 32 bits ("This 32-bit process failed to load the library R.dll" ) and you specify the path to 64 bits R ("string rPath = Path.Combine(rHome, @"bin\x64");"). It cannot work. You need to change your c# project settings to run in 64 bits, or specify the path to 32 bits R.
Regarding the first issue encountered, if the windows registry keys are indeed not set up, it behaves as it should, If you do have R reg keys set, report the overall content, as it is possibly a bug.
the page http://jmp75.github.io/rdotnet/ts_paths_on_windows/ provides some material to help diagnose such issues.
You use explicit rPath to set environment variables, but your process is 32 bits ("This 32-bit process failed to load the library R.dll" ) and you specify the path to 64 bits R ("string rPath = Path.Combine(rHome, @"bin\x64");"). It cannot work. You need to change your c# project settings to run in 64 bits, or specify the path to 32 bits R.
Regarding the first issue encountered, if the windows registry keys are indeed not set up, it behaves as it should, If you do have R reg keys set, report the overall content, as it is possibly a bug.
the page http://jmp75.github.io/rdotnet/ts_paths_on_windows/ provides some material to help diagnose such issues.