gpt4 book ai didi

c# - "Security"和 ASP.NET 路由引擎的问题

转载 作者:太空宇宙 更新时间:2023-11-03 11:54:32 25 4
gpt4 key购买 nike

我正在开发一个 ASP.NET Web 应用程序并希望将 ASP.NET 路由引擎 (System.Web.Routing) 与它一起使用。

我的应用程序在 Cassini 中运行良好,但是当我在 IIS7(当然是集成应用程序池)中启动它时,我总是在这一行出现错误:

User.Identity.IsAuthenticated

这可能是什么原因?有什么解决方法吗?

最佳答案

您是否将 web.config 设置为使用 IIS7?

参见 here有关如何解决您的问题的更多详细信息。

关于c# - "Security"和 ASP.NET 路由引擎的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/997898/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com