I have created a asp.net application project in Visual Studio 2010 (.net 4.0). I had published it using Project-> 开发者_JS百科Build Deployment Package. It generated .zip file along with files having extension " .deply.cmd", ".SetParameters.xml", ".SourceManifest.xml" and readme.txt, in Application (obj\Release\Package) folder
My intension is to host the package on test server which has IIS6.0, Windows Server 2003 R2 x64 Edition service pack 2. It has .net 4.0.
I tried by running the cmd file but its showed me an message as below:
ERROR: The system was unable to find the specified registry key or value. msdeploy.exe is not found on this machine. Please install Web Deploy before execute the script.
any help pl....
Have you installed WebDeploy on he target server? If not, try that. You can find it here: http://www.iis.net/download/WebDeploy.
If you have and you're still getting the error, it seems that the installer doesn't create the registry key or environment variable that the VS2010-constructed files expect: see here.
I opened the registry key at: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IIS Extensions\MSDeploy\2 took the value of the registry value InstallPath ("C:\Program Files\IIS\Microsoft Web Deploy V2\" on my machine) and used it to create an environment variable called "MSDeployPath". After that the .cmd file ran.
精彩评论