title: Published Blazor Wasm - DLL on subpath gives 404 NotFound
body: <p>I have a blazor wasm application running on a subpath <strong>Apps/Genesis/</strong>
  The problem is some DLL's are not being found:</p>
  <p>The request is:</p>
  <p>https://localhost:5001/Apps/Genesis/Apps/Genesis/_framework/Blazored.LocalStorage.dll</p>
  <p>The request should be:</p>
  <p>https://localhost:5001/Apps/Genesis/_framework/Blazored.LocalStorage.dll</p>
  <pre><code>app.MapWhen(
      context =&gt;
      {
          return context.Request.Path.StartsWithSegments(&quot;/Apps/Genesis&quot;);
      },
      genesis =&gt;
      {
          // Define blazor files
          genesis.UseBlazorFrameworkFiles(&quot;/Apps/Genesis&quot;);
  
          // Access static files (Ex.: images, dll's) - Used twice because it's on the microsoft docs example
          genesis.UseStaticFiles();
          genesis.UseStaticFiles(&quot;/Apps/Genesis&quot;);
  
          // Apply routing for UseEndpoints
          genesis.UseRouting();
  
          // Especify Routes
          genesis.UseEndpoints(
              endpoints =&gt;
              {
                  endpoints.MapControllers();
                  endpoints.MapFallbackToFile(&quot;Apps/Genesis/{{*path:nonfile}}&quot;, &quot;Apps/Genesis/index.html&quot;);
              });
      });
  </code></pre>