Hi All,
I want to create a IIS web site using MSDeploy.exe, something like below:
Sites
|--> Mysite
I use cmd file which is generated by Visual Studio publish --> Web deploy package option.
I get message like
SetParameters from:
"C:\Users\naik\Mysite.SetParameters.xml"
You can change IIS Application Name, Physical path, connectionString
or other deploy parameters in the above file.
-------------------------------------------------------
Start executing msdeploy.exe
-------------------------------------------------------
"C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:package='C:\Users\naik\Mysite.zip' -dest:auto,includeAcls="False" -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"C:\Users\naik\Mysite.SetParameters.xml"
Info: Adding sitemanifest (sitemanifest).
Info: Creating application (Mysite)
Info: Adding virtual path (Mysite)
Error Code: ERROR_SITE_DOES_NOT_EXIST
More Information: Site 'Mysite' does not exist. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_SITE_DOES_NOT_EXIST.
Error count: 1.
If I try to create sub-site it works.
Can anybody please confirm if MSDeploy.exe can be used to create top-level site? Is there any way to create top level site using MSDeploy.exe?
Regards,
RK