1
votes

I have been working with Azure functions and have run into this error:

Error: Could not load file or assembly '9008 bytes loaded from Microsoft.Azure.WebJobs.Script, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

when I open any function that I have written or a new function and the console error:

error CS0009: Metadata file 'D:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll' could not be opened -- Access to the path is denied.

when I attempt to run. Help would be much appreciated.

1

1 Answers

2
votes

Andrew,

Restarting the site should mitigate this issue. But we do want to follow up on this to provide a better root cause. Would you mind sharing your function app name either directly or indirectly so we can further investigate?