Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7607015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:33:15+00:00 2026-05-31T00:33:15+00:00

I just need to create Web Deployement package using TFS build and don’t want

  • 0

I just need to create Web Deployement package using TFS build and don’t want to deploy it automatically in IIS.

I have added the below two parameters in Build Definition – > MSBuild Arguments

/p:CreatePackageOnPublish=true /p:DeployOnBuild=true

The probelm is I am not getting the ZIP file in drop location and getting the below error.

C:\Program
Files\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets
(1657): The "MapUriToIisWebServer" task failed unexpectedly.
System.Runtime.InteropServices.COMException (0x80005000): Unknown
error (0x80005000) at
System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind() at
System.DirectoryServices.DirectoryEntry.get_IsContainer() at
System.DirectoryServices.DirectoryEntries.CheckIsContainer() at
System.DirectoryServices.DirectoryEntries.Find(String name, String
schemaClassName) at
Microsoft.Web.Publishing.Tasks.MapUriToIisWebServer.get_IisMajorVersion()
at Microsoft.Web.Publishing.Tasks.MapUriToIisWebServer.Execute() at
Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at
Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost
taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost
taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask,
Boolean& taskResult)

What could be the issue?


Now I am getting different error

error : Web deployment task failed.(Object of type ‘manifest’ and path ‘e:\TFS\Dev\ApplicationName\Binaries\Release_PublishedWebsites\ApplicationName_Package\ApplicationName.SourceManifest.xml’ cannot be created.)

error : Object of type ‘manifest’ and path ‘e:\TFS\Dev\ApplicationName\Binaries\Release_PublishedWebsites\ApplicationName_Package\ApplicationName.SourceManifest.xml’ cannot be created.

error : One or more entries in the manifest ‘sitemanifest’ are not valid.

error : Application ‘/ApplicationName’ does not exist in site ‘Default Web Site’.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T00:33:17+00:00Added an answer on May 31, 2026 at 12:33 am

    I believe you just need to add the ‘Package’ target to your build for the web project.

     /t:Build;Package
    

    I’ve been using that target in my tfs build to generate the _PublishedWebsite folder with the package zip for a while now with success.

    EDIT: Explanation of Package target
    If you look at your csproj file for your web application as an XML file, you’ll see that it includes the following

    <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
    

    This includes a bunch of web targets into your build process. Crack this file open and at the bottom you’ll see that it in turn includes

     <Import Project="..\Web\Microsoft.Web.Publishing.targets" Condition="Exists('..\Web\Microsoft.Web.Publishing.targets')" />
    

    This file contains the definition of the Web Deployment process for MSBuild. You’ll see that it declares a variable to denote the “target” to invoke on a Deploy as being “Package”

     <DeployDefaultTarget Condition="'$(DeployDefaultTarget)'==''">Package</DeployDefaultTarget>
    

    If you read through this file further it will give you an idea of how Packaging and Deployment work under the covers and what the set of properties and targets are you can manipulate to customize your build.

    Long story short though, if you call

     msbuild yourwebapplication.csproj /t:Package /p:Configuration=Release 
    

    It should build you the web deployment package for the Release configuration of your app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to build a web service application for my client, using the following
For my newest windows-application I want to create an interface that is web-based using
I just need to know hot to create a CGLayer that has an image
I need to create a wall system just like Facebook's (users can post messages,
I need to create a midnight DateTime I've just done this: DateTime endTime =
Hi I have the following interfaces that I need to create. Can you just
So, just like the title says, I need to create an application that gets
I just created my first MVC2 project using the standard template. I need to
I need to create a project that has a web frontend to manage synchronous
I have a wordpress website, and I want to create a simple web commerce.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.