Before execute my operation, I followe the instruction and change order of thesupportedRuntime elements to make "v4.0" first on my source machine, because my source machine is windows 2003 32 bit, and my destination machine is windows 2012 R2 64 bit
Then I use this command: msdeploy.exe -verb:sync -source:webServer60,computername=xxx.xxx.xxx.xxx -dest:webServer,computername=xxx.xxx.xxx.xxx and get below error:
Error: (9/30/2015 3:29:24 PM) An error occurred when the request was processed on the remote computer.
Error: Source (webServer60) and destination (webServer) are not compatible for the given operation.
Error count: 1.
I use below command to forces Web Deploy to sync .Net 2.0 settings:
msdeploy.exe -verb:sync -source:webserver,machineconfig32.netfxversion=2,machineconfig64.netfxversion=2,rootwebconfig32.netfxversion=2,rootwebconfig64.netfxversion=2 -dest:webserver,machineconfig32.netfxversion=2,machineconfig64.netfxversion=2,rootwebconfig32.netfxversion=2,rootwebconfig64.netfxversion=2,computername=destServername
and get below error:
Error: (9/30/2015 3:19:11 PM) An error occurred when the request was processed o
n the remote computer.
Error: Exception has been thrown by the target of an invocation. ---> System.Exc
eption: Provider 'machineConfig32' does not support setting 'NetFxVersion'.
at Microsoft.Web.Deployment.DeploymentProviderSettingCollection.get_Item(Stri
ng name)
at Microsoft.Web.Deployment.DeploymentBaseOptions.AddDefaultProviderSetting(S
tring providerName, String settingName, Object settingValue)
at Microsoft.Web.Deployment.DeploymentBaseOptions..ctor(SerializationInfo inf
o, StreamingContext context)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureSt
ruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target
, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Obj
ect obj, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder
holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(He
aderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAp
pDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCr
ossAppDomain, IMethodCallMessage methodCallMessage)
at Microsoft.Web.Deployment.Base64EncodingHelper.DeserializeHelper(BinaryForm
atter formatter, Byte[] buffer)
at Microsoft.Web.Deployment.Base64EncodingHelper.Deserialize(String str, Exce
ption& handledException)
at Microsoft.Web.Deployment.SerializationHelper.Deserialize(String str)
at Microsoft.Web.Deployment.DeploymentAgentWorkerRequest.GetTraceMessage(Stri
ng[] additionalMessage)
at Microsoft.Web.Deployment.DeploymentAgent.HandleSync(DeploymentAgentWorkerR
equest workerRequest)
at Microsoft.Web.Deployment.DeploymentAgent.HandleRequestWorker(DeploymentAge
ntAsyncData asyncData)
at Microsoft.Web.Deployment.DeploymentAgent.HandleRequest(DeploymentAgentAsyn
cData asyncData)
at Microsoft.Web.Deployment.DeploymentAgent.BeginProcessRequest(DeploymentAge
ntWorkerRequest workerRequest, AsyncCallback callback, Object extraData)
Error: Provider 'machineConfig32' does not support setting 'NetFxVersion'.
at Microsoft.Web.Deployment.DeploymentProviderSettingCollection.get_Item(Stri
ng name)
at Microsoft.Web.Deployment.DeploymentBaseOptions.AddDefaultProviderSetting(S
tring providerName, String settingName, Object settingValue)
at Microsoft.Web.Deployment.DeploymentBaseOptions..ctor(SerializationInfo inf
o, StreamingContext context)
Error count: 1.
Can anyone help me on this?