Answers for "a path base can only be configured using iapplicationbuilder.usepathbase"

C#
4

net.core "a path base can only be configured using iapplicationbuilder.usepathbase()"

// Cannot set path base via applicationUrl, must set it here using UsePathBase()

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {
            app.UsePathBase("/{my application name}");
            app.Run(context =>
            {
                return context.Response.WriteAsync("Hello World!");
            });
        }
Posted by: Guest on July-07-2020

Code answers related to "a path base can only be configured using iapplicationbuilder.usepathbase"

C# Answers by Framework

Browse Popular Code Answers by Language