Azure Function v4 - Entry point not found in assembly Follow
Hello,
I encountered this error on two machines (the newest Rider installed):
- .NET 6.0 downloaded and installed - https://dotnet.microsoft.com/en-us/download/dotnet/6.0
- Azure Functions Core Tools downloaded and installed - https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v4%2Cwindows%2Ccsharp%2Cportal%2Cbash#install-the-azure-functions-core-tools
- Azure Toolkit for Rider downloaded and installed - https://plugins.jetbrains.com/plugin/11220-azure-toolkit-for-rider
- Created project based on Azure Functions template
- Built and run project:
Unhandled exception. System.MissingMethodException: Entry point not found in assembly
I don't know whether to submit the issue to the tracker, or if it should be handled differently.
Please sign in to leave a comment.
Could you try to build and run your project from terminal with dotnet run command? Does it work?
It starts when I type
But when I run
This is the .csproj that was generated by Rider
Ok, I found a problem.
Azure Functions v4 is run only as an Isolated Process:
https://techcommunity.microsoft.com/t5/apps-on-azure-blog/net-on-azure-functions-roadmap/ba-p/2197916
So we need to create for it a typical Program file:
https://github.com/manuelspinto/azure-function-example-csharp/blob/master/src/Program.cs
Probably yours Azure Function templates doesn't take it into consideration :)