Home » Sharepoint

Access to the path 'C:\ProgramData\Microsoft\SharePoint\Config\fc80c46c-0fcf-44d7-ad9a-bf75d2f3305b\


I am creating and deleting an timer job definition at site collection feature. Its throws this error :

Access to the path 'C:\ProgramData\Microsoft\SharePoint\Config\fc80c46c-0fcf-44d7-ad9a-bf75d2f3305b\cache.ini' is denied.

I have tried running this code with RunWithElevelatedPrivalges. Still same error.


Thanks in advance


4 Answers Found


Answer 1


try giving full control to the WSS_WPG user on the folder where the cache.ini file is searched.




Answer 2

Hi Sujasree,

I don't want to give the permission to that folder because its a hidden folder. Can't instruct same to the client.


Answer 3

so, did anyone find de answer?

having the same problem here...


Answer 4

instead of running  with elevated priveleges, why not impersonate as the farm administator, surely that user has access  to write to the cache

although why is it erring on the cache settings anyways

this looks like a problem with the farm configuration

what does the timer  job do, what is the schedule frequency, and how are you delting it?
What server is giving you the error? WFE, AppServer, Indexer?
Is it possible the timer job  wasn't deployed successfully on all these servers?




<< Previous      Next >>

Microsoft   |   Windows   |   Visual Studio   |   Sharepoint   |   Azure