Having trouble

when I run this function:

I get error: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

private Aspose.Cells.License license;
public Aspose.Cells.Workbook oExcel;
public Aspose.Cells.Worksheet worksheet;
private Aspose.Cells.Cell cell;
public System.Drawing.Color CellFormat;
public Aspose.Cells.FillFormat FillFormat;
public Aspose.Cells.Cells Cells;

public void TestLicense()
{
int ii = 0;
ii++;

try
{
int s = ii;
license = new Aspose.Cells.License();
//license = new License();
}
catch (CellsException ex)
{
throw new Exception("Error on License(new)" + ex.Message);
}
bool bLicenseFound = false;
string licfile;
licfile = "";

try
{

if (File.Exists(@"c:\program files\gates\PartsTrak\Aspose.Cells.Lic") && !bLicenseFound)
{
licfile = @"c:\program files\gates\PartsTrak\Aspose.Cells.lic";
bLicenseFound = true;
}
if (File.Exists(@"d:\partstrakdataload\service executable\Aspose.Cells.Lic") && !bLicenseFound)
{
licfile = @"d:\partstrakdataload\service executable\Aspose.Cells.Lic";
bLicenseFound = true;
}
if (File.Exists(Environment.CurrentDirectory + "\\Aspose.Cells.lic") && !bLicenseFound)
{
licfile = Environment.CurrentDirectory + "\\Aspose.Cells.lic";
bLicenseFound = true;
}
if (bLicenseFound == true)
license.SetLicense(licfile);
else
throw new Exception("Could not find license file.");
}
catch (Exception ex)
{
throw new Exception("Could not SetLicense:" + licfile + ":" + ex.Message);
}



try
{
if (bLicenseFound)
{
try
{
oExcel = new Aspose.Cells.Workbook();
}
catch (CellsException ex)
{
throw new Exception("Error creating objct Aspose.Cells.Excel:" + ex.Message);
}

}
else
throw new Exception("Expose License File not found (.lic)");

}
catch (Exception ex)
{
throw (ex);
}

}

This message was posted using Page2Forum from Introduction - Aspose.Cells for .NET

the problem is an install issue.


I figured it out by selecting the second aspose.cells in the list of options (for references).