Access Denied Error in SHarepoint 2010

sharepointsharepoint-2010

When deploying asolution containing webparts to a Sharepoint 2010 webite I get the following error message:

Add Solution:
  Adding solution 'User_Controls.wsp'...
  Deploying solution 'User_Controls.wsp'...
Error occurred in deployment step 'Add Solution': Access to the path 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\CONTROLTEMPLATES\MyProject\CompanyInformation.ascx' is denied.

When I try to access the MyProject folder through windows explorer I can't see the contents and get an access denied error:

[Window Title]
Location is not available

[Content]
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES\Toyota is not accessible.

Access is denied.


[OK]

Can anyone help please?

Best Answer

Maybe you are deploying a Sandbox solution and not a Farm Solution.

Edit: if you can try making iisreset and try deploying again.

Related Topic