Questions tagged asp.net

Explore the latest questions and answers asked by our top developers.

CKEditor data fail

I am using CKEditor. I save the articles I write in CKEditor to the database. Then there is a button for me to edit that data again. I press this button and open CKEditor again. I pull the data I wrote before from the database here, edit it and save it with the save button. […]

By Kaan Bolat
Published
Categorized as angular, asp.net, ckeditor4.x Tagged , ,

ASP.NET Core with Angular Template RC2 and Individual Accounts Authentication Type – Controller-based SignIn Problem

I created an ASP.NET Core with Angular Template RC2 and Individual Accounts Authentication Type project for trying controller-based sign in. I added Scaffolded Register and Login pages to the project and I copied the required login process codes to my LoginController class. I want to do sign in as the user after the post request. […]

By Huseyin
Published
Categorized as angular, asp.net, authentication, core Tagged , , ,

Logged user is lost between angular and c#

I am making for the first time app with authorization and I have a bit of a problem here. I am using angular + asp.net default auth, my context inheritance looks like this: public class CoffeeContext : IdentityDbContext<User, UserRole, int> UserRole is an empty class that inheritance from IdentityRole < int >. User is also […]

By Taxyy
Published
Categorized as angular, asp.net, c# Tagged , ,

Angular 12 with .NET and Windows Domain Authentication

So I’ve trying to setup Angular login with Windows Domain Authentication and the backend is hosted with .NET. Every resource about that on the internet suggest adding interceptor on Angular side: intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { req = req.clone({ withCredentials: true }); return next.handle(req); } and registering it in app.module providers: [ { provide: […]

AngularJS and ASP.NET Core SignalR

I am developing a chat on an old project that has a front end using AngularJS, a mobile app using Android (Java 1.7) and a back end using ASP.NET. I researched and decided to use SignalR because of it being free and adequate to the requirements that were given. Unfortunately, I came across the following […]

ASP.NET WebAPI2 and AngularJS

I’m using firefox to perform a connection between an AngularJS/HTML client page and a controller on the ASP.NET WebAPI. The issue is that I keep getting the "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://localhost:44377/project/all. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing)." unless I enable the CORS firefox extension. Even with […]

Display enum value in Angular

What would be the best way to display enum value in the frontend instead of it "id" number? This is my coffee class: public class Coffee { public int Id { get; set; } public string Name { get; set; } public Manufacturer Manufacturer { get; set; } public int ManufacturerId { get; set; } […]

By Rahaal
Published
Categorized as .net, angular, asp.net, c# Tagged , , ,

How to log all errors in angular application into database using web API

I want to handle all errors in my angular application and log each errors into database. Can anyone explain how to log errors by calling web API with an example. Note that I am using Angular 10 Source: Angular Questions

By Neenu John
Published
Categorized as angular, api, asp.net, core Tagged , , ,

IdentityServer4 Authenticates but doesn’t Authorize because context.User = null, ASP.NET + Angular 8

Using: template Angular + ASP.NET Core application from VS Studio 2019 Angular 8.2.12 .NET 5 MySQL backend Problem: Project implements IdentityServer4 for Authentication/Authorization but when adding a certificate to the IDS4 instance Authorization fails as context.User returns null. Startup.cs: call the certificate from certificate store: X509Certificate2 cert = null; using (var certStore = new X509Store(StoreName.My, […]

By mtholen
Published
Categorized as .net-5, angular, asp.net, identityserver4 Tagged , , ,

IIS couldn’t find a valid certificate with subject

I deploy the ASP.NET Angular SPA template RC2 app with the Identity Server option on my local IIS server. I get below exception. IIS can’t access my local certification info. Application: w3wp.exe CoreCLR Version: 6.0.21.52210 .NET Version: 6.0.0 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidOperationException: Couldn’t find a valid […]

By Huseyin
Published
Categorized as angular, asp.net, duende-identity-server, iis Tagged , , ,
1 36

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq