Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Replace Alternative method HttpContext.Current.Server in Asp.netCore

$
0
0

using different type alternative for

but not working...

HttpContext.Current.Server.MapPath();

Alternative--

1) string filePath = HostingEnvironment.MapPath("~/email/teste.html");
2) string filePath = Path.Combine(HttpRuntime.AppDomainAppPath, "email/teste.html");

3) Path.Combine(HttpRuntime.AppDomainAppPath, "~\\Temp\\")


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>