Tuesday, September 18, 2012 6:52 PM
I'm trying to create a build definition for my web application on the build server which will create a deployment package (.zip package).
The deployment is successful (build server is able to create the package) with the following settings in "package/ publish" propeerties of the web [roject in VS 2010. turned on :
"Include IIS settings as configured in IIS" - UNCHECK.
MS build arguments in build definition:
/p:DeployOnBuild=True /p:Configuration=Debug /p:CreatePackageOnPublish=True
However, when I create the build definition with the IIS settings option turned on, I get the following error:
"Include IIS settings as configured in IIS" - Checked in project properties.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets (3009): Web deployment task failed.(Object of type 'manifest' and path 'D:\Builds\1\SEA\SEA_TEST_MSDeploy - TestMSDeploy\Binaries\_PublishedWebsites\TestMSDeploy_Package\TestMSDeploy.SourceManifest.xml' cannot be created.) Object of type 'manifest' and path 'D:\Builds\1\SEA\SEA_TEST_MSDeploy - TestMSDeploy\Binaries\_PublishedWebsites\TestMSDeploy_Package\TestMSDeploy.SourceManifest.xml' cannot be created. One or more entries in the manifest 'sitemanifest' are not valid. Application '/TestMSDeploy' does not exist in site 'Default Web Site'.
I know it is because it is looking for a virtual directory for this web project on the build server. But is there any way around this? We want this option checked because we want to import IIS settings into the package as well. Also Pls note I only want the build server to generate the .zip package on the shared path.
Any help on this is appreciated!
Wednesday, September 19, 2012 6:08 AMModerator
Thanks for your post!
Can you look at this blog about Packaging and Deploying Web Applications for Internet Information Server (IIS) ?
You can refer to this thread http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/fcf88965-5b24-4e2e-a524-4ee3ceb5c8e5 for how to deploy Web Deploy zip package in Team Build 2010.
Hope it helps!
Cathy Kong [MSFT]
MSDN Community Support | Feedback to us
Thursday, September 20, 2012 3:42 PM
I looked at those posts earlier but I think they are looking at permission issue..
I would like to import the IIS settings for the project to the dest server..
Team builld works fine for me, but I do not know how to get the settings from IIS to the destinaiton server..
in other words,
We can build the MSDeploy package (zip file) on a local developer laptop. We are trying to incorporate this into the automated build (TFS). Where does the automated build get the IIS settings from, to insert into the package?
Pls let me know how to do it.
Friday, September 21, 2012 2:08 AMModerator