24,068 questions with .NET-related tags

Sort by: Updated
1 answer

Unauthorized error when logging in with IdentityModel.OidcClient in MAUI

I am responsible for the development of a cross-platform application that must log in with OpenID. This application is developed in Xamarin.Forms, but I have to migrate it to MAUI. To log into the application I use the IdentityModel.OidcClient library.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,413 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,921 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,303 questions
asked 2024-05-09T07:10:13.6466667+00:00
Jalza 736 Reputation points
answered 2024-05-10T14:52:40.7966667+00:00
Jalza 736 Reputation points
9 answers

Identity scaffolding in .net core 6.0 gives error message "Length cannot be less than zero."

Hello, I've been trying to scaffold various Identity pages, however I keep getting an error dialog which says "There was an error running the selected code generator: 'Length cannot be less than zero. (Parameter 'length')'". . In the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 questions
asked 2022-07-18T13:50:12.27+00:00
Jonathan Feucht 26 Reputation points
commented 2024-05-10T14:44:40.35+00:00
Kenneth R. Jones 46 Reputation points
1 answer

How to update/save a file in a database in web application

i have a code error and i wish i can get it fix by your noble helps or interventions here is a code block that updates a new product on a product page in a web application this is the code behing the productController.cs file for the cshtml file…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,287 questions
asked 2024-05-07T15:39:22.68+00:00
KwebenaAcquah-9104 306 Reputation points
edited a comment 2024-05-10T14:11:54.9966667+00:00
KwebenaAcquah-9104 306 Reputation points
2 answers

An old ASP.NET WebForms app won't build due to missing references and related

I maintain an old ASP.NET WebForms application, written using VB.NET so long ago that no one knows who started this application. The guy who maintained it, before I was given it, left before I joined. He didn't put anything in any source control, and he…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,287 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,639 questions
asked 2024-05-08T21:06:30.9666667+00:00
Falanga, Rod, DOH 80 Reputation points
commented 2024-05-10T14:00:45.18+00:00
Falanga, Rod, DOH 80 Reputation points
0 answers

[Asp.Net Core MVC] Is posssible to embed the wwwroot directory inside the dist binary?

I have an Asp Net Core MVC project with my assets in wwwroot. My intent is to have only the binary and the appsettings file so is easy to update the application in production without to lose some updated assets files. I used this options…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 questions
asked 2024-05-10T13:51:50.54+00:00
Storm Energy 0 Reputation points
0 answers

How to setup Blazor Server with Blazor WASM with gRPC for virtual IIS application?

Hi, I have simple Blazor Server without static files. It is only falling into Blazor WASM with static files using FallBackTo. There is gRPC an its Controller mapped on the main endpoint. Everythig is working on https://localhost. Once I try to deploy…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 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,403 questions
asked 2024-05-10T13:41:33.87+00:00
Matěj Rada 20 Reputation points
0 answers

SSRS Report Viewer windows forms - The request failed with an empty response

Dear all, we use the following component in our Windows Form (.net 4.7.2 application): Microsoft.ReportingServices.ReportViewerControl.Winforms 150.1620.0 Since we migrated our server on a new domain, we are getting sometimes the following execption in…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,838 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,813 questions
asked 2024-05-10T13:16:20.6633333+00:00
SERIOLI, MARCO (MSTI) 0 Reputation points
0 answers

WPF程序在surface pro 9 windows 11操作系统下触摸一个透明背景窗口,透明背景消失

Surface pro 9 windows 11专业版操作系统下,触摸屏触摸到WPF透明背景窗口边缘时会导致透明窗口变成“云白”颜色,而失去透明效果,需要再次触摸窗口边缘才能恢复透明状态,具体如下图:  窗体透明时的效果 触摸屏触摸窗体边缘,透明窗口变“云白”色效果 出问题时操作系统版本 1.  为了尽可能的描述问题,我对该问题目前收集的资料同步出来; 使用WPF .net framework…

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,681 questions
asked 2024-05-10T08:47:56.89+00:00
Jason Yuan 0 Reputation points
commented 2024-05-10T13:06:34.52+00:00
Jason Yuan 0 Reputation points
0 answers

Whenever I deploy my .NET MAUI application to my Android phone, it exits the code, producing an error "GetVersionTask" failed unexpectedly". What could be the solutions for this?

Whenever I deploy my application to my Android phone, it produces the error called ""GetVersionTask" failed unexpectedly." When I run it using Windows Machine, it runs completely normal. What could be the solution to this?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,639 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,921 questions
asked 2024-05-10T12:55:17.3633333+00:00
John Ivan D. Bachiller 0 Reputation points
1 answer One of the answers was accepted by the question author.

Zindex dosent work

I am trying to make a custom control that resembles a Material Design textbox My app is almost there ContentView x:Class="CustomEntry.Controls.CustomEntry" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,921 questions
asked 2024-05-08T23:17:02.51+00:00
Eduardo Gomez Romero 225 Reputation points
accepted 2024-05-10T12:53:21.3033333+00:00
Eduardo Gomez Romero 225 Reputation points
0 answers

