-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScriptHost fails to start with error cannot find : 'Microsoft.AspNetCore.Mvc.Abstractions, Version=2.0.1.0' #181
Comments
@ahmelsayed - This reproes with 1.0.9 and 1.0.10 |
Can you check what runtime version they have? |
@soninaren looked into this. VS tooling regressed as it is downloading older version of CLI: 2.0.1-beta instead of 2.0.1-beta-22. |
Is there a workaround for this to run from Visual Studio? For example, can we manually upgrade the CLI in the meantime? I was able to install and run from command line, following the instructions for the CLI, but it's definitely not ideal as it didn't help in Visual Studio. |
This has been fixed. Please update the functions extension from Tools -> Extensions -> Updates -> Azure Functions and Web Jobs Tools. The version you are looking for is 15.0.40322.0 |
Please re-open if this still doesn't work for you. |
I was the original poster on SO, and I just tried this with the 1.0.11 version of Microsoft.Net.Sdk.Functions and version 15.0.40322.0 of Azure Functions and Web Tools. Still get the error. The error I receive is: which is somewhat different from what @pragnagopa reported above. You can see a Github example which shows the error here: https://github.com/chriswill/FunctionDemo. Version 15.0.40322.0 shows that it was released on March 14. Is that the correct version? cc: @soninaren |
Can you delete the contents of this folder "C:\Users<user>\AppData\Local\Azure.Functions.V2.Cli", rebuild and press F5 to run |
I did that, re-ran the project and noted that a 2.0.1-beta.22 folder was re-created in the directory. Unfortunately no change. Still see the error. |
You need Version:2.0.0 for Microsoft.Extensions.Logging and related packages. Sent a PR showing the fix. |
@chriswill please re-open if the fix did not work for you. |
Thanks @soninaren that did work for me. I'm surprised that I won't be able to keep my app updated with current versions, but perhaps when a new version of the functions sdk comes out? |
@soninaren are you able to publish the above fix publicly? I am having the same issue with version 15.0.40322.0 running locally. |
I am having below issue. I have already installed the specified version but issue not resolved. Please help rectify the issue. [3/6/2019 6:06:32 AM] Host configuration file read: |
Customer reported issue on SO
Reproes with latest version Microsoft.NET.Sdk.Functions 1.0.10
Error:
[3/21/2018 9:59:48 PM] ScriptHost initialization failed
[3/21/2018 9:59:48 PM] System.Private.CoreLib: Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Abstractions, Version=2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621). System.Private.CoreLib: Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Abstractions, Version=2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
The text was updated successfully, but these errors were encountered: