TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
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
Forums
Monthly Leaders
Forum guidelines
prasanna p
1.3k
470
103.3k
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#