Scenario:
I need to remotely administer the IIS server (create and destroy applications), which is in the same domain as the server requesting the changes. I have an application pool configured to run under an authorized account. I tested the remote configuration using IIS Manager and the account under which the web pool runs, so I know that the permissions are correct.
The error I get while executing this code is this.
Type=System.Runtime.InteropServices.COMException Source=mscorlib Message=Retrieving the COM class factory for remote component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} from machine <SERVERNAME> failed due to the following error: 800706ba <SERVERNAME>.
If I look at the event logs on a remote IIS machine on which I am trying to authenticate, I see the following error.
Log Name: Security Source: Microsoft-Windows-Security-Auditing Date: 7/13/2011 5:20:22 PM Event ID: 4625 Task Category: Logon Level: Information Keywords: Audit Failure User: N/A Computer: FQDN.local Description: An account failed to log on. Subject: Security ID: NULL SID Account Name: - Account Domain: - Logon ID: 0x0 Logon Type: 3 Account For Which Logon Failed: Security ID: NULL SID Account Name: UserName Account Domain: DOMAIN Failure Information: Failure Reason: An Error occured during Logon. Status: 0xc00002ee Sub Status: 0x0 Process Information: Caller Process ID: 0x0 Caller Process Name: - Network Information: Workstation Name: - Source Network Address: - Source Port: - Detailed Authentication Information: Logon Process: Kerberos Authentication Package: Kerberos Transited Services: - Package Name (NTLM only): - Key Length: 0 This event is generated when a logon request fails. It is generated on the computer where access was attempted. The Subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe. The Logon Type field indicates the kind of logon that was requested. The most common types are 2 (interactive) and 3 (network). The Process Information fields indicate which account and process on the system requested the logon. The Network Information fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases. The authentication information fields provide detailed information about this specific logon request. - Transited services indicate which intermediate services have participated in this logon request. - Package name indicates which sub-protocol was used among the NTLM protocols. - Key length indicates the length of the generated session key. This will be 0 if no session key was requested. Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-A5BA-3E3B0328C30D}" /> <EventID>4625</EventID> <Version>0</Version> <Level>0</Level> <Task>12544</Task> <Opcode>0</Opcode> <Keywords>0x8010000000000000</Keywords> <TimeCreated SystemTime="2011-07-13T21:20:22.234292500Z" /> <EventRecordID>12046</EventRecordID> <Correlation /> <Execution ProcessID="556" ThreadID="8984" /> <Channel>Security</Channel> <Computer>FQDN.local</Computer> <Security /> </System> <EventData> <Data Name="SubjectUserSid">S-1-0-0</Data> <Data Name="SubjectUserName">-</Data> <Data Name="SubjectDomainName">-</Data> <Data Name="SubjectLogonId">0x0</Data> <Data Name="TargetUserSid">S-1-0-0</Data> <Data Name="TargetUserName">UserName</Data> <Data Name="TargetDomainName">DOMAIN</Data> <Data Name="Status">0xc00002ee</Data> <Data Name="FailureReason">%%2304</Data> <Data Name="SubStatus">0x0</Data> <Data Name="LogonType">3</Data> <Data Name="LogonProcessName">Kerberos</Data> <Data Name="AuthenticationPackageName">Kerberos</Data> <Data Name="WorkstationName">-</Data> <Data Name="TransmittedServices">-</Data> <Data Name="LmPackageName">-</Data> <Data Name="KeyLength">0</Data> <Data Name="ProcessId">0x0</Data> <Data Name="ProcessName">-</Data> <Data Name="IpAddress">-</Data> <Data Name="IpPort">-</Data> </EventData> </Event>
I did a lot for this and did not find anything that seems to point me in the right direction. I found something that said trust in the forest, and that might be a problem, but I'm not to blame for AD, and it all came to my mind. I feel that the corresponding permissions exist, since I can get this to work with IIS Manager just fine, it fails when using Microsoft.Web.Administration and ServerManager.OpenRemote ()
UPDATE
I disabled UAC on both machines, and I added the certificate from the target IIS machine to the certificate store on the requesting machine. The same errors still occur.
Adam carr
source share