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(); }
- ASP.NET MVC sub IIS6
- http://johan.driessen.se/archive/2010/04/13/getting-an-asp.net-4-application-to-work-on-iis6.aspx
- http://support.microsoft.com/kb/328505/ , http://support.microsoft.com/kb/328360/
- cscript iisext.vbs /ListFile , cscript iisext.vbs /EnFile C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
- 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 autentificarea windows - apar doar cand incerc sa intru de pe alta masina, folosind numele serverului si nu ip-ul
- daca folosesc ip-ul, functioneaza
- are legatura cu SPN (service principal name)
- http://blogs.msdn.com/b/webtopics/archive/2009/01/19/service-principal-name-spn-checklist-for-kerberos-authentication-with-iis-7-0.aspx
- http://support.microsoft.com/kb/929650
- 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
page revision: 14, last edited: 05 May 2011 07:48