« Previous Next »

Thread: COM security and/or settings from ASP.NET 2.0 app

Last post 11-01-2007 3:06 AM by snap. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 10-28-2007, 5:10 PM

    • snap
    • Not Ranked
    • Joined on 10-28-2007, 5:05 PM
    • Posts 3

    COM security and/or settings from ASP.NET 2.0 app

    Hi

    I have an ASP.NET (2.0) app that calls Office Web Components (OWC) , returning a chart image. Running under IIS4,5,6 it works fine. Running under Vista IIS 7.0 I consistently get an error. I figured it must be a setting or security flag I need to set.

    The app uses windows authentication (which I have added to the web app successfully). Everything else in the app works fine, expect this.

    I have found other threads on similar topics, but they address COM+ components, not a standard server side ActiveX. If I am asking the same question as others, please direct me to their posts. 

     Otherwise, what should I be looking for?

    thx

    Avi 

  • 10-30-2007, 9:03 PM In reply to

    Re: COM security and/or settings from ASP.NET 2.0 app

    Try running the application pool in classic mode vs. Integrated mode and see if your app works.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 10-30-2007, 9:15 PM In reply to

    • snap
    • Not Ranked
    • Joined on 10-28-2007, 5:05 PM
    • Posts 3

    Re: COM security and/or settings from ASP.NET 2.0 app

    Thanks for responding Steve

    Already running under the classic app pool setting. It doesn't work otherwise at all.

     Any other suggestions?

  • 11-01-2007, 2:22 AM In reply to

    • bon1977
    • Not Ranked
    • Joined on 11-01-2007, 6:21 AM
    • Posts 2

    Re: COM security and/or settings from ASP.NET 2.0 app

     Is it possible to get the COM error message?

  • 11-01-2007, 3:06 AM In reply to

    • snap
    • Not Ranked
    • Joined on 10-28-2007, 5:05 PM
    • Posts 3

    Re: COM security and/or settings from ASP.NET 2.0 app

    The error is:

    "Error HRESULT E_FAIL has been returned from a call to a COM component."

    To be more specific, the app can instantiate the OWC10 engine. It falls over when ConnectionString property is set. I realize that this may be very specifc to the OWC10 DLL - and not to IIS7. But, it has only fallen over in IIS7 (as mentioned earlier, not IIS 4,5,6)

    Here is the command that it falls over on:

    cSpace.ConnectionString = "Provider=MSPersist"

    So perhaps the issue is to do with the MSPersist data provider type interacting with IIS7.

    Any ideas? 

    Avi

Page 1 of 1 (5 items)
Microsoft Communities