I want to serve the static images from a network shared path, but when I map this path middleware, it is throwing exception as this path cannot access in middleware. Please let me know how to map a static files from network shared folder with credentials. I am using following code
app.UseStaticFiles(new StaticFileOptions()
{
FileProvider = new PhysicalFileProvider(
Path.Combine("\\sharedfolder\images")
});