Microsoft Q&A

.NET

15,276 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

15,276 questions with .NET-related tags

Sort by: Updated
0 answers

Secured controller action shows 401 error instead of redirecting to login page in .NET 7

I am developing a .NET 7 Web application that has secured areas. This is a monolith application, so that it is separated in different assemblies. I have one host assembly (the entry assembly), called EntryPortal.Core. On the other hand, I have other…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,150 questions
asked 2023-06-02T23:25:25.28+00:00
Jaime Stuardo 66 Reputation points
edited the question 2023-06-03T15:21:17.55+00:00
Jaime Stuardo 66 Reputation points
1 answer One of the answers was accepted by the question author.

What is the meaning of this part of code

Hello, Can you please tell me what is the meaning of this code: return responseString!.choices[0].text;

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
583 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,150 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.
8,193 questions
asked 2023-06-03T12:36:26.7+00:00
Saeed Pooladzadeh 141 Reputation points
accepted 2023-06-03T15:20:26.5166667+00:00
Saeed Pooladzadeh 141 Reputation points
1 answer

Conditional Format expiration dates

Hello, I am trying to conditional format my excel worksheet to highlight a colour when the certification is expired. The expiry dates in this case would be 3 years or 1095 days from date of certification. For example if I received a certification on…

F#
F#
A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
15 questions
.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
47 questions
asked 2023-06-02T15:11:04.9766667+00:00
Vanessa Marrone 0 Reputation points
answered 2023-06-03T12:26:34.63+00:00
Nobuko IT 236 Reputation points
0 answers

How to make login details after login success with form below

I work on razor page on asp.net core 7 I need to make form or box with details of users success as below but I don't know what is name of box have user details I pass data after login success by following…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
852 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,150 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.
978 questions
asked 2023-06-03T10:00:50.41+00:00
Ahmed Salah Abed Elaziz 210 Reputation points
commented 2023-06-03T11:48:42.36+00:00
Ahmed Salah Abed Elaziz 210 Reputation points
0 answers

How to check the record exist with same value in all the column before insert

Hi, I am inserting data into a database as follows; public async Task AddStockAsync(List<GameBank> gameBank) { await _oyunPalasContext.GameBanks.AddRangeAsync(gameBank); await _oyunPalasContext.SaveChangesAsync(); } I wonder if I can check…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,150 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.
978 questions
asked 2023-06-03T11:32:44.3633333+00:00
Cenk 866 Reputation points
1 answer

Xamarin.UITest Cross Platform test project template is missing in VS 2019 16.9.2 Community edition

There is no "Xamarin.UITest Cross Platform test project" template on the "Add new project" window albeit all Xamarin components are installed. Any advice on what might be missing?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,003 questions
asked 2021-03-21T11:29:10.167+00:00
JonGrey 6 Reputation points
commented 2023-06-03T09:41:40.12+00:00
Martin Meuwese 0 Reputation points
0 answers

Quartz -Scheduler - how I edit configuration in MAUI while scheduler is running?

Hi, I have GUI client app in maui that insert configuration as seen in screencast in my DB. The service (worker service) read this configuration from DB and run the jobs using scheduler. Here part of screens in client: I want to add/edit/remove…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,420 questions
asked 2023-06-03T08:38:18.0466667+00:00
דני שטרית 821 Reputation points
1 answer One of the answers was accepted by the question author.

Button selection like in menu

Hi, Please see https://app.screencast.com/Lgk50on26Xky6 When I select on my left menu side that consist of buttons i want that the buttons will be selected like in web screencast. All others buttons in app not influence from the selection in the my…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,420 questions
asked 2023-05-29T09:10:55.9766667+00:00
דני שטרית 821 Reputation points
commented 2023-06-03T08:31:22.0266667+00:00
דני שטרית 821 Reputation points
0 answers

How to fix this error "warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect."

Good evening , I am trying to build a simple web api using ASP.Net . The app has been showing the error like this after building it - warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,150 questions
asked 2023-06-03T08:29:57.58+00:00
Vaishnavi P 0 Reputation points
0 answers

Is there Visual Studio project PropertyGroup condition that can be applied to only Emulators (or Devices)?

I like the Fast Deployment feature for debugging Visual Studio projects but I cams across an Android Emulator that doesn't as yet support Fast Deployment. I was wondering if there is a PropertyGroup condition that can be applied only to Emulators as…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,420 questions
asked 2023-06-01T08:33:15.12+00:00
dg2k 1,161 Reputation points
commented 2023-06-03T07:32:58.5433333+00:00
dg2k 1,161 Reputation points
0 answers

Net maui carouselview current item s index show problem ?

