I recently transferred an application written in Visual Studio 2008 from a 32 to 64 bit machine. Everything worked perfectly on the 32 bit machine, but I am recieving the error "Object reference not set to an instance of an object" on the 64
Here are the exact steps I took (on both on the 32 and 64 bit machine):
1.) I downloaded the dll "R.NET" (1.3 (framework 3.5))
2.) Added it to my project as a reference.
3.) Installed R 2.14.2 (I set the path to the i386 version on both)
4.) Verified that the .Net Framework was set to 3.5
5.) Verified that the target CPU was set to x86
The Code is pasted below.
Any suggestions? Thanks!
Public Class Form1
Dim Engine As REngine
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim lsEngArgs(0) As String
lsEngArgs(0) = "-q"
Engine = REngine.CreateInstance("RDotNet", lsEngArgs)
Protected Overrides Sub Finalize()
Engine = Nothing