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

Linking Two Tables/Classes w/o EF

Hi,I'm sure this has been asked and answered before, but I can't find anything that is not using EF.Basically, I'm trying to link and display two tables.  For example:Teacher 1 ------------ Student 1...

View Article


using Microsoft.AspNetCore.Identity.EntityFrameworkCore;

I'm porting over a site from MVC 5 and In one of my classes I have this used:public classWebRoleEntity : IdentityRole<Guid,WebUserRoleEntity>, IWebRoleIdentityRole in the old site used this:using...

View Article


Visual Studio 2017 and dotnet restore

I'm building an ASP Core MVC app in VS 2017.  I have libraries organized in solution folders.  Anyway, every time I add a project library through solution explorer, I have to CD to the project...

View Article

How to set up .net core in RHEL7 offline mode

This is for a company offline RHEL7 server, no internet access.Does any one know how to set up .net core in this case?Thanks

View Article

Repository and Dependency Injection Error

Hi,I have this Repository and Dependency implementation to be injected to my controller but I'm getting this error..."Unable to resolve service for type 'WebsiteName.ApplicationContext' while...

View Article


Retrieving access token in controller

I am developing an ASP .Net Core 1.1 MVC web app which calls a web API using the "Authorization Code Grant Flow". I am using Auth0 for the authentication server.Following the Auth0 tutorials, at the...

View Article

Contoso University

Hi, with the Contoso university, how do you get the project to vreate the required tables (Identity)?It looks like all the views are there. Thanks,

View Article

How do I debug routes in .NET Core MVC

When you have a lot of routes registered, is there a way to intercept a request and see what the registered routes are which ones it matches?P.S. Not sure if this is the best forum for this question. I...

View Article


Enity Framework Core 1.1 and migration

<p>Hi fellow programmers! :)</p><p>I've just installed Microsoft Visual Studio 2017 Community and try to get heads up on the newest technology.</p><p>I'm not that familiar...

View Article


Make Date control on form change time as well as date

Hi, I have below which only allows me to change the date, not the time.<div class="col-md-10">                <input asp-for="Date" class="form-control" />                <span...

View Article

Error using Redis Cache on Azure

We have a redis cache hosted on Azure and we use the following as a service in our .net core application:services.AddSingleton<IConnectionMultiplexer>(provider =>...

View Article

How to securely store sensitive data like passwords in an ASP.NET Core...

Hi,I wonder how to properly handle passwords using ASP.NET Core MVC in production and I can't find any solution for this topic. I need to access an API and therefore have to store AD service account...

View Article

Problem send Json HttpClient

Hi thereI have a problem with send Json to API Rest.Codeusing (var client = new HttpClient()) { client.BaseAddress = new Uri("SomeURL"); client.DefaultRequestHeaders.Accept.Clear();...

View Article


.NET core application to be deployed on Linux serve

Is there a solution for that problem in .NET core application , please ?<div dir="ltr" style="font-size: 12.8px;"> <div>Kindly note that we need .NET core application to be deployed on...

View Article

Getting logged in user from web api

I have a web app front end and web api back end both written in ASP .Net Core 1.1 MVC. I am using Auth0 as the authentication server, using the "authorization code grant flow".So the user logs in -...

View Article


Migration from 4.0 to 4.6.2

We have recently migrated our existing website from 4.0  to 4.6.2, After publishing the website we can see the change is only to web.config file with the version updated as 4.6.2 Do we really need to...

View Article

Can we build desktop applications as well with asp.net core framework or only...

SirCan we build desktop applications as well with asp.net core framework or only web based applications.?Regards

View Article


Entity framework core : particular many to many relation

Hi,I have the following Model class :public class Terminal { public int id { get; set; } public string serialNumber { get; set; } public string model { get; set; } public virtual...

View Article

User.Identity.Name is null

I have a web app written in ASP .Net Core 1.1 MVC. I am using Auth0 as the authentication server. After a successful login, the Index page should show the logged in user's name, but it's not. If I look...

View Article

How to set css class to div dynamically in mvc view?

hello,I am not getting how to do this, let me explain, I have data base having column name SignalCSS having some row (css class name) like PT1, PT2 . . . , now, in my model class I have property say...

View Article
Browsing all 9386 articles
Browse latest View live


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