15,790,052 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Python questions
View PHP questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ElenaRez (Top 15 by date)
ElenaRez
18-May-20 14:39pm
View
Thank you for your help. But then How can I get the ChartListObjects value? I wrote something like below but there is an error for DimensionOne and Quantity part like the following: 'List<chartmodel>' does not contain a definition for 'Quantity' and no accessible extension method 'Quantity' accepting a first argument of type 'List<chartmodel>' could be found (are you missing a using directive or an assembly reference?'
var XLabels = Newtonsoft.Json.JsonConvert.SerializeObject(Model.GrantedApiToApplicantAvg.DimensionOne).ToList();
var YValues = Newtonsoft.Json.JsonConvert.SerializeObject(Model.GrantedApiToApplicantAvg.Quantity).ToList();
ElenaRez
18-May-20 10:22am
View
Thanks. If you assume that grantedAccessPercent and Avg are two queries and I add their data into lstModel1 and lstModel respectively that are all kinds of ChartModel. How can I integrate them into an object and pass them from index method of Controller into view?
ElenaRez
18-May-20 9:14am
View
Thank you for your help. I want in the razor view to have list of ChartModels but I don't know how to fix this. Maybe even the class ChartListObjects is useless. Or maybe I need to know how to get those chartModels in View
ElenaRez
8-May-20 23:30pm
View
Thank you for your reply. I pasted what you suggested and after running the project, there was shown "Redirection to /" to me in debug console. How can I fix this? Even I modified my signin method like the following, but there wasn't any change for Redirection result in debug console:
public async Task<iactionresult> Signin(SigninViewModel model, string returnUrl = null)
ElenaRez
2-May-20 10:13am
View
Thank you for your reply. Could you please explain how can I use UNC paths?
ElenaRez
1-May-20 23:36pm
View
I pasted what you said in my code and now the user could login to my website. In my website, I have 4 controllers and on top of each, I added [Authorize] as you suggested in order to let all the user to work with them. But now the problem is, when the user click the related menu icon, all those pages shows white pages. I appreciate if you guide me about the problem
ElenaRez
1-May-20 10:57am
View
Deleted
I pasted what you said in my code and now the user could login to my website. In my website, I have 4 controllers and on top of each, I added [Authorize] as you suggested in order to let all the user to work with them. But now the problem is, when the user click the related menu icon, all those pages shows error 404. I appreciate if you guide me about the problem.
ElenaRez
1-May-20 6:27am
View
Thank you very much. Your first solution worked for me.
ElenaRez
1-May-20 3:36am
View
Deleted
Hi. I pasted what you suggest me in my code. There was an error "The name session does not exist in the current context" for the first line of Invoke method in CustomAuthenticationMiddleware class. So I changed it to 'context.Session.GetAuthenticatedUser();' which fixed the error. Now after running my project, it shows me an error for the CreateHostBuilder(args).Build().Run(); in Program.cs which is System.InvalidOperationException: 'Unable to resolve service for type 'Microsoft.AspNetCore.Session.ISessionStore' while attempting to activate 'Microsoft.AspNetCore.Session.SessionMiddleware'.'
ElenaRez
30-Apr-20 14:58pm
View
Deleted
Hi. Thank you again for your help. I'm implementing asp.net core 3.1. And in appsettings file there is no app.UseEndpoints so I pasted what you mentioned after UseRouting. Also now there is an error: Can not implicitly convet type System.Security.Principal.IPrincipal to System.Security.Claims.ClaimsPrincipal for the line if (user != null) context.User = user; which I couldn't fix it yet.
ElenaRez
30-Apr-20 2:57am
View
Thank you very much for your helpful reply. I'm implementing asp.net cor 3.1 and I don't have Global.asax.cs file. Instead I have appsettings.jason and startup.cs. How can I use your Global.asax file in my own project?
ElenaRez
28-Apr-20 3:36am
View
still the error exists like the following:
.Max(x => x.LastReqStatusNavigation.Name)' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to either AsEnumerable(), AsAsyncEnumerable(), ToList(), or ToListAsync(). See https://go.microsoft.com/fwlink/?linkid=2101038 for more information.
ElenaRez
28-Apr-20 3:35am
View
Thanks for your suggestion, Still the error exists like the following:
.AsEnumerable()' could not be translated. Either rewrite the query in a form that can be translated
ElenaRez
16-Feb-20 0:22am
View
Thank you for the reply. Is it possible that the problem is due to not using async and await for the method
APIApplicantHistoryLog
?
ElenaRez
25-Sep-19 14:07pm
View
Thank you very much for the solution. As you mentioned I had specified in the above code, in .group class which is a parent div I chose the the height to be 33px. After all, with your suggestion, I changed the value of height in inputdiv class which is such a sub container of the input to 33px. But still the the problem exists and the height of input is smaller than its container div "inputdiv" and thus its parent div "group". You know in my code "group class" is a very large container div and inside it there are 2 divs called "inputdiv" that each contains input.
Show More