I have carouselview and you add timer (autoplay) that is working... I added totalCounter is total amount of images which is showing fine currentCounter is current index of images which starts fine (shown 1) but and of images loop=true it…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,420 questions
asked 2023-06-03T05:26:06.6433333+00:00
Sami 281 Reputation points
edited the question 2023-06-03T07:00:54.17+00:00
Sami 281 Reputation points
1 answer

What is causing long running HTTPS requests to be executed twice in ASP .NET Core application on IIS 8.5

Hello, We are hosting an ASP .NET Core 6 application on IIS 8.5 Windows Server 2012 R2. This application provides Microsoft.AspNetCore.Mvc.Controllers to an Angular application. One of the supported calls can take quite a long time (10-15 minutes). Now…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,150 questions
Internet Information Services
asked 2023-05-24T06:25:00.9533333+00:00
SAB 0 Reputation points
commented 2023-06-03T06:13:22.2233333+00:00
Lex Li (Microsoft) 3,481 Reputation points
2 answers

Understanding the right DateTime Parameter to use when inserting Data into LIVE database

I have two issues that have been giving me headache in solving. The first is: Upon successful login by a user, an update is done in the Logindate column of the database table. But before the update is done, the value of the Logindate column is fetched…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,158 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,481 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
550 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.
8,193 questions
asked 2023-05-04T10:39:27.4366667+00:00
Donald Symmons 1,946 Reputation points
commented 2023-06-03T06:03:11.04+00:00
Donald Symmons 1,946 Reputation points
2 answers

Local IIS without local admin privileges

Is it possible to run local IIS (on the developer's machine) without being a local admin? when the latest security measures were applied we all lost local admin privileges.

Internet Information Services
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
550 questions
asked 2023-05-24T13:16:36.4666667+00:00
Lukic, Dejan 0 Reputation points
edited an answer 2023-06-03T05:59:05.5433333+00:00
Lex Li (Microsoft) 3,481 Reputation points
0 answers

Serilog - email sink multiple recipients?

Hi guys, I am trying to send emails to multiple recipients with Serilog but couldn't figure it out. Any help, please? { "Name": "CustomEmail", "Args": { "ConnectionInfo": { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,150 questions
asked 2023-06-03T04:14:36.3833333+00:00
Cenk 866 Reputation points
4 answers

Can I do a swap on a Blazor Server App service without disconnecting users?

I run an App Service hosting a Blazor Server Application. The App service has a staging and production slot. When I do a swap from staging to production I would like users to remain connected and have 0 downtime. Is this possible? The application also…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
978 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
91 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
4,936 questions
asked 2023-05-21T03:57:28.9233333+00:00
Sean Wauchope 30 Reputation points
commented 2023-06-03T03:41:18.6166667+00:00
Bruce (SqlWork.com) 36,026 Reputation points
22 answers

Maui navigation and TitleView is very confusing

I am trying to customize the TitleView in a Maui app. 1st - I am trying to get the page title but this is not happening. The property CurrentPage does not seem to get updated and this means that the Title prop of the CurrentPage is not accessable. 2nd…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,420 questions
asked 2023-02-12T18:10:32.7866667+00:00
Lloyd Sheen 1,076 Reputation points
commented 2023-06-03T03:10:30.76+00:00
William Buchanan 26 Reputation points
0 answers

Net maui runtime loading problem ?

I have created languageconverter as above binding from C# listing...Firstly binding values by Text="{DynamicResource Key=welcome}" like that.. it is working as expected but when loaded page with custom collectionview is not changing language…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,420 questions
asked 2023-06-02T16:18:57.21+00:00
Sami 281 Reputation points
edited the question 2023-06-02T22:17:04.1066667+00:00
Sami 281 Reputation points
1 answer

Query on Net & ASP

Hi All i have outdated versions of .Net and ASP.Net. i have installed .dotnet core removal tool for the url https://github.com/dotnet/cli-lab/releases . What syntax should i use if i need to remove the below .Net Cre SDK 3.1.413, .NET Core Runtimes…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,158 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,481 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.
999 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,150 questions
asked 2023-06-02T18:46:07.32+00:00
Glenn Maxwell 7,481 Reputation points
answered 2023-06-02T21:52:57.29+00:00
Glenn Maxwell 7,481 Reputation points
1 answer

Calling webapi from another webapi both protected by b2c

I have 2 webapis and an angular application. All protected by azure b2c. Angular application calls a web api that then calls the other web api. What are my options for webapi webapi call. how can i access the token for scopes?

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,739 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.
8,193 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,150 questions
asked 2023-05-05T14:13:05.0166667+00:00
Praveen U (PUU) 5 Reputation points
commented 2023-06-02T21:39:03.1666667+00:00
James Hamil 14,346 Reputation points Microsoft Employee