Byte My Data

A personal collection of advice and solutions I've used.

About the author

Something about the author

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

For some reason I started running into this error when I was trying to deploy a sharepoint webpart from visual studio. It just started happening out of the blue.

First I just rebooted the server and it deployed fine but when I made some changes to the code and tried to deploy it, the error came up again.

I found the answer here:http://social.msdn.microsoft.com/Forums/en/vsreportcontrols/thread/26accc30-9cfb-4d86-9c27-780f51929ecb

I had to add the ASP.NET account to each section.

  • Run dcomcnfg to bring up Component Services window.
  • Expand Component Services > Computers > My Computer > DCOM Config
  • Scroll down list, right click Windows Management and Instrumentation, and select properties.  A 5 tabbed window named Windows Management and Instrumentation Properties should be displayed.
  • Select the Security tab, then select radio buttons which activate the Edit... buttons.
  • Select the appropriate location and add the ASPNET account.
  • Reboot.
  •  


    Permalink | Comments (2) | Post RSSRSS comment feed

    Comments

    Test King Sri Lanka

    Saturday, February 11, 2012 11:11 AM

    Test King

    This is really a good post. Thanks for sharing this information. I am sure lot of people will benefit from it.

    Exam Questions Senegal

    Saturday, February 11, 2012 11:12 AM

    Exam Questions

    The post is very informative. It is a pleasure reading it. I have also bookmarked you for checking out new posts.

    Add comment




      Country flag

    biuquote
    • Comment
    • Preview
    Loading