title: asp.net core not loading static files
body: <p>I have an app .NET core 2.1 with this code:</p>
  
  <pre><code> public void Configure(IApplicationBuilder app, IHostingEnvironment env)
      {
          app.UseStaticFiles();
          app.UseStaticFiles(new StaticFileOptions
          {
              FileProvider = new PhysicalFileProvider(
          Path.Combine(Directory.GetCurrentDirectory(), "Assets")),
              RequestPath = "/Assets"
          });
          if (env.IsDevelopment())
          {
              app.UseDeveloperExceptionPage();
          }
          else
          {
              app.UseHsts();
          }
  
          app.UseHttpsRedirection();
          app.UseMvc();
      }
  </code></pre>
  
  <p>and my structure folder:</p>
  
  <p><a href="https://i.stack.imgur.com/MWa20.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MWa20.png" alt="enter image description here"></a></p>
  
  <p>but none of these urls open the image:</p>
  
  <p>"my-website.com/images/snes/alien.jpg"</p>
  
  <p>"my-website.com/wwwroot/images/snes/alien.jpg"</p>
  
  <p>"my-website.com/Assets/Snes/alien.jpg"</p>
  
  <p>anybody know what is wrong? </p>
  
  <p>Edit: Here is the folder get by CurrentDirectoy() method (apparently is correct):</p>
  
  <p><a href="https://i.stack.imgur.com/zUB46.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zUB46.png" alt="enter image description here"></a></p>
  
  <p>Edit2: With this code work on localhost but not when i publish on azure:</p>
  
  <pre><code> app.UseFileServer(
          new FileServerOptions()
          {
              FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "wwwroot"))
          });
  </code></pre>