Function Azure函数v2引发异常System.AccessViolationException

Function Azure函数v2引发异常System.AccessViolationException,function,azure,Function,Azure,我已经用时间触发器创建了新的vs2017 C#Azure Functions v2(.NET Core)项目 当我尝试运行它时,出现异常: namespace Microsoft.Azure.WebJobs.Script.Rpc internal class JobObjectRegistry : IDisposable, IProcessRegistry { public JobObjectRegistry { // this line throw

我已经用时间触发器创建了新的vs2017 C#Azure Functions v2(.NET Core)项目

当我尝试运行它时,出现异常:

namespace Microsoft.Azure.WebJobs.Script.Rpc
internal class JobObjectRegistry : IDisposable, IProcessRegistry
{
    public JobObjectRegistry
    {       
        // this line throws exception
        _handle = CreateJobObject(IntPtr.Zero, null); 

System.AccessViolationException: 
'Attempted to read or write protected memory. 
This is often an indication that other memory is corrupt.'
少了什么


已安装vs2017版本15.7.4,存储仿真程序UI正在运行。

您好,您的项目是否设置为“任何CPU”版本?@JamesDonovan是的,它设置为使用任何CPU。我刚刚更新了最新的Azure函数和数据工具,现在可以运行了。太好了!有时这可能是由于引用了x86 DLL,但很高兴听到所有排序!