Dear Experts,
please help me to resolve this
In my MVC Appication i'm unable to get DirectoryName
string GetPath = Path.GetDirectoryName(replacefilename);
When I debug at GetPath It shows Empty


Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Amit GuptaRank #190 · 12.8K reputationPosted May 15, 2019, 9:35 PM EDT
yesubabu kRank #2,091 · 687 reputationPosted May 15, 2019, 9:44 PM EDT
Manoj BhoirRank #599 · 4K reputationPosted May 15, 2019, 10:17 PM EDT
Mageshwaran RRank #411 · 6.1K reputationPosted Nov 24, 2019, 2:17 AM EST