Is the correct bindings information present in the functions.metadata
file, when you build the project, it should be located in the bin\Debug\net8.0
or bin\Release\net8.0
directory within your project directory. In dotnet projects this file is generated when you build the project and serves to provide the same information as the function.json
file does. The contents of the file from a sample project are as follows:
[
{
"name": "Function1",
"scriptFile": "FunctionApp.dll",
"entryPoint": "FunctionApp.Function1.Run",
"language": "dotnet-isolated",
"properties": {
"IsCodeless": false
},
"bindings": [
{
"name": "req",
"direction": "In",
"type": "httpTrigger",
"authLevel": "Function",
"methods": [
"get",
"post"
],
"properties": {}
},
{
"name": "$return",
"type": "http",
"direction": "Out"
}
]
}
]
I would also ensure that the Microsoft.Azure.Functions.Worker.Extensions.Http.dll
assembly file is present alongside the functions.metadata
file, as that is the assembly file that contains the HttpTrigger
attribute class and the associated trigger implementation.
If the information in functions.metadata
file is correct, ensure that the correct framework and extension packages are referenced in the projects .csproj
file. The packages present in the sample project are as follows:
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.0.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.3.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.0.2" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.4" />
If the above is correct, I would check the configuration of the service in Azure Portal. I've has a couple of issues in the past where the function app had incorrect configuration with some values relevant for the in-process and some for the isolated model. I would read through the migration guide and compare the configuration to your function app configuration.