Quantcast
Channel: ASP.NET Core
Browsing all 9386 articles
Browse latest View live
↧

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 Article


Show 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 Article


Can'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 Article

Error 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 Article

i 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 Article


Problem 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 Article

Where 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 Article

Problem 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 Article


Is 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 Article


How 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 Article

Display 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 Article

JwtBearerOptions - 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 Article

Simple 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 Article


How 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 Article

Automapper 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 Article


JsonSerializer 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 Article

Problem 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 Article

Problem 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 Article

How 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
Browsing all 9386 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>