Skip to content
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

Could not load type 'System.Random' from assembly 'System.Runtime, Version=4.2.2.0 #24

Closed
pmeems opened this issue Nov 16, 2021 · 2 comments

Comments

@pmeems
Copy link

pmeems commented Nov 16, 2021

Sadly this template is not working out of the box anymore.
After merging the pull requests I was finally able to compile the solution.

After running the webapp I get this error when calling the Azure Function:
Could not load type 'System.Random' from assembly 'System.Runtime, Version=4.2.2.0

I can't find how to fix this.
I've used the template before with .NET3.1 and that worked fine.
Very sad that the template is no longer working after updating to .NET6.
I wonder how this template is tested ;)

@markjackmilian
Copy link

I also had your error. I solved it by upgrading to azure-functions-core-tools@4.

Try running:
npm i -g azure-functions-core-tools@4 --unsafe-perm true

@pmeems
Copy link
Author

pmeems commented Nov 18, 2021

Thanks that solved my problem.
I already assumed it was something on my laptop, because after deploying to Azure everything did work.

I also have issues with debugging (not breaking) and hot reload.
Perhaps I need to reinstall my system ;(

@pmeems pmeems closed this as completed Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants