Questions tagged [asp.net-core]
ASP.NET Core is an open-source, cross-platform framework for building web applications. Use this tag for questions about ASP.NET Core applications. Use a specific version tag when your question is specific to a particular version of ASP.NET Core.
asp.net-core
117
questions
0
votes
0
answers
17
views
ASP.NET Core MVC: How to remove automatic encoding of html tags?
The program gets text with html tags from the SQLite database, then the text is displayed to the user in the browser. The tags are supposed to be automatically converted to html, but instead the tags ...
0
votes
0
answers
10
views
Cannot add Blazor Web Assembly project to ASP.NET Core .NET 6 application
I need to add Blazor Web Assembly project to ASP.NET Core .NET 6 application.
I did as described in this article How to integrate Blazor application
Removed builder.RootComponents.Add("#app"...
0
votes
0
answers
18
views
Azure Web App failing to deploy with Windows Containers
I'm trying to deploy a windows container that holds a simple ASP.NET Core Web App to an azure web app. I've created a container registry, and pushed my docker image to it. However, every time I try to ...
0
votes
0
answers
8
views
Serilog UI Authentication error while requesting /api/logs
I'm using Serilog UI as a part of my web app to allow users to check logs.
It's a docker containerized project which works fine in development environment (outside docker and on my dev machine) but ...
0
votes
1
answer
32
views
How can I write out the contents of objects to a text file?
I am trying to write out some objects in my .net core 2.1 web app into a readable format to a file.
I have these 3 objects:
var username = saml2AuthnResponse.ClaimsIdentity.Claims.ToList();
var ...
0
votes
1
answer
14
views
How to Reference a User Entity from Another Microservice in ASP.NET Core?
In my microservices architecture using ASP.NET Core, I have two distinct microservices: Identity.API for user management and PersonalAccount.API for handling personal account-related functionalities. ...
1
vote
0
answers
15
views
Model Parameter is Null in POST Method on Azure VM but Works Locally
I have an ASP.NET Core application that works correctly on my local machine but encounters an issue when deployed to an Azure Windows VM. Specifically, the model passed as a parameter to the POST ...
1
vote
1
answer
15
views
How to read the SAML response returned by IdP
I am trying to figure out how to get an email from the saml2AuthnResponse that is returned by the IdP.
I am not sure how to access this using ITFoxTec.
Here is my AssertionConsumerService code:
[Route(...
0
votes
1
answer
26
views
dropdown MVC don't keep focus for selected option
I have asp net core mvc application. After clicking filter controller recives propper data, but drop down always shows All option:
@{
ViewData["Title"] = "Index";
IsOpenFilterState ...
0
votes
1
answer
18
views
Asp.net core razor pages BindProperty collections List not Working
My plan is that I fill a list of data in OnGet and after sending it to the html page, I checkMark some lines and Fill some input on table, and finally it is posted to the server. But in OnPost, the ...
0
votes
1
answer
38
views
In web applications how to hide the sensitive data from software developers [closed]
We are developing an ASP.NET Core application using the MVC framework and SQL Server database. The application is intended for board members, and it's crucial that sensitive data remains inaccessible ...
0
votes
0
answers
32
views
Why does a SignalR connection not exist after starting the client?
I have a couple of clients that intermittently get the following exception:
Connection 'xxx' does not exist.
System.IO.IOException: Connection 'xxx' does not exist.
at Microsoft.AspNetCore.SignalR....
2
votes
0
answers
40
views
How to perform integration test on ASP.NET Core API controller endpoint that requires authentication and validation of antiforgery tokens
Description
I have an ASP.NET Core API controller endpoint that requires:
an authenticated user, and
validation of antiforgery tokens
I want to perform an integration test on this endpoint.
Problem
...
0
votes
1
answer
19
views
How do we use a value from a strongly typed configuration options class and have other services use it - for example AllowedHosts?
I have a strongly typed POCO class that is bound to Configuration Settings being retrieved from Azure App Configuration Services.
As an example, the strongly typed class is:
public class ...
0
votes
0
answers
25
views
Handshake Failure in ASP.NET Core Web API on Ubuntu 22.04 LTS
I have an ASP.NET Core Web API that was working perfectly on my Windows machine. I needed to deploy it on an Ubuntu Linux 22.04 LTS server. I followed this guide.
The application runs and can be ...