Hello Coders :),

           feel good when error comes..but when it take lots of time and make me fail to solve,getting eritate mind... SO finaly comming to you guys with one hope that you all will help me to solve this....

           I am working on asp(Classic) application ..to converting old classic funtionality into new aspx pages...Now i am at one point that have to must run some code via asp.net application..but getting error in my below code...

  MSScriptControl.ScriptControl sc = new MSScriptControl.ScriptControl();
  sc.Language = "VBScript";
  string expression = "1 + 2 * 7"; //it will having any vb script....
  object result = sc.Eval(expression);

Now what is the error : it as below:
Retrieving the COM class factory for component with CLSID {0E59F1D5-1FBE-11D0-8FF2-00A0D10038BC} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

For you Note: what i have done:!!
I have add refernce dll: msscript.ocx

let me know !! if you can help me for this simple error for you. :)


~~~ life is not about problem you have,but how nicely you solved it...:)