Set Up a Development Environment

In order to develop for Microsoft Provisioning System (MPS), we recommend that you create a dedicated development environment which is made up of at least a minimal setup for MPS and the hosted service you are developing for, or a lab deployment of the solution reference architecture. In this way, you ensure that the production system is not impacted by any activity during the development phase.

What You Will Need

Following is a list of the items you will need if you do not want to deploy the solution completely:

Get Started

Following are the steps to follow in order to prepare your environment for development for MPS.

Procedure MPSSDK.1: To prepare the MPS development environment
  1. On all machines, install the operating system and the latest service pack and hotfixes.
  2. Join all machines to the domain.
  3. Install SQL Server 2005 on your development server.
  4. Install Visual Studio 2005 on your development server.
  5. Install MPS on your development server, using the MPF.MSI and following the Install Wizard. Install all components except the ISAPI Filter.
  6. Reboot the development server.
  7. Install the MPF SDK.
  8. If you need the other providers and namespaces shipped with the solution, you can install the respective MSIs on the MPS Engine Server from the solution distribution CD.


    When running the MSIs, you will receive a warning that they can only be installed by using the MPS Deployment Tool. To get around this, use this command line without the quotes "msiexec /i msiname.msi ENABLEUI=YES" (the parameter is case sensitive).


Do not use this for a production system; these instructions are for development systems only.

Now that this is done you will have to set up the environment variables on the development server.

Procedure MPSSDK.2: To set up the environment variables on the development server
  1. Open the computer properties, and then, on the Advanced tab, add the following path to the Path Variable C:\Program Files\Microsoft Provisioning\Tools
  2. Add the Domain\MPFServiceAccts Group to the local Administrators Group.
  3. Add the Domain\MPFClientAccts to the Local DCOM Users Group.
  4. Restart the MPF Engine COM+ Application using the Component management MMC Snap-in (dcomcnfg.exe).
  5. Open a command prompt and type provtest.exe /X3 "C:\Program Files\Microsoft Provisioning\Samples\Simple.xml"

    You should get a response that is formated XML in green and blue looking like this:

    ?   <data>
    ?	<organizations>
    ?		 <organization name=""/>
    ?	</organizations>?   

    If the response is a error in yellow and red like the following example, the error message might be different.

    <errorContext description="No provisioning engines are available to process the request." code="0xc2201908"/>

Make sure that all the environment settings are done correctly. If in doubt please post questions on the Microsoft Provisioning Forum.

Once you have set up MPF, you are now ready to start the process of developing the provider. See Get Started with Provider Development.