Azure函数无法访问mscorelib.dll访问被拒绝 [英] Azure functions cannot access mscorelib.dll access denied
问题描述
我一直在使用Azure函数,并且遇到了此错误:
I have been working with Azure functions and have run into this error:
错误:无法加载从Microsoft.Azure.WebJobs.Script,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null或其相关性之一加载的文件或程序集"9008字节".访问被拒绝.访问被拒绝. (来自HRESULT的异常:0x80070005(E_ACCESSDENIED)).
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:
错误CS0009:无法打开元数据文件'D:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ mscorlib.dll'-拒绝访问路径.
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.
推荐答案
安德鲁(Andrew)
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?
这篇关于Azure函数无法访问mscorelib.dll访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!