You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi
i'm using your angular package on my project.
my backend project is a web api core on .net core 2.2.
when i debug the project localy everything work fine, but when i deploy to iis(8.5,10) i get this error :
Do you have the following line: services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
in the ConfigureServices(IServiceCollection services) function of your app's Startup.cs file?
Do you have the following line: services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
in the ConfigureServices(IServiceCollection services) function of your app's Startup.cs file?
thank you for your help
i checked that page again....and i have done all that is said exactly as it is said.
i do have that line of code in my ConfigureServices method.
the only difference is that ConfigureServices is defined before Configure method not after it like your example.
any other suggestion?
i have this line of code right after the code that is in my first post : app.UseMvcWithDefaultRoute();
does this have anything to do with my problem?
hi
i'm using your angular package on my project.
my backend project is a web api core on .net core 2.2.
when i debug the project localy everything work fine, but when i deploy to iis(8.5,10) i get this error :
here is my api configuration in startup.cs :
app.MapWhen(context => { Console.WriteLine(context.Request.Path); return context.Request.Path.ToString().EndsWith(".ashx"); }, appBuilder => { appBuilder.UseSimpleCaptcha(Configuration.GetSection("BotDetect")); } );
i went over your documentation a few times but found nothing related to this problem in .net core.
The text was updated successfully, but these errors were encountered: