I was experimenting with two of the new providers in Web Deploy v2: appPoolNetFx and appPoolPipeline. I had Web Deploy v1.1 installed on my server, and I had side-by-side installed Web Deploy v2. I ran this command and, to my surprise, got this error:
C:Program FilesIISMicrosoft Web Deploy V2>msdeploy.exe -verb:dump -source:appPoolNetFx="TestSite",computername="https://myserver:8172/msdeploy.axd?Site=T
Error: Object of type 'appPoolNetFx' and path 'TestSite' cannot be created.
Error: (1/12/2011 10:14:16 AM) An error occurred when the request was processedon the remote computer.
Error: Exception has been thrown by the target of an invocation.
Error: Unknown factory 'appPoolNetFx'.
Error count: 1.
Looking at the Failed Request Tracing Logs (aka FREB logs) on the server, I saw this error:
Tracing deployment agent exception. Request ID ''. Request Timestamp: '01/12/2011 10:14:16'. Error Details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Web.Deployment.DeploymentException: Unknown factory 'appPoolNetFx'.
at Microsoft.Web.Deployment.DeploymentProviderSettingCollection..ctor(String factoryName)
at Microsoft.Web.Deployment.DeploymentProviderOptions..ctor(SerializationInfo info, StreamingContext context)
Usually this means that you typed the provider name incorrectly. But in this case, it means that the Web Management Service is still using the old v1.1. DLLs to service this request. Restarting wmsvc fixed the problem!