public void Load(Stream file, string fileName)
{
if (activated || RootComponent != null)
throw new InvalidOperationException ("You must reset the host before loading another file.");
loading = true;
this.Container.Add (new WebFormPage());
this.rootDocument = new Document ((Control)rootComponent, this, file, fileName);
loading = false;
OnLoadComplete ();
}