server static files net framework web api code example
Example: I cannot use static files in asp.net
To use Static File you should have nuget package Microsoft.AspNetCore.StaticFiles
To use Static File you should have nuget package Microsoft.AspNetCore.StaticFiles