在 Azure 模拟器中运行时,ASP.NET 项目的 web.config 功能是否有所不同?
默认情况下,即使在我的 web.config 文件中有以下内容,azure 也允许我的 Images 文件夹在事先登录的情况下提供服务:
<authentication mode="Forms">
<forms loginUrl="~/login.aspx"
name=".ASPXFORMSAUTH"
cookieless="UseCookies"
timeout="30"
path="/"
slidingExpiration="true"/>
</authentication>
<authorization>
<allow users="?"/>
</authorization>
我的 web.config 中没有 <location> 标记。在 IIS 下单独运行 ASP 项目时,不会提供任何服务,但在 Azure 模拟器映像下运行时,仍会提供服务。