Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ASP.net VB.net Operation could destabilize the runtime.

I get the error "Operation could destabilize the runtime" when using the four lines of code below to use the NCalc functionality on my ASP.net site
I put the NCalc DLL in My Documents and referenced it there. The app works when I run it in debug mode but does not
work on my site www.webexcel.co.za

(ncalc.codeplex.com shows a link to the DLL that I a using)
oTableCellValue = "2 * 67 - 6.8 * (23/3)" 'This is just an example line of the type of data that the variable receives
Dim expr As NCalc.Expression = New NCalc.Expression(oTableCellValue)
Dim oNewValue As Decimal = expr.Evaluate()
TableReport.Rows(r).Cells(c).Text = CStr(oNewValue)
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Thanks very much