174 references to Resources
Microsoft.AspNetCore.Mvc.Core (174)
AcceptedAtActionResult.cs (1)
87
throw new InvalidOperationException(
Resources
.NoRoutesMatched);
AcceptedAtRouteResult.cs (1)
83
throw new InvalidOperationException(
Resources
.NoRoutesMatched);
ActionResultOfT.cs (2)
27
var error =
Resources
.FormatInvalidTypeTForActionResultOfT(typeof(TValue), "ActionResult<T>");
43
var error =
Resources
.FormatInvalidTypeTForActionResultOfT(typeof(TValue), "ActionResult<T>");
ApiConventionMethodAttribute.cs (2)
55
throw new ArgumentException(
Resources
.FormatApiConventionMethod_NoMethodFound(methodName, conventionType), nameof(methodName));
59
throw new ArgumentException(
Resources
.FormatApiConventionMethod_AmbiguousMethodName(methodName, conventionType), nameof(methodName));
ApiConventionTypeAttribute.cs (2)
58
throw new ArgumentException(
Resources
.FormatApiConventionMustBeStatic(conventionType), nameof(conventionType));
73
var errorMessage =
Resources
.FormatApiConvention_UnsupportedAttributesOnConvention(
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
97
var message =
Resources
.FormatApiController_AttributeRouteRequired(
ApplicationModels\ApplicationModelFactory.cs (8)
164
var message =
Resources
.FormatAttributeRoute_IndividualErrorMessage(
211
Resources
.FormatAttributeRoute_AggregateErrorMessage_ErrorNumber(
242
return
Resources
.FormatAttributeRoute_DuplicateNames_Item(a.action.DisplayName, a.selector.AttributeRouteModel!.Template);
245
var message =
Resources
.FormatAttributeRoute_DuplicateNames(routeName, Environment.NewLine, string.Join(Environment.NewLine, descriptions));
295
var nullTemplate =
Resources
.AttributeRoute_NullTemplateRepresentation;
311
var description =
Resources
.FormatAttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod_Item(
331
return
Resources
.FormatAttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod(
341
var message =
Resources
.FormatAttributeRoute_AggregateErrorMessage(
ApplicationModels\AttributeRouteModel.cs (13)
311
var message =
Resources
.FormatAttributeRoute_TokenReplacement_InvalidSyntax(
313
Resources
.AttributeRoute_TokenReplacement_EmptyTokenNotAllowed);
319
var message =
Resources
.FormatAttributeRoute_TokenReplacement_InvalidSyntax(
321
Resources
.AttributeRoute_TokenReplacement_UnclosedToken);
341
var message =
Resources
.FormatAttributeRoute_TokenReplacement_InvalidSyntax(
343
Resources
.AttributeRoute_TokenReplacement_ImbalancedSquareBrackets);
349
var message =
Resources
.FormatAttributeRoute_TokenReplacement_InvalidSyntax(
351
Resources
.AttributeRoute_TokenReplacement_ImbalancedSquareBrackets);
369
var message =
Resources
.FormatAttributeRoute_TokenReplacement_InvalidSyntax(
371
Resources
.AttributeRoute_TokenReplacement_UnclosedToken);
389
var message =
Resources
.FormatAttributeRoute_TokenReplacement_InvalidSyntax(
391
Resources
.AttributeRoute_TokenReplacement_UnescapedBraceInToken);
412
var message =
Resources
.FormatAttributeRoute_TokenReplacement_ReplacementValueNotFound(
ApplicationModels\ControllerActionDescriptorBuilder.cs (2)
11
using Resources = Microsoft.AspNetCore.Mvc.Core.
Resources
;
125
throw new InvalidOperationException(
Resources
.FormatApiExplorer_UnsupportedAction(
ApplicationModels\InferParameterBindingInfoConvention.cs (2)
9
using Resources = Microsoft.AspNetCore.Mvc.Core.
Resources
;
96
var message =
Resources
.FormatApiController_MultipleBodyParametersFound(
ApplicationParts\ApplicationPartFactory.cs (1)
48
throw new InvalidOperationException(
Resources
.FormatApplicationPartFactory_InvalidFactoryType(
ApplicationParts\RelatedAssemblyAttribute.cs (1)
86
Resources
.FormatRelatedAssemblyAttribute_AssemblyCannotReferenceSelf(nameof(RelatedAssemblyAttribute), assemblyName));
artifacts\obj\Microsoft.AspNetCore.Mvc.Core\Release\net9.0\Microsoft.AspNetCore.Mvc.Core.Resources.cs (1)
10
internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(
Resources
)));
Authorization\AuthorizeFilter.cs (1)
111
Resources
.FormatAuthorizeFilter_AuthorizationPolicyCannotBeCreated(
BindPropertyAttribute.cs (1)
49
Resources
.FormatBinderType_MustBeIModelBinder(
Builder\ControllerEndpointRouteBuilderExtensions.cs (1)
503
throw new InvalidOperationException(
Resources
.FormatUnableToFindServices(
Builder\MvcApplicationBuilderExtensions.cs (1)
123
throw new InvalidOperationException(
Resources
.FormatUnableToFindServices(
ConsumesAttribute.cs (2)
12
using Resources = Microsoft.AspNetCore.Mvc.Core.
Resources
;
249
Resources
.FormatMatchAllContentTypeIsNotAllowed(arg));
ControllerContext.cs (1)
40
throw new ArgumentException(
Resources
.FormatActionDescriptorMustBeBasedOnControllerAction(
Controllers\ControllerActivatorProvider.cs (1)
47
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
Controllers\ControllerFactoryProvider.cs (3)
45
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
80
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
101
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
Controllers\DefaultControllerActivator.cs (2)
34
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
43
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
Controllers\DefaultControllerFactory.cs (1)
45
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
Controllers\DefaultControllerPropertyActivator.cs (1)
40
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
CreatedAtActionResult.cs (1)
87
throw new InvalidOperationException(
Resources
.NoRoutesMatched);
CreatedAtRouteResult.cs (1)
83
throw new InvalidOperationException(
Resources
.NoRoutesMatched);
Filters\ControllerActionFilter.cs (1)
28
throw new InvalidOperationException(
Resources
.FormatPropertyOfTypeCannotBeNull(
Filters\ControllerResultFilter.cs (1)
28
throw new InvalidOperationException(
Resources
.FormatPropertyOfTypeCannotBeNull(
Filters\DefaultFilterProvider.cs (1)
57
throw new InvalidOperationException(
Resources
.FormatTypeMethodMustReturnNotNullValue(
Filters\FilterCollection.cs (2)
81
var message =
Resources
.FormatTypeMustDeriveFromType(
159
var message =
Resources
.FormatTypeMustDeriveFromType(
Filters\MiddlewareFilterBuilder.cs (1)
47
Resources
.FormatMiddlewareFilterBuilder_NullApplicationBuilder(nameof(ApplicationBuilder)));
Filters\MiddlewareFilterConfigurationProvider.cs (5)
25
Resources
.FormatMiddlewareFilterConfigurationProvider_CreateConfigureDelegate_CannotCreateType(configurationType, nameof(configurationType)));
48
Resources
.FormatMiddewareFilter_ConfigureMethodOverload(methodName));
55
Resources
.FormatMiddewareFilter_NoConfigureMethod(
63
Resources
.FormatMiddlewareFilter_InvalidConfigureReturnType(
111
Resources
.FormatMiddlewareFilter_ServiceResolutionFail(
Filters\OutputCacheFilter.cs (1)
43
Resources
.FormatOutputCacheAttribute_Requires_OutputCachingMiddleware(nameof(OutputCacheAttribute)));
Filters\ResponseCacheFilterExecutor.cs (2)
65
Resources
.FormatResponseCache_SpecifyDuration(nameof(NoStore), nameof(Duration)));
87
Resources
.FormatVaryByQueryKeys_Requires_ResponseCachingMiddleware(nameof(VaryByQueryKeys)));
Formatters\FormatterMappings.cs (3)
57
var message =
Resources
.FormatFormatFormatterMappings_GetMediaTypeMappingForFormat_InvalidFormat(
88
string.Format(CultureInfo.CurrentCulture,
Resources
.FormatterMappings_NotValidMediaType, contentType),
101
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Resources
.Format_NotValid, format), nameof(format));
Formatters\InputFormatter.cs (2)
43
var message =
Resources
.FormatFormatter_NoMediaTypes(
125
var message =
Resources
.FormatFormatter_NoMediaTypes(
Formatters\MediaType.cs (1)
64
throw new ArgumentException(
Resources
.FormatArgument_InvalidOffsetLength(nameof(offset), nameof(length)));
Formatters\OutputFormatter.cs (2)
38
var message =
Resources
.FormatFormatter_NoMediaTypes(
99
var message =
Resources
.FormatFormatter_NoMediaTypes(
Formatters\TextInputFormatter.cs (2)
42
var message =
Resources
.FormatUnsupportedContentType(
79
var message =
Resources
.FormatTextInputFormatter_SupportedEncodingsMustNotBeEmpty(
Formatters\TextOutputFormatter.cs (3)
69
var message =
Resources
.FormatTextOutputFormatter_SupportedEncodingsMustNotBeEmpty(
117
throw new InvalidOperationException(
Resources
.FormatOutputFormatterNoMediaType(GetType().FullName));
154
var message =
Resources
.FormatTextOutputFormatter_WriteResponseBodyAsyncNotSupported(
Infrastructure\ActionMethodExecutor.cs (3)
9
using Resources = Microsoft.AspNetCore.Mvc.Core.
Resources
;
360
throw new InvalidOperationException(
Resources
.FormatActionResult_ActionReturnValueCannotBeNull(type));
369
throw new InvalidOperationException(
Resources
.FormatActionResult_ActionReturnValueCannotBeNull(declaredType));
Infrastructure\ActionSelector.cs (2)
11
using Resources = Microsoft.AspNetCore.Mvc.Core.
Resources
;
103
var message =
Resources
.FormatDefaultActionSelector_AmbiguousActions(
Infrastructure\AsyncEnumerableReader.cs (1)
89
throw new InvalidOperationException(
Resources
.FormatObjectResultExecutor_MaxEnumerationExceeded(
Infrastructure\ControllerActionInvoker.cs (2)
14
using Resources = Microsoft.AspNetCore.Mvc.Core.
Resources
;
368
var message =
Resources
.FormatAsyncActionFilter_InvalidShortCircuit(
Infrastructure\DefaultOutputFormatterSelector.cs (2)
63
throw new InvalidOperationException(
Resources
.FormatOutputFormattersAreRequired(
275
var message =
Resources
.FormatObjectResult_MatchAllContentType(
Infrastructure\LocalRedirectResultExecutor.cs (1)
46
throw new InvalidOperationException(
Resources
.UrlNotLocal);
Infrastructure\ModelStateInvalidFilter.cs (1)
34
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
Infrastructure\PhysicalFileResultExecutor.cs (2)
35
Resources
.FormatFileResult_InvalidPath(result.FileName), result.FileName);
81
throw new NotSupportedException(
Resources
.FormatFileResult_PathNotRooted(result.FileName));
Infrastructure\RedirectToActionResultExecutor.cs (1)
50
throw new InvalidOperationException(
Resources
.NoRoutesMatched);
Infrastructure\RedirectToPageResultExecutor.cs (1)
50
throw new InvalidOperationException(
Resources
.FormatNoRoutesMatchedForPage(result.PageName));
Infrastructure\RedirectToRouteResultExecutor.cs (1)
46
throw new InvalidOperationException(
Resources
.NoRoutesMatched);
Infrastructure\ResourceInvoker.cs (2)
935
var message =
Resources
.FormatAsyncResourceFilter_InvalidShortCircuit(
1431
var message =
Resources
.FormatAsyncResultFilter_InvalidShortCircuit(
Infrastructure\SystemTextJsonResultExecutor.cs (1)
121
throw new InvalidOperationException(
Resources
.FormatProperty_MustBeInstanceOfType(
Infrastructure\VirtualFileResultExecutor.cs (2)
43
Resources
.FormatFileResult_InvalidPath(result.FileName), result.FileName);
110
throw new InvalidOperationException(
Resources
.VirtualFileResultExecutor_NoFileProviderConfigured);
ModelBinderAttribute.cs (1)
67
Resources
.FormatBinderType_MustBeIModelBinder(
ModelBinding\Binders\BinderTypeModelBinder.cs (1)
30
Resources
.FormatBinderType_MustBeIModelBinder(
ModelBinding\Binders\BodyModelBinder.cs (1)
146
var message =
Resources
.FormatUnsupportedContentType(httpContext.Request.ContentType);
ModelBinding\Binders\BodyModelBinderProvider.cs (1)
77
throw new InvalidOperationException(
Resources
.FormatInputFormattersAreRequired(
ModelBinding\Binders\CollectionModelBinder.cs (1)
389
throw new InvalidOperationException(
Resources
.FormatModelBinding_ExceededMaxModelBindingCollectionSize(
ModelBinding\Binders\ComplexObjectModelBinder.cs (3)
198
Resources
.FormatComplexObjectModelBinder_NoSuitableConstructor_ForParameter(
203
Resources
.FormatComplexObjectModelBinder_NoSuitableConstructor_ForProperty(
209
Resources
.FormatComplexObjectModelBinder_NoSuitableConstructor_ForType(
ModelBinding\Binders\ComplexTypeModelBinder.cs (4)
479
throw new InvalidOperationException(
Resources
.FormatComplexTypeModelBinder_NoParameterlessConstructor_ForType(modelType.FullName));
487
Resources
.FormatComplexTypeModelBinder_NoParameterlessConstructor_ForParameter(
492
Resources
.FormatComplexTypeModelBinder_NoParameterlessConstructor_ForProperty(
498
Resources
.FormatComplexTypeModelBinder_NoParameterlessConstructor_ForType(
ModelBinding\Binders\FormCollectionModelBinderProvider.cs (1)
28
Resources
.FormatFormCollectionModelBinder_CannotBindToFormCollection(
ModelBinding\Binders\TryParseModelBinder.cs (1)
111
?? throw new InvalidOperationException(
Resources
.FormatTryParseModelBinder_InvalidType(modelType, nameof(TryParseModelBinder)));
ModelBinding\BindingSourceValueProvider.cs (2)
41
var message =
Resources
.FormatBindingSource_CannotBeGreedy(
49
var message =
Resources
.FormatBindingSource_CannotBeComposite(
ModelBinding\DefaultModelBindingContext.cs (1)
290
throw new InvalidOperationException(
Resources
.FormatModelBinding_ExceededMaxModelBindingRecursionDepth(
ModelBinding\FormFileValueProviderFactory.cs (2)
43
throw new ValueProviderException(
Resources
.FormatFailedToReadRequestForm(ex.Message), ex);
49
throw new ValueProviderException(
Resources
.FormatFailedToReadRequestForm(ex.Message), ex);
ModelBinding\FormValueProviderFactory.cs (2)
45
throw new ValueProviderException(
Resources
.FormatFailedToReadRequestForm(ex.Message), ex);
51
throw new ValueProviderException(
Resources
.FormatFailedToReadRequestForm(ex.Message), ex);
ModelBinding\JQueryFormValueProviderFactory.cs (2)
45
throw new ValueProviderException(
Resources
.FormatFailedToReadRequestForm(ex.Message), ex);
51
throw new ValueProviderException(
Resources
.FormatFailedToReadRequestForm(ex.Message), ex);
ModelBinding\JQueryKeyValuePairNormalizer.cs (1)
72
message:
Resources
.FormatJQueryFormValueProviderFactory_MissingClosingBracket(key),
ModelBinding\Metadata\BindingMetadata.cs (1)
48
Resources
.FormatBinderType_MustBeIModelBinder(
ModelBinding\Metadata\DefaultModelBindingMessageProvider.cs (11)
33
SetMissingBindRequiredValueAccessor(
Resources
.FormatModelBinding_MissingBindRequiredMember);
34
SetMissingKeyOrValueAccessor(() =>
Resources
.KeyValuePair_BothKeyAndValueMustBePresent);
35
SetMissingRequestBodyRequiredValueAccessor(() =>
Resources
.ModelBinding_MissingRequestBodyRequiredMember);
36
SetValueMustNotBeNullAccessor(
Resources
.FormatModelBinding_NullValueNotValid);
37
SetAttemptedValueIsInvalidAccessor(
Resources
.FormatModelState_AttemptedValueIsInvalid);
38
SetNonPropertyAttemptedValueIsInvalidAccessor(
Resources
.FormatModelState_NonPropertyAttemptedValueIsInvalid);
39
SetUnknownValueIsInvalidAccessor(
Resources
.FormatModelState_UnknownValueIsInvalid);
40
SetNonPropertyUnknownValueIsInvalidAccessor(() =>
Resources
.ModelState_NonPropertyUnknownValueIsInvalid);
41
SetValueIsInvalidAccessor(
Resources
.FormatHtmlGeneration_ValueIsInvalid);
42
SetValueMustBeANumberAccessor(
Resources
.FormatHtmlGeneration_ValueMustBeNumber);
43
SetNonPropertyValueMustBeANumberAccessor(() =>
Resources
.HtmlGeneration_NonPropertyValueMustBeNumber);
ModelBinding\ModelBinderFactory.cs (2)
57
throw new InvalidOperationException(
Resources
.FormatModelBinderProvidersAreRequired(
75
var message =
Resources
.FormatCouldNotCreateIModelBinder(providerContext.Metadata.ModelType);
ModelBinding\ModelBindingHelper.cs (6)
226
var message =
Resources
.FormatModelType_WrongType(
236
throw new NotSupportedException(
Resources
.FormatTryUpdateModel_RecordTypeNotSupported(nameof(TryUpdateModelAsync), modelType));
298
Resources
.FormatInvalid_IncludePropertyExpression(expression.NodeType));
308
Resources
.FormatInvalid_IncludePropertyExpression(expression.NodeType));
317
Resources
.FormatInvalid_IncludePropertyExpression(expression.NodeType));
715
Resources
.FormatValueProviderResult_NoConverterExists(value.GetType(), destinationType));
ModelBinding\ModelMetadataProviderExtensions.cs (1)
37
var message =
Resources
.FormatCommon_PropertyNotFound(containerType, propertyName);
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (1)
99
Resources
.FormatValidationStrategy_MappedPropertyNotFound(parameterName, _modelMetadata.ModelType));
ModelBinding\Validation\ValidationVisitor.cs (4)
173
throw new ArgumentException(
Resources
.FormatValidationVisitor_ContainerCannotBeSpecified(metadata.MetadataKind));
302
message =
Resources
.FormatValidationVisitor_ExceededMaxPropertyDepth(nameof(ValidationVisitor), MaxValidationDepth, metadata.Name, metadata.ContainerType);
307
message =
Resources
.FormatValidationVisitor_ExceededMaxDepth(nameof(ValidationVisitor), MaxValidationDepth, metadata.ModelType);
311
message += " " +
Resources
.FormatValidationVisitor_ExceededMaxDepthFix(nameof(MvcOptions), nameof(MvcOptions.MaxValidationDepth));
ProducesAttribute.cs (1)
116
Resources
.FormatMatchAllContentTypeIsNotAllowed(arg));
ProducesResponseTypeAttribute.cs (2)
7
using Resources = Microsoft.AspNetCore.Mvc.Core.
Resources
;
114
throw new InvalidOperationException(
Resources
.FormatGetContentTypes_WildcardsNotSupported(type));
ResponseCacheAttribute.cs (1)
92
throw new InvalidOperationException(
Resources
.FormatCacheProfileNotFound(CacheProfileName));
Routing\AttributeRoute.cs (4)
11
using Resources = Microsoft.AspNetCore.Mvc.Core.
Resources
;
166
e =>
Resources
.FormatAttributeRoute_IndividualErrorMessage(
171
var message =
Resources
.FormatAttributeRoute_AggregateErrorMessage(Environment.NewLine, allErrors);
213
routeInfo.ErrorMessage =
Resources
.FormatAttributeRoute_CannotContainParameter(
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
96
throw new InvalidOperationException(
Resources
.FormatStateShouldBeNullForRouteValueTransformers(transformerMetadata.SelectorType.Name));
Routing\KnownRouteValueConstraint.cs (1)
82
Resources
.FormatPropertyOfTypeCannotBeNull(
Routing\MvcAttributeRouteHandler.cs (3)
9
using Resources = Microsoft.AspNetCore.Mvc.Core.
Resources
;
48
var message =
Resources
.FormatPropertyOfTypeCannotBeNull(
78
Resources
.FormatActionInvokerFactory_CouldNotCreateInvoker(
Routing\MvcRouteHandler.cs (1)
66
Resources
.FormatActionInvokerFactory_CouldNotCreateInvoker(
Routing\UrlHelperBase.cs (1)
402
throw new InvalidOperationException(
Resources
.FormatUrlHelper_RelativePagePathIsNotSupported(
Routing\UrlHelperFactory.cs (2)
25
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
32
throw new ArgumentException(
Resources
.FormatPropertyOfTypeCannotBeNull(
SerializableError.cs (1)
47
Resources
.SerializableError_DefaultError : error.ErrorMessage;
SignOutResult.cs (1)
108
Resources
.FormatPropertyOfTypeCannotBeNull(
ValidationProblemDetails.cs (2)
21
Title =
Resources
.ValidationProblemDescription_Title;
68
Resources
.SerializableError_DefaultError :