When using Server.MapPath("~/ ...") to map a relative path to the server root directory, SonarLint raises an “S1075: Refactor your code not to use hardcoded absolute paths or URIs”.
~/ paths are not absolute by their very nature.
Running SonarLint on Visual Studio 2015 Professional, ASP.NET MVC 5