23,883 questions with .NET-related tags

Sort by: Updated
1 answer

OpenIdConnectOptions Validate Method Throwing Exception in ASP.NET 6.0

I have a new ASP.NET Core 6.0 web app, and I am trying to configure OpenID Connect (OIDC) in the Program.cs file. I am using "Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.0" in my .csproj file. This is the code so…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,164 questions
asked 2022-04-01T19:34:36.267+00:00
Anonymous
commented 2022-04-06T08:05:08.11+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

get no of quantity from sql table

Hello This is my sql resultset data I want like this out put how to do so Thank You

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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.
12,713 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,552 questions
asked 2022-04-05T07:55:51.433+00:00
RAVI 896 Reputation points
accepted 2022-04-06T06:04:34.063+00:00
RAVI 896 Reputation points
1 answer

Add audio controls to the lock screen and notification panel (Android and iOS).

I'm using AVAudioplayer for iOS and Media Player for android, for playing audio. How can I add audio controls to the lock screen and notification panel in the device?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
asked 2022-03-28T07:31:41.063+00:00
Elizabeth James 1 Reputation point
commented 2022-04-06T05:12:24.293+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,471 Reputation points Microsoft Vendor
0 answers

mvcChecklist list Add one row upon one checkbox selction instead of AddRange

I have a checkbox populated based on the List “DayList”, in Timesheet.cshtml @if (Model.TimeSheet.DayList != null) { for (var i = 0; i < Model.TimeSheet.DayList.Count(); i++) { @azzedinehtmlsql .HiddenFor(x =>…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,164 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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.
10,245 questions
asked 2022-04-05T22:41:05.417+00:00
Shri-6058 326 Reputation points
commented 2022-04-06T03:42:32.837+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Unable to seed aspNetUsers table in pgAdmin4 through MVC app

I am building a MVC app in visual studio and want to seed users into the system who will occupy particular roles. I don't know what is wrong with the code or pgAdmin because the aspNetUsers table in the database does not seed (there are no entries). The…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
Azure Database for PostgreSQL
asked 2022-04-04T09:43:18.91+00:00
lm1212 141 Reputation points
commented 2022-04-06T02:52:55.293+00:00
lm1212 141 Reputation points
0 answers

WPF StoryBoard Last Complete

a project that slides images. I got help by referring to various references. There is one problem. If you keydown The page slides. At this time, the X value is adjusted using animation. but if you hold down the key A problem…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,671 questions
asked 2022-04-01T08:00:03.177+00:00
HoneyBee 186 Reputation points
commented 2022-04-06T00:56:49.533+00:00
HoneyBee 186 Reputation points
3 answers One of the answers was accepted by the question author.

C# VS2022 Blazor webassembly razor components library project does not even compile

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,164 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.
1,389 questions
asked 2022-04-02T23:31:38.24+00:00
Socrates Anibal Rivera Rivera 46 Reputation points
commented 2022-04-05T23:23:43.09+00:00
Lohith GN 511 Reputation points
4 answers

creating modal popup to using validate process on server to update message to user

Hello, I've been tasked with adding a validation process to check what users enter on our site. The current site that this will be a part of has master pages and web content pages. On a web content page, I wanted to create a modal popup that will…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
asked 2022-03-29T19:26:28.987+00:00
JERRY Warra 96 Reputation points
answered 2022-04-05T22:07:06.773+00:00
JERRY Warra 96 Reputation points
1 answer

icorprofilercallback get parent thread id of the a thread

I'm using icorprofilercallback2 to track the performance of all http requests in my application. I do keep track of methods using the thread ids. The http request is making webservice call to other server. It seems this webservice call gets executed…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,164 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 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.
10,245 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,119 questions
asked 2022-04-05T19:29:05.217+00:00
Tom Mac 1 Reputation point
answered 2022-04-05T19:47:08.747+00:00
Bruce (SqlWork.com) 56,021 Reputation points
2 answers One of the answers was accepted by the question author.

Which changes are necessary for upgrading to React 18 and not using typescript eslint ?

Hi, I have created a project using Asp.Net MVC Core 6 using react template. Now I upgraded the ClientApp from react 17.0.2 to react 18. This is my package.json file after performing upgrade. { "name": "test web",…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,164 questions
asked 2022-04-04T11:08:24.633+00:00
mehmood tekfirst 766 Reputation points
answered 2022-04-05T16:50:54.433+00:00
Bruce (SqlWork.com) 56,021 Reputation points
1 answer One of the answers was accepted by the question author.

Using Third-Party .NET 4.6.2 Framework Driver in UWP Application

I am building a Universal Windows Platform (UWP) application that needs to interface with a serial device using the third-party NI-VISA .NET driver, which targets .NET Framework 4.6.2 1. When I tried to reference the driver in my UWP application, I…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,374 questions
Universal Windows Platform (UWP)
asked 2022-04-05T06:24:23.087+00:00
Ryan Anders-McDowell 21 Reputation points
accepted 2022-04-05T15:19:51.903+00:00
Ryan Anders-McDowell 21 Reputation points
1 answer

Websocket for Blazor doesn't work with Openlitespeed on Centos

I have Openlitespeed installed on my CentOS server. I deployed a Blazor app to the server after installing dotnet core. The Blazor code runs fine but I cannot get the Websocket to work. If I look in console, I see that the Blazor application loads…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,389 questions
asked 2022-04-05T01:27:04.863+00:00
blinkor12 101 Reputation points
answered 2022-04-05T14:25:42.263+00:00
Bruce (SqlWork.com) 56,021 Reputation points
1 answer

Xamarin profiler is not working

I am working on couple of Xamarin projects - iOS and android apps. VS2019 enterprise license with updates till date When I run Xamarin profile. error is reported. Its share that Microsoft releases buggy tool or do not support in resolving issues. I…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
asked 2021-11-19T13:56:54.827+00:00
Harish KC 1 Reputation point
commented 2022-04-05T14:21:50.9+00:00
Steven Forrester 6 Reputation points
0 answers

Certification Authorities for ClickOnce deployment

I have been distributing my software using ClickOnce, signed with a test certificate. When Windows 10 users click the download the dialog pauses on a a screen Windows protected your PC Microsoft Defender Smartscreen prevented an unrecognized app from…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,828 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,164 questions
asked 2022-04-05T13:01:21.19+00:00
Robert Barnes 71 Reputation points
3 answers One of the answers was accepted by the question author.

Visual Stuio 2022 Bugs

HI Guys, Does anyone have any idea how to fix the new visual studio 2022 bug? Explain When I add more than 2 Buttons regardless <ASP:Button OR <ASP:LinkButton that I add to the form only 2 works the 3rd one does not work, the button shows on…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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.
10,245 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,119 questions
asked 2022-04-04T17:22:05.42+00:00
Jose Saiz 21 Reputation points
accepted 2022-04-05T13:01:13.08+00:00
Jose Saiz 21 Reputation points
0 answers

.NET 4.5 WinForms Frame

Hey, My WinForms app is in .NET 4.0 Full, I'm considering to upgrade the project to .NET 4.5. BTW .NET 4.5 WinForms has a new large form border style, looks ugly IMO. Is there any workaround to make the .NET 4.5 forms looks like the older ones? …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,828 questions
asked 2022-04-04T16:14:59.953+00:00
OSVBNET 1,386 Reputation points
commented 2022-04-05T12:33:45.78+00:00
Karen Payne MVP 35,036 Reputation points
3 answers

Unable to resolve class library references in dotnet core 5 app

I have class library and i have used that class library as a project reference in my dotnet core 5 webapi project. And i have used it in the controller like this But when i hit this controller from post man i get error saying: Im…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,164 questions
asked 2022-04-05T07:13:24.23+00:00
Muhammad Nabeel Iqbal 0 Reputation points
commented 2022-04-05T11:09:04.697+00:00
AgaveJoe 26,201 Reputation points
0 answers

How does an installer add a firewall inbound rule?

Hi. I am implementing an installer. Since some of executable files open sockets so Windows Defender alerts for the files. This alert stops the application. So I am going to implement adding firewall rules by an installer. In order to add the rule, I…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,374 questions
asked 2022-04-05T11:07:59.763+00:00
takumi harayama 1 Reputation point
1 answer

MVC checkbox postback and refresh in the dashboard

I have an existing MVC application to read one external database to generate pdf upon submit button and its working fine. TimeSheet.cshtml – has the following dashboard display: I was asked to enhance application to insert some checkbox…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
asked 2022-03-22T03:37:26.103+00:00
Shri-6058 326 Reputation points
commented 2022-04-05T09:58:07.877+00:00
Lan Huang-MSFT 25,551 Reputation points Microsoft Vendor
0 answers

Tree view with specific field from json

I am developing an winform application using C#. In this application in treeview control I will be showing question and subquestions in tree structure. Source of question and sub-question will be a some specific field in a JSON. On click of a…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,374 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.
10,245 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,119 questions
asked 2022-03-30T22:20:41.147+00:00
Surya P Singh 21 Reputation points
commented 2022-04-05T09:55:04.587+00:00
Jack J Jun 24,286 Reputation points Microsoft Vendor