Been trying to get this to work on my MAC for a while now, but still no luck. In an ASP.NET Core app I am trying to get contents from my network share on a Windows Server. I read you can initiate Static Files through Startup.cs when you include:
app.UseFileServer(new FileServerOptions
{
FileProvider = new PhysicalFileProvider(@"\\192.168.178.101\2020$"),
RequestPath = new PathString("/2020"),
EnableDirectoryBrowsing = false
});
Please note I am running this on a MacOS laptop. I have tried SMB URL also, but no luck. I can connect with the share fine through Finder. I always get the error "The path must be absolute". The share on that server is a folder named 2020. I have tried also without $, but no luck. I also tried to put smb:// in front, but the it saw the UNC as a relative folder path.
I really hope someone can help me with this.