Want to build the ChatGPT based Apps? Start here
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
prasanna p
1.8k
413
77.7k
Server.MapPath Showing error in .Netcore2.1
Apr 3 2020 6:26 AM
Hi Friends,
I am getting error server doen't exist in the current context in Server.MapPath in my .netcore Project.
I added System.Web,System.Web.Mvc,Microsoft.AspNetCore.Http are there still getting Error.
I tried with the HttpContext.Current.Server.MapPath ---In this getting error HttpContext doe's not contain definition for Current.
I tried with the HostinEnvironment.MapPath still getting error.
Please suggest me what is the exact solution to save file using Server.MapPath
Reply
Answers (
2
)
File Reading Asp.Net MVC
How to add the value from database to label in Asp.net & C#