Пример #1
0
        internal void VerifyLocation(string locationPath)
        {
            if (locationPath == null)
            {
                return;
            }

            // TODO: add deeper level check
            var parts = locationPath.Split('/');

            if (parts[0] != string.Empty && Sites != null && Sites.All(site => site.Name != parts[0]))
            {
                throw new FileNotFoundException(
                          $"Filename: \\\\?\\{FileName}\r\nError: Unrecognized configuration path 'MACHINE/WEBROOT/APPHOST/{parts[0]}'\r\n\r\n", FileName);
            }
        }