9 instantiations of InvalidUrlRewriteFormatException
Microsoft.AspNetCore.Rewrite (9)
IISUrlRewrite\UrlRewriteFileParser.cs (9)
28throw new InvalidUrlRewriteFormatException(new XElement(RewriteTags.Rewrite), "The root element '<rewrite>' is missing"); 77throw new InvalidUrlRewriteFormatException(rule, "Condition must have an associated match"); 83throw new InvalidUrlRewriteFormatException(rule, "Rule does not have an associated action attribute"); 96throw new InvalidUrlRewriteFormatException(match, "Match must have Url Attribute"); 136throw new InvalidUrlRewriteFormatException(conditionElement, "Conditions must have an input attribute"); 205throw new InvalidUrlRewriteFormatException(urlAction, "Url attribute cannot contain an empty string"); 229throw new InvalidUrlRewriteFormatException(urlAction, "A valid status code is required"); 263throw new InvalidUrlRewriteFormatException(element, $"The {rewriteTag} parameter '{attribute.Value}' was not recognized"); 279throw new InvalidUrlRewriteFormatException(element, $"The {rewriteTag} parameter '{attribute.Value}' was not recognized");
2 references to InvalidUrlRewriteFormatException
Microsoft.AspNetCore.Rewrite.Tests (2)
IISUrlRewrite\InvalidUrlRewriteFormatExceptionHandlingTests.cs (2)
215var ex = Assert.Throws<InvalidUrlRewriteFormatException>(() => new UrlRewriteFileParser().Parse(new StringReader(input), false));