Microsoft Q&A

ASP.NET Core

2,595 questions

A set of technologies in the .NET Framework for building web applications and XML web services.

Browse all .NET tags

2,595 questions with ASP.NET Core tags

Sort by: Updated
0 answers

How to access azure keyvault through on-premise API using service principal and secret?

I'm trying to figure out how to access secrets in azure keyvault using an on-premise .Net Core 3.1 API. The authentication method is to use service principal and the client secret to access key vault. I'm following this tutorial from…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
664 questions
asked 2023-02-06T10:41:44.27+00:00
Sabanovic, Maid 0 Reputation points
edited the question 2023-02-06T10:43:59.83+00:00
Sabanovic, Maid 0 Reputation points
1 answer

Copying code from documentation and license

When copying the code from the documentation (e.g. https://learn.microsoft.com/en-us/aspnet/core/web-api/handle-errors?view=aspnetcore-6.0) do you have to specify in your code where the given code came from and refer to the appropriate license?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
asked 2023-02-04T19:52:04.5866667+00:00
Jakub 0 Reputation points
commented 2023-02-06T10:26:00.5166667+00:00
Jakub 0 Reputation points
8 answers

How to implement custom elements in blazor 7 (Practical guide) ?

Hi everyone As you know, one of the new features of blazor 7 is custom elements. But there is not enough references & guides which demonstrate how to implement this. for example, I want to create custom element in my blazor server app, then consume…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 questions
asked 2023-02-03T16:39:26.1333333+00:00
Hamed Vaziri 56 Reputation points
answered 2023-02-06T10:20:18.1733333+00:00
Hamed Vaziri 56 Reputation points
1 answer

BackgroundService - Is it possible to set parameter value?

Hi, I have a background service. I wonder if it is possible to set a parameter to this service from the Blazor Server application or in any other way? Thank you in advance.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,010 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 questions
asked 2023-02-02T16:43:45.4+00:00
Cenk 686 Reputation points
commented 2023-02-06T10:19:31.34+00:00
Cenk 686 Reputation points
0 answers

System.IO.DirectoryNotFoundException: 'Could not find a part of the path 'C:\MyApp\API\Live\Images\Company Logo.png'

Hi All, I am developing an application in .Net Core WebAPI in C#. I need to access company logo and insert it into excel while exporting data to excel. I have added Images folder with logo images to my startup WebAPI project in solution for this purpose.…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
asked 2023-02-06T10:17:43.6433333+00:00
Pratham Jain 81 Reputation points
0 answers

add one to one and one to many relationship

Hi So a little weird but im trying to add a one to one and one to many relatioship between two entites lets say i have two entities 1 is branch 2 is AppUser now a branch can have a app user as the branch admin(done through roles not the elephant in the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,204 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
8,571 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
152 questions
asked 2023-02-06T10:14:32.9833333+00:00
Asjad Butt 61 Reputation points
0 answers

Manage multirepo projects

Hello, I have to manage a multirepo project, i have three repositories (A,B,C) of .net projects and Im using visual studio 2022 latest release, my doubts are: Have I to have only one visual studio solution file? If yes where i have to store it? (in…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,442 questions
asked 2023-02-06T09:33:21.4433333+00:00
first100 61 Reputation points
edited the question 2023-02-06T10:06:38.6+00:00
first100 61 Reputation points
1 answer

Add-Migration CreateIdentitySchema (2)

The tutorial below deals with authentication. One context is created when the project is first created at projectname.data.ApplicationDbContext; a second context is created later in the tutorial when scaffolding identity at…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
616 questions
asked 2023-02-03T12:35:37.3533333+00:00
Dean Everhart 441 Reputation points
answered 2023-02-06T09:56:11.02+00:00
Ruikai Feng - MSFT 246 Reputation points Microsoft Employee
2 answers

LINQ OrderByDescdending for date field is not working razor pages

Hi, i want to display records based on booked dates. For that i used OrderByDescending in LINQ query, but it is not sorting based on date field. ManageBooking = await _context.ManageBooking.Where(e => (e.BookingDate >= DateTime.Today &&…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
asked 2023-02-03T06:59:51.21+00:00
Blooming Developer 196 Reputation points
commented 2023-02-06T09:41:14.22+00:00
Blooming Developer 196 Reputation points
0 answers

BackgroundService Serilog how to email?

Hi, In my background service, I would like to send error logs. Although there is an error, the email sink does not work. The error is being written to the file and mssqlserver successfully. Can you please share your experiences? Here is the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,010 questions
asked 2023-01-31T14:40:53.22+00:00
Cenk 686 Reputation points
commented 2023-02-06T09:01:15.9433333+00:00
Ruikai Feng - MSFT 246 Reputation points Microsoft Employee
0 answers

Unable to bind the selected image file in Blazor file upload

"This question is updated with minimal sample as my old question doesnt give more info" I am learning blazor and c# fundas with a simple app.This app will allow you tobrowse all kind of files including images.As all kind files we can browse, i…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,010 questions
asked 2023-02-04T02:38:07.29+00:00
RAMAN RAGAVAN 46 Reputation points
commented 2023-02-06T08:57:18.38+00:00
RAMAN RAGAVAN 46 Reputation points
1 answer

Define 2 roles for our ASP.NET Core MVC 6.0 (Admin & Users). if we do not have registration and we are authenticating users using MS Identity Manager

I created a new ASP.NET Core MVC 6.0 web application >> and i define it to use Microsoft Identity Platform for authentication, as follow:- so we do not manage or register users inside back-end. now we need to define all users to have…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
349 questions
asked 2023-02-04T16:07:03.08+00:00
john john 681 Reputation points
commented 2023-02-06T07:57:17.78+00:00
Farid Uddin Kiron MSFT 81 Reputation points Microsoft Employee
0 answers

System.InvalidOperationException: 'Invalid operation. The connection is closed.'

hello All, I am getting this error when calling a small function. I am calling this function twice. Below is my code: public async Task<EmployeeInfo?> GetEmployeeByEmployeeNumber(string employeeId) { List<int> emplyoeeInfoId =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
616 questions
asked 2023-02-06T03:09:17.0033333+00:00
Anjali Agarwal 121 Reputation points
edited a comment 2023-02-06T07:57:07.26+00:00
Rena Ni - MSFT 1,601 Reputation points Microsoft Employee
1 answer

IEnum object True for All

Hi friends, I wonder if there is a way to use TrueForAll for IEnumerable<OrderDetail>? I am trying to check if all of the status = 1 or not. How can I check if all statuses in details are 1 or not? Thank you. var details =…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,010 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
asked 2023-02-03T04:39:43.0233333+00:00
Cenk 686 Reputation points
commented 2023-02-06T07:45:59.6966667+00:00
Farid Uddin Kiron MSFT 81 Reputation points Microsoft Employee
3 answers

Getting lots of Task Canceled Exception while calling .net API from .net 6 WebApp

System.Threading.Tasks.TaskCanceledException: at System.Net.Http.HttpClient.HandleFailure (System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) at…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
152 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
636 questions
asked 2023-02-03T07:29:13.5766667+00:00
Faijal Vahora 0 Reputation points
commented 2023-02-06T07:07:38.7466667+00:00
JasonPan - MSFT 1,146 Reputation points Microsoft Employee
0 answers

Unable to add Token Providers when using multiple Identity Types

My application has two separate identity types. I created two types, as opposed to simply using roles, because the information I have to save about the types are pretty drastically different, and they use two separate applications that act on the same…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,820 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,010 questions
Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
349 questions
asked 2023-02-03T22:53:31.64+00:00
T-Rev 0 Reputation points
commented 2023-02-06T06:30:02.43+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,746 Reputation points Microsoft Employee
1 answer

How to add activity source to tracer provider dynamically for a single service?

In the blog here, https://learn.microsoft.com/en-us/dotnet/core/diagnostics/distributed-tracing-instrumentation-walkthroughs , Its mentioned in the best practices for ActivitySource to consider creating a new one for each library rather than using a…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
636 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,204 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
957 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
484 questions
asked 2023-02-03T11:25:14.44+00:00
Ravi Patel 0 Reputation points
answered 2023-02-06T06:07:09.6966667+00:00
Rena Ni - MSFT 1,601 Reputation points Microsoft Employee
0 answers

how to indoor asset position show on building map? and how to track them? in asp.net core

how to indoor asset position show on building map? and how to track them? in asp.net core

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 questions
asked 2023-02-03T09:29:30.3833333+00:00
Mohit S 1 Reputation point
commented 2023-02-06T05:22:25.3033333+00:00
Mohit S 1 Reputation point
0 answers

cookie can not read after downgrade from 7.0 to 6.0?

I am using .net 7.0 and after I downgrade to .net 6.0 I can not use HttpContext.User it is not authenticated. in F12 Cookie I can see the Cookie I have set but I can not read it why?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
616 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,204 questions
asked 2023-02-06T00:49:27.5+00:00
打玻璃 1,546 Reputation points
commented 2023-02-06T03:22:37.13+00:00
打玻璃 1,546 Reputation points
2 answers

running application from linux arm using httpclient I have exception calling an api http with self signed certificate

Using dotnet 7 my application calls a https api service in my local network with self signed certificate. I run it from a Windows client and I have no problems. I run it from a linux arm raspberry device and I have the following exception: "One or…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,595 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,010 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
152 questions
asked 2023-02-04T15:55:17.5+00:00
Renzo 0 Reputation points
edited the question 2023-02-06T01:35:48.3333333+00:00
XuDong Peng-MSFT 4,576 Reputation points Microsoft Employee