I made a change in the Web.config and worked.
This was before:
<system.webServer>
<modules>
<remove name="FormsAuthentication" />
</modules>
</system.webServer>
Now, what worked:
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…