5
Answers

Could not load file or assembly Error?

Raja

Raja

8y
241
1
Could not load file or assembly 'Microsoft.Office.Interop.Excel' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
 
 
 
Error is occurs  
 
 how to fix it.
 
I refer some solutions they are tell install  MS Office (MS Excel) but still show the same error how to fix
Answers (5)
1
Nitin Sontakke

Nitin Sontakke

NA 11.7k 2.2k 8y
You have used int.TryParse, similarly just use double.TryParse. That's all you have to do.
Accepted
2
ketan borsdiya

ketan borsdiya

NA 1.5k 3k 8y
Hi Raja,
Use below code snippet for your problem,
var regex = new Regex(@"^[0-9]*(?:\.[0-9]*)?$");
if (regex.IsMatch(ds.Tables[s].Rows[i][Columncountvalue + 10].ToString().Trim()))
{
//statement
}
0
Raja

Raja

NA 1.7k 45.2k 8y
Thank you so much