system.runtime.interopservices.comexception server execution failed RRS feed

  • Question

  • User-739425036 posted

    hi experts

    am creating a chart in powerpoint. chart is creating but some times there occure a error .
    i have added references - Microsoft office 10.0 Object Library,Microsoft PowerPoint 10.0 Object Library. what more i need to do for remove error . error is like this-

    server error in '/'Application.

    server execution failed

    system.runtime.interopservices.comexception server execution failed

    am using this code

     pptApp1 = New Microsoft.Office.Interop.PowerPoint.Application  pptPres1 = pptApp1.Presentations.Add

     pptSlide = pptPres1.Slides.Add(1, PpSlideLayout.ppLayoutBlank)

    pptGraphHolder = pptSlide.Shapes.AddOLEObject(Left:=50, Top:=20, Width:=641, Height:=535, ClassName:="MSGraph.Chart", Link:=msoFalse)

    gphChart = pptGraphHolder.OLEFormat.Object

    please help any body in detail 


    Tuesday, April 14, 2009 4:00 AM

All replies

  • User-1659704165 posted


    The ASPNET user account is very restricted for security reasons -- you'll need to either run under an account that has more permissions, or grant additional persmissions to the ASPNET account.

    Hope inormation Helps

    Tuesday, April 14, 2009 6:52 AM
  • User-739425036 posted

    how  to set ASPNET user account

    Tuesday, April 14, 2009 8:29 AM
  • User-1659704165 posted


    Right Click websiter -->Propeties -->
    Direcorty Security --> Anonymus access Auteh -->edit --> brosswer and provide the Right

    Hope it helps

    Tuesday, April 14, 2009 8:43 AM