/// <summary> /// Try to write web.config file /// </summary> /// <returns></returns> protected virtual bool TryWriteWebConfig() { try { _fileProvider.SetLastWriteTimeUtc(_fileProvider.MapPath(SmiInfrastructureDefaults.WebConfigPath), DateTime.UtcNow); return(true); } catch { return(false); } }