Olá,
A funcionalidade Server.MapPath não existe no .NET Core. Ela é util para se obter o caminho físico a partir de um diretório virtual.
Usando o blazor localmente eu também prefiro usar o IIS.
Ainda bem que o package seguinte existe: install-package Microsoft.Web.Administration
Em conjunto com System.Runtime.Caching, podemos usar o seguinte código:
public static string getIISContentPath() { var cache = new MemoryCache(new MemoryCacheOptions()); var strReturn = cache.GetOrCreate("getIISContentPath",entry => { ServerManager manager = new ServerManager(); var poolName = Environment.GetEnvironmentVariable("APP_POOL_ID", EnvironmentVariableTarget.Process); Site defaultSite = manager.Sites[poolName]; Application reports = defaultSite.Applications[0]; VirtualDirectory reportDir = reports.VirtualDirectories.FirstOrDefault(c => c.Path.ToLower() == "/content"); return reportDir.PhysicalPath; }); return strReturn; }