Adding IP address to the deny list in IIS  
Author Message
skinnybit





PostPosted: .NET Framework Networking and Communication, Adding IP address to the deny list in IIS Top

I have written a simple app in c# that adds an ipaddress to the deny list of IIS after 3 failed login attempts. This program works great on my development box but once ported to the web server I get the Error:

System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at System.DirectoryServices.Interop.UnsafeNativeMethods.IAds.SetInfo() at System.DirectoryServices.DirectoryEntry.CommitChanges() at secure2.chad()

the method is called chad and its on secure2.aspx. I know what the problem is yet i dont know how to fix it.

From event viewer i found.

The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID

{61738644-F196-11D0-9953-00C04FD919C1}

to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.

So i went to com+ services and added Network Service to local launch and activation. The error in event log now is gone, but the error on the aspx page is still there. I figure that user "Network Service" doesnt have permission to write to the directory. If this is the case what directory on the server must i give write access to "Network Service" or what ever the user may be If it is not write access then what might it be



.NET Development3  
 
 
Mariya Atanasova - MSFT





PostPosted: .NET Framework Networking and Communication, Adding IP address to the deny list in IIS Top

This appears to be an ASP.NET issue. Please repost this to the forums at www.asp.net. This forum is dedicated to questions relating to the system.net namespace in the .NET framework

Mariya