大家好!
背景:我有旧版 ASP.NET MVC 本地应用程序在本地 Windows IIS 上运行。我正在研究将此应用程序与 Azure AD 身份验证集成的方法。据我所知( Windows IIS integration with Azure AD ),不可能直接执行此操作,因为只能在应用程序级别添加 Azure AD 身份验证。因此,我正在考虑集成 MSAL 库之一来添加 Azure AD 身份验证。
使用本 Windows 手册 ( Quickstart: Add sign-in with Microsoft to a web app ),我从本学习页面下载了示例 Windows 应用程序 ( ASP.NET code sample ),并尝试在我的 Azure 虚拟工作机(基于在VDI平台上)。
并且 Azure AD 身份验证不起作用。当我单击启动应用程序页面上的“使用 Windows 登录”按钮时,我得到 the error :
Server Error in '/' Application.The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /login.aspx
此示例在我的本地笔记本电脑上运行良好,状态完全相同。我建议任何安全实用程序都可能是原因,但我不知道如何检查它。我无法在我的工作机器上禁用安全应用程序,也许网络级别有任何限制我什至一无所知。
有人可以建议任何方法来解决这个问题吗?或者也许还有办法找到这个问题的原因?
提前谢谢您!
最佳答案
关于asp.net - "Adding sign-in with Microsoft"示例在我的工作 VDI 上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75507215/