Skip to Content
0
Former Member
Mar 03, 2011 at 10:21 PM

Compiling 64 bit app, DSN not being found

45 Views

Good day,

I am compiling a 64 bit VS2010 C# application. Platform is x64.

I using XPx64 SP2. I have installed CRforVS_13_0.exe and CRRuntime_64bit_13_0.msi.

I have created both a 64bit system ODBC DSN and a 32bit system ODBC DSN.

If I compile for 32 bit, all is fine and it uses the 32bit DSN.

If I compile for 64 bit, I get a Database login prompt (where the server name is my DSN, Database is blank and uneditable and I can enter my loginid and password).

using System;
using CrystalDecisions.CrystalReports.Engine;
using System.IO;
using System.Windows.Forms;
using vertica;

...

private void button1_Click(object sender, EventArgs e)
        {
            _rpt = new ReportDocument();
            _rpt.Load(eReportFilename.Text);

            rptviewer.ReportSource = _rpt;
        }

The reason that I am using 64 bit is because some of our reports are very large and think that we are going beyond 32 bit limits.

Thoughts?

-Markus