SharpeRAD / Cake.IIS

IIS addin for Cake
http://cakebuild.net
MIT License
52 stars 28 forks source link

Exception retrieving COM object #21

Closed trailmax closed 7 years ago

trailmax commented 7 years ago

I'm hitting this exception:

Retrieving the COM class factory for remote component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} from machine failed due to the following error: 800706ba

I'm running as admin and firewall is off. But I'm trying to configure the localhost (I'm automating my development setup).

I hit problems on trying to create AppPool:

Task("Create-Application-Pool")
    .Description("Create a ApplicationPool")
    .Does(() =>
    {
        CreatePool("MyProject.dev", new ApplicationPoolSettings()
        {
            Name = "MyProject.dev",
            IdentityType = IdentityType.LocalSystem,
        });
    });

where MyProject.dev is a domain name in hosts file pointing to 127.0.01.

Anything I can do to debug?

SharpeRAD commented 7 years ago

I haven't personally seen this error before and have to take your word that the firewall is off, so I can only give you general advice:

  1. Don't include the computer name when calling a local server.
  2. Always include Username / Password when calling a remote server.
trailmax commented 7 years ago

Indeed, including computer name for local server was the issue. I did not realise that this was the actual address of the remote machine. Removing it worked:

        CreatePool(new ApplicationPoolSettings()
        {
            Name = "MyProject.dev",
            IdentityType = IdentityType.LocalSystem,
        });

Thank you for pushing into the right direction!