public DesignTimeParser(DesignerHost host, Document document)
{
this.host = host;
this.document = document;
refMan = host.GetService(typeof(IWebFormReferenceManager)) as IWebFormReferenceManager;
if (refMan == null)
throw new Exception ("Could not get IWebFormReferenceManager from host");
}