How to fix "Could not load file or assembly 'Microsoft.Azure.WebJobs.Script.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3c5b9424214e8f8c'. 指定されたファイルが見つかりません。" error when "func start"

充敏 中野 21 Reputation points
2024-05-12T01:24:12.54+00:00

I am trying to run my function written as "Azure Functions" with Node.js on my Windows using "func start" command, but I am encountering an error message that says:

$ func start

Azure Functions Core Tools
Core Tools Version:       4.0.5700 Commit hash: N/A +71cc84964a60bfb07d95839b7c666bd239507bdd (64-bit)
Function Runtime Version: 4.33.2.22572

Could not load file or assembly 'Microsoft.Azure.WebJobs.Script.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3c5b9424214e8f8c'. 指定されたファイルが見つかりません。

$ func --version
4.0.5700

How can I resolve this issue?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,371 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 69,576 Reputation points
    2024-05-13T07:58:10.5766667+00:00

    @充敏 中野 I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer.

    Issue:

    You observed below error when you try to run your function written as "Azure Functions" with Node.js on my Windows using "func start" command,

    Could not load file or assembly 'Microsoft.Azure.WebJobs.Script.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3c5b9424214e8f8c'. 指定されたファイルが見つかりません。

    Solution:

    The issue would observed when there is mismatched with the assembly and library. In scenario where you have multiple version of azure function core tools installed on your local machine. The suggest is to uninstalled all previous version and install the latest version of functions core tool. You have resolved the issue by uninstalled "Azure Functions Core Tools" and then download it from https://go.microsoft.com/fwlink/?linkid=2174087 and reinstall it.

    Thank you again for your time and patience throughout this issue.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. 充敏 中野 21 Reputation points
    2024-05-12T02:26:41.7833333+00:00

    I uninstalled "Azure Functions Core Tools". Then download it from https://go.microsoft.com/fwlink/?linkid=2174087 and reinstalled it.

    So it runs normal.

    Thank you!

    0 comments No comments