BUG: Object reference not set.... .net 6 functions
See original GitHub issueDescribe the issue When using this library in a new Azure Functions project (.net6, runtime V4) it works locally but not on Azure.
Object reference not set to an instance of an object.
To Reproduce
- Create new Azure functions project with .Net 6
- Add a new project without dependencies and reference it in your functions project
- Deploy to Azure
- Call
/api/swagger.json
Expected behavior I expect that swagger would just work like it does locally.
Screenshots
Environment (please complete the following information, if applicable):
- OS: Azure (Windows Service plan,
FUNCTIONS_EXTENSION_VERSION
=~4
,FUNCTIONS_WORKER_RUNTIME
=dotnet
) - Version
1.0.0
(nuget)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:16 (5 by maintainers)
Top Results From Across the Web
c# - .net 6 - Object reference not set to an instance of an ...
The Populate function takes in a List of strings, which are comma separated. There is an array of integers passed in, which will...
Read more >`Object reference not set to an instance of an ...
Function running the queue trigger after passing message to the queue and getting exception while sending it to the Azure Table within the...
Read more >Fixing the "The following functions are in error: Object ...
Fixing the “The following functions are in error: Object reference not set to an instance of an object.” error in Azure Functions.
Read more >Object Reference Not Set to an Instance of an Object
This infamous and dreaded error message happens when you get a NullReferenceException. This exception is thrown when you try to access a member—for...
Read more >Fix “Object Reference Not Set to an Instance of an ... - YouTube
Fix “ Object Reference Not Set to an Instance of an Object” in Microsoft Visual Studio In this post, we will show you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @justinyoo - I can confirm that even after updating to v1.3.0 of the
Microsoft.Azure.WebJobs.Extensions.OpenApi
package I’m still seeing the following error when my function app references anet6.0
class library which has no dependencies:I had the same problem and I solved it based on an old issue. Where the person indicated that all projects on their system must have at least one dependency. I added a random package to a project of mine that didn’t have any and it started working.