Migration of asp.net web application 4.5 framework project to .net core 3.1
Hi Team,I am migrating asp.net web application 4.5 framework project to .net core 3.1 so what would be architecture do i need to follow please find my observation below1> Do i need to register all...
View ArticleShow User Logged to All Users in Asp.net core
Hi, when user login to site (for example test-user) its save session for all user means when other user open site they cant see the test-user information and go to his profile. i have this problem with...
View ArticleCan't Run my app has IIS Express
Ok so I did some settings when trying to deploy asp.net core web app locally sometimes ago. Suddenly i just noticed that on vs when I try to run my app.I can not run app with the IIS Express option. I...
View ArticleError In Packages
hi, in my project i have these layers - Api (my apis that use in app) - Data (my data layer) - Domain Classes (my models)  - Xamarin_App- Xamarin_App.Android my api layer is .net core 3.0 but i want...
View Articlei want to understand oauth2 and open id connect a little more
can i just confirm there is no docs on the oauth site and i should just look through these:https://openid.net/specs/openid-connect-core-1_0.html
View ArticleProblem to change active state of ul elements via jquery.
HiIn my layout view, i have ul element with some li as follow :<ul id="lstItems" class="list-unstyled components"><li class="active"><a href="~/Home/Index"><i class="fa...
View ArticleWhere to modify form request on generated code
Here is some generated code, not modified:using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using...
View ArticleProblem with init dbContext : No database provider has been configured for...
HiIn my project, i've setup my db context, now when i want to work with database, i've got this error :System.InvalidOperationException: 'No database provider has been configured for this DbContext. A...
View ArticleIs generated code sanitized
Untouched generated code here:@page @model pcore31.AddpetModel @{ Layout = null; } <!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"...
View ArticleHow can I return a 404 status code by app.UseStatusCodePages?
These days I am handling 404 Not Found by Asp.Net Core .As we know, there are several ways to achieve this:...
View ArticleDisplay certain records in MVC CRUD application.
Hi All,I am in the process of creating an Employee Training Records database using SQL and Visual Studio 2019.So far so good, however at the moment I have one question which I hope you can me out...
View ArticleJwtBearerOptions - token validation offline or online?
Hi all,I'm working on ASP.Net Core 3.1 for API development, and I was adding logic to validate Bearer tokens, I'm quite new on this and found out logic like this:public static void...
View ArticleSimple Register page unable to post
Hi Guys,I have simple register page and unable to save to db using ASP.NET core MVC, below is my code [HttpPost] public IActionResult Index(Registration registration) { if(ModelState.IsValid) {...
View ArticleHow to expose/Invoke c++ COM object/Methods in to .Net core Application?
In Dot net frame work I am able to use the same COM Dll By adding the DLL reference and by creating the object instance i am able to invoke COM Method.BUT In Dot net core the Same COM Dll not Working....
View ArticleAutomapper Doesnt map a navigation property
Hello guys,I have a problem with Automapper in particolar with .projectTo that doesnt map the navigation property of attachments, following the code:var messagesList = dataContext.EmailMessages...
View ArticleJsonSerializer dont deserialize last deep of a class
Hi there I have following problem with JsonSerializer.Deserialize:here the json string:{"successful": true,"error": null,"content": {"pageIndex": 1,"totalPages": 32,"items": [ {"toAddresses": [ {"id":...
View ArticleProblem for using Asp.net c# and html mixing code
I tried to use below code in asp.net but there is error in html tags like and and say it could not find begin tag. but begin tag is in first if. the errors are in between line 44 to 52.@{string n...
View Article.net Core upload File by WebClient FTP
Hi all,So, I'm trying to upload a file from my client pc to my webserver using a .net core web API. This works fine when I run the web service locally (meaning that the source file and the service are...
View ArticleProblem with Session when getting string data to the action of controller
Hi guys,As some of you knows, I'm developing a quiz application. I have timer in question view and this time I need to get the time between opening the question view and submitting the answer. Then I...
View ArticleHow to set variable scope to the browser in asp.net core web api?
HiI want to create variable and make its scope to the browser so every user enter my asp.net core web api through his own browser sets the variable as he needs. i tried to use the static variable but...
View Article