/// <summary> /// Ensures that the application path has been set. /// </summary> public void CheckApplicationPath() { if (ApplicationPath == null) { throw new InvalidOperationException("ApplicationPath property has not been set."); } if (ApplicationPath.IndexOf(":") > -1) { throw new InvalidOperationException("ApplicationPath should be relative to the root of the server but it is currently: " + ApplicationPath); } }