in

Agramont.net

Virtualiztion, Software + Services, & Enterprise Architectures

Provware

How To: Create a new Website

This example will show you how to create a new website using the Provware Framework (Build 001).

  1. Create a reference pointing to the Provware.Framework.dll assembly.
  2. Add a directive to use the "Provware.Framework.Web" namespace

    using Provware.Framework.Web;

  3. Add the following code to your C# application

WebManager wm = new WebManager();

WebServer iisServer = wm.Connect("localhost");

Site newSite = iisServer.CreateSite("My Site", ":80:www.mySite.com", "C:\\Sites\\mySite\\Content\\Web", true);

At this point, the site is now created.  The "Site" object is part of the Provware Framework.  You can now use that object to interact with the site.

Published Jul 31 2006, 01:37 PM by agramont
Filed under: , ,

Comments

 

Conrad Agramont's Blog said:

Last night, I posted the first build of the Provware Framework on my site (http://agramont.net/files/14/default.aspx).

July 31, 2006 7:26 PM
 

Conrad Agramont's WebLog said:

Last night, I posted the first build of the Provware Framework on my site (http://agramont.net/files/14/default.aspx).

July 31, 2006 7:26 PM

Leave a Comment

(required)  
(optional)
(required)  
Add

About agramont

Conrad Agramont is the Owner and a Technology Advisor for Agramont Services, LLC. For more information on Conrad and Agramont Services, please visit: http://www.agramontservices.com/about.aspx
Copyright Agramont.net, 2009. all rights reserved