none
Error HRESULT E_FAIL has been returned from a call to a COM component RRS feed

  • Question

  • we’re having issues with the server installation/activation of the component and wondered if you were aware of any previous clients who have encountered similar issues and have been able to get it working.

     

    We have ensured that the following are installed on the server:

    ·         Microsoft Powerpoint 2010

    ·         Visual Basic for Applications

    ·         Visual Studio Tools for Office 2010

     

    We have also configured the security to allow our application user to launch the program.

     

    In Task Manager, the PowerPnt.exe process launches under the security context of the IIS user.  However, the web application reports that the component threw an error:

     

    [COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.]

       Microsoft.Office.Interop.PowerPoint.Presentations.Open(String FileName, MsoTriState ReadOnly, MsoTriState Untitled, MsoTriState WithWindow) +0

       ElectricRain.Common.PowerPoint.Converters.PowerPointToXamlConverter.OpenPowerPointFile(String aPowerPointFilePath) +618

       DWA.SlideKit.Utilities.PowerpointConversion.PowerpointConverter..ctor(String pptFile, String workingFolder) in C:\_source\TFS Workspaces\DWA\DWA.MediaManager\DWA.SlideKit.Utilities.PowerpointConversion\PowerpointConverter.cs:40

       DWA.SlideKit.Web.UI.Admin.Controllers.SlideDecksController.ImportSlideOrder() in C:\_source\TFS Workspaces\DWA\DWA.MediaManager\DWA.SlideKit.Web.UI.Admin\Controllers\SlideDecksController.cs:165

       lambda_method(Closure , ControllerBase , Object[] ) +62

       System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17

       System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +188

       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27

       System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +56

       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +267

       System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +20

       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +190

       System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +329

       System.Web.Mvc.Controller.ExecuteCore() +115

       System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +94

       System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10

       System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37

       System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21

       System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12

       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55

       System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +31

       System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7

       System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +23

       System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +59

       System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9

       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8897857

       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184

    Thursday, September 1, 2011 1:21 AM

Answers

  • Hi MikeGarofalo,

    Thank you for posting.

    After reading your problem, I noticed that you did Office automation on the server side. As far as I know, Microsft does not recommend or suggest do Office automation on the server side. Please refer to this KB article:

    http://support.microsoft.com/kb/257757

    which describes:

    Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

    And the KB article introduces the alternative technology Open XML.

    Hope you can figured out about this and feel free to follow up.

    Best Regards,


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Bruce Song Friday, September 16, 2011 12:09 PM
    Friday, September 2, 2011 2:35 AM

All replies

  • Hi MikeGarofalo,

    Thank you for posting.

    After reading your problem, I noticed that you did Office automation on the server side. As far as I know, Microsft does not recommend or suggest do Office automation on the server side. Please refer to this KB article:

    http://support.microsoft.com/kb/257757

    which describes:

    Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

    And the KB article introduces the alternative technology Open XML.

    Hope you can figured out about this and feel free to follow up.

    Best Regards,


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Bruce Song Friday, September 16, 2011 12:09 PM
    Friday, September 2, 2011 2:35 AM
  • Hi MikeGarofalo,

    How about the problem on your side? If you still show any concern on the problem, just feel free to let us know.

    Best Regards,


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, September 13, 2011 3:51 AM