23,045 questions with .NET-related tags

Sort by: Updated
0 answers

Error Installing Application on Another Computer: Invalid Connection String

Good evening dear community, I am bringing up my problem again since I have not been able to find a solution. To the point: I created a small application with a single Windows Forms form. It has its own connection string to the database and an example…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,160 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,257 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.
9,937 questions
asked 2024-02-25T00:40:15.0533333+00:00
Roberto Carlos Melgar Dorado 20 Reputation points
1 answer One of the answers was accepted by the question author.

Why does the transaction continue even though there is an error in a method?

I have three methods that are part of a single transaction, part of a transaction to register a purchase. I am testing if the transaction works. First, I deleted the Kardex table, and yes, it worked correctly, the changes are rolled back. Now, when…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,798 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,160 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.
9,937 questions
asked 2024-02-04T14:57:05.34+00:00
Roberto Carlos Melgar Dorado 20 Reputation points
accepted 2024-02-25T00:19:15.67+00:00
Roberto Carlos Melgar Dorado 20 Reputation points
1 answer

How receives push notification in Windows with MAUI

I'm creating an application using .NET8 MAUI. The application registers the device in an Azure Notification Hub. From here, I can send push notifications to the different devices. The problem I have with Windows is that the message arrives on the…

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
241 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,576 questions
asked 2024-02-23T00:27:46.38+00:00
Enrico Rossini 126 Reputation points
answered 2024-02-24T23:43:25.5566667+00:00
brtrach-MSFT 14,146 Reputation points Microsoft Employee
2 answers

How to save all the updates in a datagrid (set of comboboxes) MVVM back to the database in WPF C#?

I have similar issue as @Mesh Ka working on the filtering between comboboxes. https://learn.microsoft.com/en-us/answers/questions/1481853/filtering-a-combobox-in-a-datagrid-based-on-anothe Thanks for the solution! The challenge I have is to save all the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,160 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,626 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,404 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.
9,937 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
744 questions
asked 2024-02-22T18:34:30.8433333+00:00
Yvon 0 Reputation points
edited an answer 2024-02-24T23:28:22.75+00:00
Chandan Gupta Bhagat 0 Reputation points
0 answers

IDX40001: Issuer: does not match any of the valid issuers provided for this application

My Azure AD B2C application has suddenly stopped authenticating requests due to "IDX40001: Issuer: 'https://<tenant>.b2clogin.com/<tenantId>/v2.0/', does not match any of the valid issuers provided for this application" Looking at…

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.
571 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,003 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,623 questions
asked 2024-02-24T22:34:41.93+00:00
26375912 0 Reputation points
edited the question 2024-02-24T22:40:20.3833333+00:00
26375912 0 Reputation points
0 answers

How to hide mouse cursor in MAUI on Windows

I want to hide the mouse cursor in a Maui application that will be used on touchscreens. The application host a webview ( Webview2 on windows) How can i achieve this?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,160 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,576 questions
asked 2024-02-24T20:57:52.68+00:00
Morten Tvedten 20 Reputation points
0 answers

A bug?? -> .NET 8 - the page 'error' in the new Blazor Web App (WebAssembly) redirects to 404

If you create the new Blazor Web App (WebAssembly) in .NET 8 you will see that structure: Now run application and open "/error" page, firstly you will see the error page: and then you will be redirected to 404 page: Is this a bug ??

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,314 questions
asked 2024-02-24T19:39:50.5733333+00:00
aleksw 1 Reputation point
commented 2024-02-24T20:18:06.7+00:00
AgaveJoe 25,686 Reputation points
2 answers One of the answers was accepted by the question author.

When debugging Blazor Server, Blazor WASM's invoke is jumping to Server side

I want to share the same data class between Blazor Server and Blazor WASM with the injection of DataSource in such a way that once registered for Server, it will use EntityFramework by DbContext, and once registered for WASM, it will use DbSet for remote…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,160 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,314 questions
asked 2024-02-23T20:18:14.7966667+00:00
Matěj Rada 0 Reputation points
edited an answer 2024-02-24T19:57:06.7333333+00:00
Rada Matěj 20 Reputation points
0 answers

Images don't persist in ColllectionView .

I have a Class in Model to save the Information about a document. The images are retrieved as streams in view model and are displayed in CollectionView .The problem is when Images are scrolled out of view and scrolled back in the images disappears. here…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,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.
9,937 questions
asked 2024-02-12T09:17:00.5633333+00:00
Asgar Ali 86 Reputation points
commented 2024-02-24T17:40:11.57+00:00
Asgar Ali 86 Reputation points
0 answers

Painful Abuse of Visual Studio IDE and Compiler Tools

