error on the server when trying to run PowerPoint from asp.net code
-
PowerPoint is installed on the server. I have done as you have said and got the following error: Object reference not set to an instance of an object. 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.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 204: catch (Exception ex) Line 205: { Line 206: LblError.Text = ex.InnerException.ToString(); Line 207: LblError.ForeColor = Color.Red; Line 208: // ex.Message + " " + ex.StackTrace + " " + ex.InnerException + " " + ex.Source;ex.InnerException.ToString(); Source File: c:\inetpub\wwwroot\laikatelemeeting\admin\upload.aspx.cs Line: 206 Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] Upload.Omvandla() in c:\inetpub\wwwroot\laikatelemeeting\admin\upload.aspx.cs:206 Upload.BtnSubmit_ServerClick(Object sender, EventArgs e) in c:\inetpub\wwwroot\laikatelemeeting\admin\upload.aspx.cs:148 System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick(EventArgs e) +108 System.Web.UI.HtmlControls.HtmlInputButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292 I have an application in asp.net where from code I open a powerpoint presentation and save it to html. It is working well when running on my computer (after editing in the DCOM locally) but when I deployed to the server(and changed in the DCOM as I did locally) I got this error Message below: Which settings on the server should I edit? Thanks Unspecified error 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: Unspecified error 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 (0x80004005): Unspecified er
-
PowerPoint is installed on the server. I have done as you have said and got the following error: Object reference not set to an instance of an object. 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.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 204: catch (Exception ex) Line 205: { Line 206: LblError.Text = ex.InnerException.ToString(); Line 207: LblError.ForeColor = Color.Red; Line 208: // ex.Message + " " + ex.StackTrace + " " + ex.InnerException + " " + ex.Source;ex.InnerException.ToString(); Source File: c:\inetpub\wwwroot\laikatelemeeting\admin\upload.aspx.cs Line: 206 Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] Upload.Omvandla() in c:\inetpub\wwwroot\laikatelemeeting\admin\upload.aspx.cs:206 Upload.BtnSubmit_ServerClick(Object sender, EventArgs e) in c:\inetpub\wwwroot\laikatelemeeting\admin\upload.aspx.cs:148 System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick(EventArgs e) +108 System.Web.UI.HtmlControls.HtmlInputButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292 I have an application in asp.net where from code I open a powerpoint presentation and save it to html. It is working well when running on my computer (after editing in the DCOM locally) but when I deployed to the server(and changed in the DCOM as I did locally) I got this error Message below: Which settings on the server should I edit? Thanks Unspecified error 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: Unspecified error 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 (0x80004005): Unspecified er
Just checking - the last time you asked this question you did not confirm that you had PowerPoint installed on the server. Did you clear up that problem? With the
COMException
- check theInnerException
property to see if you can get more details on the specific nature of the problem. You would do this by putting your code in atry
/catch
block and outputting theMessage
or ToString() of theInnerException
(assuming there is one) so you can see the details.