Windows 10 Visual Studio 2019 IIS Express不会以错误500开头

问题描述 投票:1回答:1

我们在.Net Core 3.1中有一个API项目。它可以在团队中的所有计算机上运行,​​但是尝试在新的成员计算机上调试它时失败了。它指出服务器错误(500),并且不会启动程序。它可以作为本地服务使用,而无需IIS。

VS ErrorEvent Log Error

我们已尝试格式化计算机并重新启动,没有使用。我看到了与项目配置和启动设置有关的帖子,但是由于它在其他计算机上运行,​​所以我认为这不是问题。我们还尝试在iis模板文件和dll中添加aspnetcore模块所需的行,如在建议其他地方看到的那样,出现了同样的问题。

任何建议将不胜感激!


来自HttpFailure_08-24-17.tml文件的错误文本

注意:您确实应该将文本复制/粘贴为文本,而不是附加屏幕截图:

The description for Event ID 1034 from source IIS Express AspNetCore Module V2 cannot found.  
Either the component that raises this event is not installed on your local computer or the installation is corrupted. 
You can install or repair the component on the local computer.
... 
The following information was included with the event:

Could not load configuration. Exception message: Unable to get required configuration section 'system.webServer/aspNetCore'.  Possible reason is web.config authoring error.

The request is not supported.

c# windows-10 iis-express asp.net-core-3.1 .net-core-3.1
1个回答
0
投票

该错误警告您AspNetCore Module V2已损坏或丢失。

[IIS中需要安装一个模块,以与AspNetCore项目兼容(特别是与默认的Kestrel服务器一起使用。)。

您需要遵循these instructions并安装此模块。据我所知,它不需要任何其他配置。

编辑:

我偶然发现了这篇文章,指的是他们在IIS Express上也遇到了问题。也许对您有帮助,并按照他们的指南查找配置中的错误?

https://blog.maartenballiauw.be/post/2019/02/26/asp-net-core-iis-express-empty-error-starting-application.html

© www.soinside.com 2019 - 2024. All rights reserved.