i have a class library in c# and i added that dll as a reference to the web site and I want to access the methods which are in the class library. when I tried accessing those methods using ActiveXobject it throwing an exception saying object cant be created
namespace Office
{
public class Algebra
{
public double Addition(double x, double y)
{
return x + y;
}
}
}
this is my method in c# class library. and my javascript is as follows
(function () {
alert("suresh");
var myobj;
myobj = new ActiveXObject("Office.Algebra");
alert(myobj);
var add = myobj.Addition(7, 6);
alert(add);
})();