Can someone please update this repo to .Net 7 or .Net 8: https://github.com/CommunityToolkit/Lottie-Windows I have been trying on and off now probably since November 2023. I spent a lot of time on something I consider to be trivial. Visual Studio output…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,160 questions
asked 2024-02-24T15:47:05.54+00:00
Jerry Richards 116 Reputation points
1 answer

How to deploy my app to Web App?

I have created a test .Net 6 app (open Visual Studio and create a standard web app and ran it). Next in Azure DevOps i set up my repository and alll looks the way i would expect it to. I would now like to deploy this app to a Azure Web App which should…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,003 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,497 questions
asked 2024-02-23T12:58:35.4233333+00:00
Keith Viking 20 Reputation points
commented 2024-02-24T14:40:11.4+00:00
Keith Viking 20 Reputation points
0 answers

.NET runtime error

Faulting Application: Install-GooglePlayGames-Beta (4).exe Framework Version: v4.0.30319 Explanation: The process was terminated due to an unhandled exception. Exception Information: System.ArithmeticException Exception Information:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,160 questions
asked 2024-02-24T14:21:06.0066667+00:00
melih cantürk 0 Reputation points
8 answers One of the answers was accepted by the question author.

.NET Framework 4.8 on Windows Server 2019 - installation failes

I have tried the solutions in other questions regarding installation failures of .NET Framework 4.8, but nothing have helped me so far. The server is fully patched and rebooted. (Note! We use a WSUS but I do not know what updates are allowed or…

.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,101 questions
asked 2021-06-17T15:06:41.08+00:00
Kristofer 131 Reputation points
answered 2024-02-24T14:04:12.99+00:00
cb27 21 Reputation points
2 answers One of the answers was accepted by the question author.

How to get the real target of a shortcut?

I have a shortcut on the desktop, that opens Adobe Reader XI, in the following path: C:\Users\Heiko\Desktop\Adobe Reader XI.lnk In my app, I am trying to get the destinations of various shortcuts. However, with Adobe Reader XI, I only get an ico file as…

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,626 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.
9,937 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,441 questions
asked 2023-06-03T12:49:23.2366667+00:00
Heiko 1,191 Reputation points
edited a comment 2024-02-24T13:36:04.8833333+00:00
Heiko 1,191 Reputation points
2 answers

.NET8 MAUI and Azure Notifications Hub implementation

In my NET8 MAUI application, I'm trying to add push notifications using Azure Notification Hub. I can't find an updated example of how to configure and implement correctly the push notification for Windows, Android and iOS. Can you point me in the right…

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
241 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,576 questions
asked 2024-02-03T10:33:24.31+00:00
Enrico Rossini 126 Reputation points
edited a comment 2024-02-24T12:02:30.0666667+00:00
Enrico Rossini 126 Reputation points
2 answers

multi filter to apply only two columns Field1 and Field2

Hello This is my code <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> <link…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,169 questions
asked 2024-02-16T11:50:48.8733333+00:00
RAVI 536 Reputation points
answered 2024-02-24T11:42:22.3466667+00:00
RAVI 536 Reputation points
1 answer

How to Download Multiple Files using the Response Class

I have a classic ASP.Net app that downloads a file using the Response class: Response.Clear(); Response.ClearHeaders(); Response.ClearContent(); Response.AddHeader("Content-Disposition",…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,160 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,169 questions
asked 2024-02-24T03:50:39.54+00:00
Coreysan 1,566 Reputation points
answered 2024-02-24T11:16:52.8266667+00:00
AgaveJoe 25,686 Reputation points
6 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.
4,003 questions
asked 2023-06-03T08:29:57.58+00:00
Vaishnavi P 25 Reputation points
commented 2024-02-24T05:37:57.7533333+00:00
Sakesun Roykiattisak 0 Reputation points
0 answers

use odata v3 only in asp.net core

For my ASP.Net Core WEB API endpoints, I only want to use ODataV3 instead of ODataV4 how can I make that possible or enforce it, because client is sending data V3 format to the server. Please don't ask me to update the client because it is also accessing…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,003 questions
asked 2024-02-05T12:38:03.8433333+00:00
Muhammad Adeel Siddiqui 0 Reputation points
commented 2024-02-23T22:50:23.5066667+00:00
Bruce (SqlWork.com) 52,496 Reputation points
2 answers

http error 400. the size of the request headers is too long

Hi, I have a .net core mvc project and have used the SetIdentity for user roles and logins. Since last week, I am facing the error "http error 400. the size of the request headers is too long", the moment my application runs. I am not able…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,003 questions
asked 2022-03-28T06:04:11.187+00:00
Pathak, Vineet (SE IT GDC PR-G) 1 Reputation point
commented 2024-02-23T22:17:15.8333333+00:00
McNulty 0 Reputation points