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();
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.
About agramont
Conrad Agramont is focused on .NET Development, Virtualization, Windows 7, Windows Server 2008, Virtual Desktop, and Microsoft Business Productivity (Exchange, Office, Live Communications)
For more information on Conrad and Agramont Services, please visit:
http://agramontservices.com
Follow Me On Twitter (@agramont)