Monday, July 14, 2014

HTTP Error 401.3 - Unauthorized 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


Recently i encountered this issue while deploying an asp.net solution on Windows Server 2008 R2. 
Looking at the error, i was quite sure it has something to do with website permissions. 
By default IIS treats anonymous authentication credentials to Specific User and if that specific user doesn't have permission on wwwroot folder then IIS will throw HTTP 401.3.

Solution

- Go to IIS Application server manager
- Choose IIS -> Authentication
- Edit Anonymous Authentication
- Change Anonymous User Identitiy to Application Pool Identity

hopefully this will work! 

Thursday, April 24, 2014

System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security

Recently, i encountered an error after deploying a web application over IIS 7. It was working fine with IIS v6.0 with Windows Server 2003 but on IIS 7 it started giving an error "System.Security.SecurityException" on the line: EventLog.SourceExists(sourceName). Here is what i did to solve this issue:-

- Go to Registry Editor on Windows Server 2008

- Choose HKLM-> SYSTEM->CurrentControlSet->services->eventlog
- Grant Read permission on "Security" node to IIS AppPool\DefaultAppPool User

It will solve the issue of searching through event sources to find whether this source already exists or not.


Wednesday, June 25, 2008

Handy Information AJAX

Please check out this
http://encosia.com/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/