ManagedIdentityApplication.AcquireTokenForManagedIdentity("api://AzureADTokenExchange") giving error in local machine.

Hi, I am implementing the "Federated Identity Credential" along with User Managed identity in .net core 3.1 web api. Getting the error code: "managed_identity_unreachable_network" with error message "A socket operation was…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,201 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,657 questions
asked 2024-05-10T11:41:44.0866667+00:00
SivaD 0 Reputation points Microsoft Vendor
1 answer

Change Installation Location for WPF Windows Application Packaging Project

We have uploaded our WPF app to windows store using Windows Application Packaging project. Is it possible to change the Installation location of the app from "Windows Apps" folder to any other location? Settings → Apps & Features ->…

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,681 questions
asked 2024-05-10T08:02:16.2666667+00:00
Raja Shanmugam 21 Reputation points
commented 2024-05-10T10:13:31.71+00:00
Raja Shanmugam 21 Reputation points
0 answers

InternalServerError on Azure Web App deployment

Hi, I'm having some trouble figuring out why a deployment for an Azure Web App fails. I've tried deployment to a container app, and an app service, with both GitHub actions workflow and through a web deploy using pubxml. My application runs fine and as…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,952 questions
asked 2024-05-10T01:30:24.82+00:00
Cesar Vera 0 Reputation points
commented 2024-05-10T09:46:58.4433333+00:00
JasonPan - MSFT 4,376 Reputation points Microsoft Vendor
0 answers

How to fix .NET Framework error

I have a problem with my .NET Framework, whenever I run programs like Visual Studio, it gives me this error message: Clicking "Yes" forwards me to the installation page, which after running the installer, I am told that the .NET framework…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,696 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,125 questions
asked 2024-04-30T16:02:07.9433333+00:00
Jonathan Joseph 0 Reputation points
commented 2024-05-10T09:12:40.34+00:00
Jiachen Li-MSFT 26,751 Reputation points Microsoft Vendor
0 answers

Disable local authentication for Application Insights

Hello, I have a .NET 8 Api App hosted in Azure that sends telemetry to Application Insights. This applications has some web jobs that are configured like this to connect to Application Insights: var connectionString =…

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,825 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,413 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,952 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,657 questions
asked 2024-05-10T08:30:50.8933333+00:00
Angela Calborean 71 Reputation points
edited the question 2024-05-10T09:04:03.9633333+00:00
Angela Calborean 71 Reputation points
1 answer

Compatibility of .NET Standard 2.0 library that uses StoreAPI and WPF .NET 8.0?

I am working with a .NET Standard 2.0 Library that we wrote and use both in a WPF + .NET Framework 4.8 windows application and in a UWP windows application. This .NET Standard 2.0 library has references to Microsoft.Windows.SDK.Contracts version…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,413 questions
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,681 questions
Microsoft Partner Center API
Microsoft Partner Center API
Microsoft Partner Center: A Microsoft website for partners that provides access to product support, a partner community, and other partner services.API: A software intermediary that allows two applications to interact with each other.
317 questions
asked 2024-05-08T17:36:27.52+00:00
Richard Freytag 1 Reputation point
edited an answer 2024-05-10T08:20:01.26+00:00
Hongrui Yu-MSFT 80 Reputation points Microsoft Vendor
0 answers

How to include extra files in Visual Studio Publish for WPF Application?

I have my .net 5 WPF application setup to publish with these settings below. My application is a PRISM (MVVM framework) application and uses a modular structure. The module projects are not directly referenced by the main application project.…

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,681 questions
asked 2021-11-18T08:58:02.333+00:00
James Baker 1 Reputation point
commented 2024-05-10T07:55:28.6233333+00:00
James Baker 1 Reputation point
0 answers

Touch Events in .NET MAUI

Hi I'm working on a piano keyboard app in .NET MAUI, and I'm encountering an issue with implementing a specific feature. I want users to be able to slide their finger across the keys, triggering a note for each key they pass over. However, I'm only…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,921 questions
asked 2024-05-10T01:53:53.1+00:00
Yusuf 691 Reputation points
commented 2024-05-10T07:46:05.71+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,626 Reputation points Microsoft Vendor
0 answers

Update Workload Problem/ NuGet Package unable to be installed.

**I have created 3 Projects: FrontEndProject and it is a Blazor Project and this is the csProj:** <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 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,403 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,303 questions
asked 2024-05-10T04:54:17.63+00:00
Muhammad Ghozlan 0 Reputation points
edited the question 2024-05-10T07:31:07.27+00:00
XuDong Peng-MSFT 10,176 Reputation points Microsoft Vendor
1 answer

User.identity.getuserid() returns null after signin.

I have a piece of code for login in asp.net C# webform. it uses inbuilt login function, and User.Identity.GetUserId() to catch the userId. But after login the User.Identity.GetUserId() returns null. Below is my login code // Validate the user password …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,287 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,303 questions
asked 2024-05-10T02:12:49.11+00:00
Emeka Okoye 46 Reputation points
commented 2024-05-10T07:27:33.9766667+00:00
Lan Huang-MSFT 25,876 Reputation points Microsoft Vendor