diff --git a/src/React.AspNet/HtmlHelperExtensions.cs b/src/React.AspNet/HtmlHelperExtensions.cs index b6d6de67b..f1cdd0201 100644 --- a/src/React.AspNet/HtmlHelperExtensions.cs +++ b/src/React.AspNet/HtmlHelperExtensions.cs @@ -50,7 +50,7 @@ private static IReactEnvironment Environment "ReactJS.NET has not been initialised correctly.", #else "ReactJS.NET has not been initialised correctly. Please ensure you have " + - "called app.AddReact() and app.UseReact() in your Startup.cs file.", + "called services.AddReact() and app.UseReact() in your Startup.cs file.", #endif ex ); diff --git a/src/React.AspNet/HttpContextLifetimeProvider.cs b/src/React.AspNet/HttpContextLifetimeProvider.cs index 2955eb385..3234cff0b 100644 --- a/src/React.AspNet/HttpContextLifetimeProvider.cs +++ b/src/React.AspNet/HttpContextLifetimeProvider.cs @@ -63,7 +63,7 @@ private PerRequestRegistrations Registrations { throw new ReactNotInitialisedException( "ReactJS.NET has not been initialised correctly. Please ensure you have " + - "called app.AddReact() and app.UseReact() in your Startup.cs file." + "called services.AddReact() and app.UseReact() in your Startup.cs file." ); } return registrations; diff --git a/src/React.AspNet/ReactBuilderExtensions.cs b/src/React.AspNet/ReactBuilderExtensions.cs index fd037d642..d89091b56 100644 --- a/src/React.AspNet/ReactBuilderExtensions.cs +++ b/src/React.AspNet/ReactBuilderExtensions.cs @@ -88,7 +88,7 @@ private static void EnsureServicesRegistered(IApplicationBuilder app) var registrations = app.ApplicationServices.GetService(); if (registrations == null) { - throw new ReactNotInitialisedException("Please call app.AddReact() before app.UseReact()."); + throw new ReactNotInitialisedException("Please call services.AddReact() before app.UseReact()."); } }