I am following the steps in Migrate a Web Site from IIS 6.0 to IIS 7 or above
I am migrating my site to the target by using a package file.
I am running into problems using the following command. It is running with full administrative permissions:
msdeploy -verb:sync -source:metakey=lm/w3svc/1735044752 -dest:package=f:\webdeploy\Site1735044752.zip,encryptPassword=somelongpassword > f:\webdeploy\WebDeployPackage.log
I had to add the password because the file will contain an SSLCert and so the password is required. This is on IIS 6 on a W2K3 server.
This command throws an RPC error. It should create a package file on the target `IIS 6` server. Which I plan to copy to my `IIS 7.5` server. Where I will run the command:
msdeploy -verb:sync -source:package=c:\Site1735044752.zip,encryptPassword=somelongpassword -dest:metakey=lm/w3svc/1 -whatif > WebDeploySync.log
The `-whatif` will validate the output.
But I am not getting that far. When I run the top command above, on the `IIS 6` target I get the following error:
Error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
Error count: 1.
When I examine the log file I see the last lines in WebDeployPackage.log are:
...
Info: Adding file (F:\ProductionWebSites\websites.aspx).
Info: Adding child metaProperty (/lm/w3svc/1735044752/root/AccessFlags).
Info: Adding child metaProperty (/lm/w3svc/1735044752/root/AppIsolated).
Info: Adding child metaProperty (/lm/w3svc/1735044752/root/AspBufferingOn).
Info: Adding child metaProperty (/lm/w3svc/1735044752/root/AspScriptTimeout).
Info: Adding child metaProperty (/lm/w3svc/1735044752/root/AspSessionTimeout).
Info: Adding child metaProperty (/lm/w3svc/1735044752/root/AuthFlags).
Info: Adding child metaProperty (/lm/w3svc/1735044752/root/DirBrowseFlags).
Info: Adding child metaProperty (/lm/w3svc/1735044752/root/AppFriendlyName).
Info: Adding child metaProperty (/lm/w3svc/1735044752/root/AppPoolId).
Info: Adding child metaProperty (/lm/w3svc/1735044752/root/AppRoot).
Info: Adding child metaProperty (/lm/w3svc/1735044752/root/KeyType).
Info: Adding child metaProperty (/lm/w3svc/1735044752/root/ScriptMaps).
Info: Adding child metaKey (/lm/w3svc/1735044752/root/aspnet_client).
Does this mean I am getting the RPC error adding a child metakey for the asp.net client?
I googled the error and found this on SO:
The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
It does not seem to help because I am not remote at this point. I am running webdeploy on the Source and copying the package to the source server so the target is not in the equation.
I went into services and I verified the the RPC service is "Started" but if I right click all the options (stop, start, pause, restart) are grayed out. Is this normal for the RPC service or does it point to an issue?
Does webdeploy is use WMI under the hood?
Does anyone have any ideas on what steps I need to take to further trouble shoot this?