IIS
  • Logout cand se foloseste Windows Authentication
    • Se trimite response code 401, si browser-ul va incerca sa il reautentifice pe utilizator.
if (hidCurrentUserName.Value != Request.LogonUserIdentity.Name)
{     
     Response.Redirect("Default.aspx", false);
}
else
{
     Response.StatusCode = 401;
     Response.StatusDescription = "Unauthorized";
     Response.End();
}
  • IIS7: The requested page cannot be accessed because the related configuration data for the page is invalid - cand nu are drepturi de Read pe web.config
    • Drepturi de Read pentru contul IIS APPPOOL\DefaultAppPool
    • Drepturi de Read pentru contul IIS APPPOOL\ASP.NET v4.0
  • IIS7: You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
    • Drepturi de Read pentru contul IUSR
  • IIS7: Could not load file or assembly ‘<insert name here>′ or one of its dependencies. An attempt was made to load a program with an incorrect format.
    • AppPool-ul ar trebui setat sa ruleze si aplicatii sub 32 de biti.
  • IIS7: nu serveste fisiere cu extensia json (sau orice alta extensie pe care nu o stie)
    • trebuie adaugat un mime-type pentru extensia respectiva, fie din IISManager, fie in web.config
<system.webServer>
        <staticContent>
            <mimeMap fileExtension=".json" mimeType="application/json" />
        </staticContent>
</system.webServer>
  • IIS7: probleme cu handling-ul fisierelor statice de catre ASP.NET/evenimentele BeginRequest/EndRequest nu se executa cum ar trebui
    • Ar trebui activat cel putin rolul Web Server -> Performance -> Static Content Compression
iis_roles.png
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License