access_time 5 years ago languageEnglish
more_horiz

Server.MapPath Equivalent in ASP.NET Core 2

visibility 20,198 comment 2
In traditional asp.net applications, Server.MapPath is commonly used to generate absolute path in the web server. However, this has been removed from ASP.NET Core. So what is the equivalent way of doing it?
info Last modified by Raymond 3 years ago
thumb_up 1

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts

comment Comments
4 years ago link more_horiz
Raymond Raymond
web_assetArticles 586
imageDiagrams 41
forumThreads 9
commentComments 220
loyaltyKontext Points 6330
account_circleProfile
#180 Re: Server.MapPath Equivalent in ASP.NET Core 2

I'm glad it helped. :) It took me a while when I migrated my website to .NET Core a few years ago.

format_quote

person TaterHead access_time 4 years ago
Re: Server.MapPath Equivalent in ASP.NET Core 2

Thanks... perfect!  New to Core (2.2) ... I was wondering where Server.MapPath() went!

4 years ago link more_horiz
account_circle TaterHead
#99 Re: Server.MapPath Equivalent in ASP.NET Core 2

Thanks... perfect!  New to Core (2.2) ... I was wondering where Server.MapPath() went!

timeline Stats
Page index 11.75