ASP.NET Core 3.0 does not load static content and all images

hi guys

I just deployed a new asp.net core 3.0 project, but it seems most of the files are not loading, e.g. the boostrap, css files and lots of images. (AS the website is all over the place)
my statup.cs file

  app.UseStaticFiles(new StaticFileOptions
            {
                FileProvider = new PhysicalFileProvider(
                   Path.Combine(Directory.GetCurrentDirectory(), @"wwwroot"))
                   ,
                RequestPath = new PathString("/wwwroot")
            });

            app.UseHttpsRedirection();
            app.UseStaticFiles();

I looked through the project (root solution) and included them in my project. (Deleted the entire solution online and re-published it again and again ) even restarted VS.

But it did not change the problem

Here is a browser tools. Any advise ?

Please tell us how you created the project. Did you create an empty site or API or Web Application or something else?

Also, if you can create a simple sample application for which you can provide the specific procedure for creating it that recreates the problem then that will really help us help you. It is the type of thing I have done when I needed help.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.