This example will show you how to create a new website using the Provware Framework (Build 001).
- Create a reference pointing to the Provware.Framework.dll assembly.
- Add a directive to use the "Provware.Framework.Web" namespace
using Provware.Framework.Web;
- Add the following code to your C# application
WebManager wm = new WebManager();
// Connect to Server
WebServer ws = wm.Connect("localhost");
// Bind to site by SiteName (Provwware Terminology)/ServerComment
Site defaultWeb = ws.Sites["Default Website"];
// Get the Application Pool ID
string defaultWebPool = defaultWeb.IIsWebServer.AppPoolId;
// Bind to the Application Pool Object.
ApplicationPool pool = ws.ApplicationPools[defaultWebPool];
Console.WriteLine(pool.IIsApplicationPool.WAMUserName);