Previous Next

Thread: IMSAdminBase->GetData() returns E_ACCESSDENIED on IIS 7

Last post 08-08-2008 10:24 AM by ma_khan. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 08-08-2008, 5:13 AM

    • neha.noma
    • Not Ranked
    • Joined on 06-11-2008, 3:12 AM
    • Posts 7
    • neha.noma

    IMSAdminBase->GetData() returns E_ACCESSDENIED on IIS 7

    Hi,
    I have written one sample program to read Metabase entry on IIS 7.0.
    I am using IMSAdminBase->GetData() to read from LM/W3SVC/* level and it was working fine as stand alone application from any admin users account.
    Now when I try to run this executable as CGI under my site, the IMSAdminBase->GetData() call returns E_ACCESSDENIED.

    I am not sure what settings shall I do to make it run on IIS 7.0.

    Please help.

    Thanks,
    Neha

  • 08-08-2008, 6:17 AM In reply to

    • ma_khan
    • Top 25 Contributor
    • Joined on 03-16-2008, 8:26 PM
    • Posts 288
    • ma_khan

    Re: IMSAdminBase->GetData() returns E_ACCESSDENIED on IIS 7

    For this to be executed the user must have read and write permission on the resource

    To be honest I dint know that this works with IIS 7 .... Did you try web.management  or web.administration API's ... I find them much easier ..


     

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 08-08-2008, 9:33 AM In reply to

    • neha.noma
    • Not Ranked
    • Joined on 06-11-2008, 3:12 AM
    • Posts 7
    • neha.noma

    Re: IMSAdminBase->GetData() returns E_ACCESSDENIED on IIS 7

     I tried giving full permission, still it fails.

    I have never worked with web.management  or web.administration API's:( And is there any way to specify the read/write permission on Metabase keys?

  • 08-08-2008, 10:24 AM In reply to

    • ma_khan
    • Top 25 Contributor
    • Joined on 03-16-2008, 8:26 PM
    • Posts 288
    • ma_khan

    Re: IMSAdminBase->GetData() returns E_ACCESSDENIED on IIS 7

     which user are you giving full permissions??

    web.management and web.administration are extensive API's for IIS 7... check these for a few details...

    http://msdn.microsoft.com/en-us/magazine/cc164241.aspx

    http://msdn.microsoft.com/en-us/magazine/cc163453.aspx
     

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Page 1 of 1 (4 items)
Page view counter