Re: error with stdole.dll
Have you verified that the dll is on the server, registered, and accessible to the ASP.NET service user?
Re: error with stdole.dll
I would have to double check to be sure, but most of the Office DLL's are NOT licensed for use on a server in any case.....
Re: error with stdole.dll
Hi all,
Code:
StringBuilder sb4 = new StringBuilder();
sb4.Append("=GROWTH(");
sb4.Append("{" + y14 + "," + y15 + "}" + "," + "{" + x14 + "," + x15 + "}" + "," + dblNozzPress + ")");
string s5 = sb4.ToString();
Microsoft.Office.Interop.Owc11.SpreadsheetClass SP = new Microsoft.Office.Interop.Owc11.SpreadsheetClass();
// double[] pra1 = { y11, y12 };
// double[] pra2 = { x11, x12 };
// object b2 = null;
//// fnc = excelApp.WorksheetFunction;
// a11 = excelApp.WorksheetFunction.Growth(pra1, pra2, b2, dblNozzPress);
// OWC10.SpreadsheetClass SP = new OWC10.SpreadsheetClass();
a11 = SP._Evaluate(s1);
Now i am getting different exception.
--------------------------------------------------------------------------------
Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80020005): Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))]
Microsoft.Office.Interop.Owc11.SpreadsheetClass._Evaluate(Object Expression) +0
Default3.CalcWatt() +2273
Default3.Page_Load(Object sender, EventArgs e) +221
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
Pls help me in resolving this
in my local system i have
Microsoft Office XP Web Component and Microsoft Office 2003 Web Component
But on the web server I only have
Microsoft Office 2003 Web Component
is this a problem
Thanks
Regards