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
Guest User
Tech Writer
98
42.4k
HttpContext is null
Mar 3 2020 10:19 PM
I have the code below to set the HttpContext.Current. It works on Windows but in Mac I encounter the following errors:
'HttpContext' is a type, which is not valid in the given context
And a message when pointing the cursor to HttpContext
Inconsistent body style: use expression body
public
BrandModel Brand
{
get
{
return
(Get<BrandModel>(
"Brand"
));
}
set
{
HttpContext.Current.Session[
"Brand"
] = value;
}
}
What should I do?
Reply
Answers (
3
)
JQUERY AJAX NOT WORKING IN ASP.NET CORE MVC
Barcode print on iis server on button click