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

  • Home
  • SEARCH
  • 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 3332552
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:42:01+00:00 2026-05-17T23:42:01+00:00

I am trying to extend the Microsoft Web Deployment tool and MSDeploy with a

  • 0

I am trying to extend the Microsoft Web Deployment tool and MSDeploy with a custom provider because I want to run custom tasks on the destination deployment machine as part of the process. The general documentation is pretty good outside of custom provider development, but the documentation for doing any sort of extension seems to be non-existent towards abysmal.

I’ve been researching this for several days now and have found some bits and pieces that have allowed me to get pretty far into the process without any real documentation. I’ve almost hacked my way through the process but now I have one final problem: MSDeploy will not recognize my custom provider.

I have created two classes one that extends Microsoft.Web.Deployment.DeploymentProviderFactory (which has both the Name and FriendlyName properties overriden to the name of my custom provider “archimedes”); the other extends Microsoft.Web.Deployment.DeploymentObjectProvider which also has an overriden Name property “archimedes”. I did this by following the custom BatchProvider example you can find online. It looks like this:

ArchimedesProviderFactory (which extends DeploymentProviderFactory and has the Deployment ProviderFactory attribute assigned to the class):

public override string FriendlyName
{
    get { return "archimedes"; }
}

public override string Name
{
    get { return "archimedes"; }
}

The ArchimedesProvider class extends DeploymentObjectProvider and has this:

public override string Name
{
    get { return "archimedes"; }
}

In my sourcemanifest.xml file I have it added an entry:

<archimedes path="..." />

I have placed the assembly file that contains those classes in %program files%\IIS\Microsoft Web Deploy\Extensibility as I was directed too by the material I found online.

The funny thing is that during the build of a package in Visual Studio 2010, my providers are having code called on them from that directory – so VS is definitely connecting to my assembly placed in there somehow (for example I can throw exceptions and see that they were thrown during the process of building a package).

However during actual test deployment of the package from the generated .cmd file, I get an error that the factory for provider “archimedes” cannot be found. Also typing:

MSDeply -verb:dump -source:archimedes -debug

Returns the following:

    Microsoft.Web.Deployment.DeploymentException: Unknown factory 'archimedes'.
   at Microsoft.Web.Deployment.DeploymentProviderSettingCollection..ctor(String factoryName)
   at Microsoft.Web.Deployment.DeploymentProviderOptions..ctor(String factoryName)
   at MSDeploy.MSDeploy.GetObjectParameters(Dictionary`2 parameters, Boolean isDestination, DeploymentBaseOptions& retbaseOptions, DeploymentProviderOptions& re
tproviderOptions)
   at MSDeploy.MSDeploy.ExecuteWorker()
   at MSDeploy.MSDeploy.Execute()
   at MSDeploy.MSDeploy.Main(String[] unusedArgs)
Error count: 1.

So besides the fact that there appears to be no coherent, central source of documentation for custom provider development (does anyone know of a place, please do tell if you found one), my main problem is that for some reason Visual Studio will see and call my provider factory from the assembly file I dumped into the Extensibility folder, but the actual msdeploy/webdeploy does not see it. Does anyone have any ideas?

Thanks a ton…

  • 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-17T23:42:02+00:00Added an answer on May 17, 2026 at 11:42 pm

    OK, this was a simple mistake, although a non-obvious one since the package building portion accessed the code alright and called it from my provider assembly. The problem was that since just about everything in the web application targets the 4.0 framework the class library project I added with the custom provider code did as well. I had to set the target framework to 2.0 and it all started working. None of the error reporting was overly obvious.

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

Sidebar

Related Questions

I'm trying to extend some base classes in Python: class xlist (list): def len(self):
I'm trying to extend the TextBox , ComboBox and Panel controls using IExtenderProvider but
I am trying to extend the partial classes that the entity framework creates so
I'm currently trying to extend a friend's OCaml program. It's a huge collection of
I'm trying to extend the Method class along the lines of: irb(main):008:0> class A
I'm trying to extend my webapp with IronPython, which is working wonderfully so far,
I’ve been trying to find a way to extend SharePoint breadcrumbs across multiple site
I am trying to create my own std::string wrapper to extend its functionality. But
I'm trying to encapsulate my game objects by having them extend Mircosoft.Xna.Framework.GameCompenent, then merely
Trying to extend myStuff object with a new method in a plugin-style fashion, but

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.