Hi Folks,
I have hosted an ASP.NET Core application in IIS by following this article and I face some challenges while browsing the application after hosting.
Static assets (Styles , Java script files) are not loading properly and this occurs inconsistently and also occurs while making browser refresh.
Below is my request pipeline configuration looks like.
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { app.UseStaticFiles(); loggerFactory.AddConsole(Configuration.GetSection("Logging")); loggerFactory.AddDebug(); app.UseDeveloperExceptionPage(); app.UseSession(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); }
Any inputs would be appreciated.
Thanks !
Mydeen