1

我正在使用 Windows 10 Pro,并在 Visual Studio 2019 版本 16.7.6 的 IIS Express 10.0.1741 之上运行 .NET Core 3.1 应用程序。

我创建了一个 Razor 页面来上传包含此博客中的确切代码的文件: https ://www.learnrazorpages.com/razor-pages/forms/file-upload

问题设置:运行程序(调试或发布),使用 Brave 浏览器(普通或私有)导航到页面,然后打开文件上传对话框窗口。

此时一切都很好。

当文件对话框关闭时,无论是通过选择文件还是点击取消,IIS Express 都会崩溃,退出代码为 -1。

事件日志中有一条错误消息:

Log Name:      Application
Source:        Microsoft Security Client
Date:          11/2/2020 11:20:08 AM
Event ID:      5000
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      ****
Description:
The description for Event ID 5000 from source Microsoft Security Client cannot be 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.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

0x1
ProtectionManagement

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft Security Client" />
    <EventID Qualifiers="0">5000</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2020-11-02T17:20:08.484614300Z" />
    <EventRecordID>39640</EventRecordID>
    <Channel>Application</Channel>
    <Computer>****</Computer>
    <Security />
  </System>
  <EventData>
    <Data>0x1</Data>
    <Data>ProtectionManagement</Data>
  </EventData>
</Event>

但我不知道如何解决这个问题。我找不到 IIS Express 的日志或转储文件。

我无法在同一网络上的另一台 Windows Server 计算机上重现此问题,可能具有相同的安全设置(尽管它是服务器操作系统)。

我尝试使用 Fiddler 嗅探数据包,并且发生这种情况时没有遇到新的 HTTP 数据包,因此它必须位于 IP 堆栈的较低级别(可能是连接级别?)

我担心不理解这一点,它会在未来再次咬我。

关于这可能是什么的任何想法?

4

0 回答 0