简体   繁体   English

Azure 函数(.net core 3+) - 尝试访问 HttpRequest.Query 时出现“找不到入口点”错误

[英]Azure Functions(.net core 3+) - Getting “Entry point was not found” error when trying to access HttpRequest.Query

I started encountering this issue about 3 days ago after an update that I randomly clicked on when I was in Visual Studio Code.大约 3 天前,我在 Visual Studio Code 中随机单击更新后开始遇到此问题。 Whenever I try to access HttpRequest.Query from the Microsoft.AspNetCore.Http namespace, I get an the following error message: "Entry Point was not found".每当我尝试从 Microsoft.AspNetCore.Http 命名空间访问 HttpRequest.Query 时,都会收到以下错误消息:“找不到入口点”。 在此处输入图像描述

在此处输入图像描述

I have not been unable to fix this and this has interrupted my ability to work.我一直无法解决这个问题,这打断了我的工作能力。 I've talked this over with my teammates, and they are not encountering this issue at all.我已经和我的队友讨论过这个问题,他们根本没有遇到这个问题。

I've tried pretty much everything I could google and think of.我已经尝试了几乎所有可以谷歌搜索和想到的东西。

  • Auto Generating Bindings自动生成绑定
  • Deleted and re installed every Nuget Package at C:\Users{username}.nuget\packages在 C:\Users{username}.nuget\packages 删除并重新安装每个 Nuget Package
  • Deleting and reinstalling everything about Visual Studio and Visual Studio Code删除并重新安装有关 Visual Studio 和 Visual Studio Code 的所有内容
  • Using the most recent versions of Microsoft.NET.Sdk.Functions使用最新版本的 Microsoft.NET.Sdk.Functions
  • Deleting the bin and obj folders of my project删除我项目的 bin 和 obj 文件夹
  • Removing unused references in my project删除我的项目中未使用的引用

At this point, I'm not even sure what's really wrong any more.在这一点上,我什至不确定到底出了什么问题。 I found a post with my EXACT SAME issue, but the way the person fixed it did not apply to me:我发现了一个与我完全相同的问题的帖子,但该人修复它的方式不适用于我:

Azure Functions.NetCore 3.0 Request.Query throwing "Entry point not found" error Azure Functions.NetCore 3.0 Request.Query 抛出“找不到入口点”错误

Some Info- may or may not be useful.有些信息可能有用也可能没用。

  1. When I go through the code step by step in the debugger, HttpRequest.Query shows up properly with all of the keys.当我在调试器中逐步通过代码 go 时,HttpRequest.Query 正确显示所有键。 I'm wondering if there is some kind of name conflict between HttpRequest object from Microsoft.AspNetCore.Http vs System.Web我想知道来自 Microsoft.AspNetCore.Http 的 HttpRequest object 与 System.Web 之间是否存在某种名称冲突

  2. If I set my project to use the most recent version of Microsoft.NET.Sdk.Functions, I get a new error instead of an entry point error, I get this instead:如果我将我的项目设置为使用最新版本的 Microsoft.NET.Sdk.Functions,我会收到一个新错误而不是入口点错误,而是会收到以下信息: 在此处输入图像描述

  3. I'm using Visual studio Code.我正在使用 Visual Studio 代码。

Can anyone assist?有人可以帮忙吗? I'd be happy to provide any information needed!我很乐意提供所需的任何信息!

I gave up.我放弃。 I spent about 3 days trying to solve this and this was affecting my ability to work.我花了大约 3 天的时间试图解决这个问题,这影响了我的工作能力。 I just had my entire laptop reformatted and that "fixed" the issue.我刚刚重新格式化了我的整个笔记本电脑并“解决”了这个问题。 I tried pretty much everything I could find and nothing worked and I couldn't wait any more.我尝试了几乎所有我能找到的东西,但没有任何效果,我不能再等了。 Best of luck to anyone who encounters this!祝遇到这种情况的人好运!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 .net 内核中的 HttpRequest.Query[] 是如何工作的? - How does HttpRequest.Query[] in .net core works? Azure 函数突然获取入口点未找到错误 - Azure Functions suddenly getting Entry Point was not found error 尝试通过https访问时.net core 2.0 cookie身份验证陷入无限重定向循环 - .net core 2.0 cookie authentication getting stuck in infinite redirect loop when trying to access over https .net核心中的hangfire RecurringJob的入口点 - entry point of a hangfire RecurringJob in .net core 尝试转到其他页面时出现未找到本地主机错误 - ASP.NET CORE MVC - Localhost not found error appears when trying to go to a different page - ASP.NET CORE MVC .NET Core 3.0“System.String 构造函数未找到错误”当尝试从 propertyGrid 修改 string[] 时 - .NET Core 3.0 "System.String constructor not found error" When Trying to modify a string[] from a propertyGrid 将.NET Core ASP应用程序重新定位到.NET 4.6.1时,如何重构入口点 - How to refactor the entry point when retargeting a .NET Core ASP app to .NET 4.6.1 尝试在 .NET Core 3.0 中播种角色时,获取任务被取消错误 - Getting a task was canceled error when trying to seed roles in .NET Core 3.0 尝试在 asp.net 核心应用程序中使用 SmtpClient 发送 email 时出错 - Getting an error when trying send an email using SmtpClient in asp.net core application 将 asp.net core web api 部署到 aws elastic beanstalk 时出现错误 404 Not Found - Getting Error 404 Not Found when deployed asp.net core web api to aws elastic beanstalk
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM