24,784 questions with .NET-related tags

Sort by: Updated
0 answers

How to apply search in collection view with portion loaded data?

i want to display filtred product in collectionview defined as: <CollectionView Grid.Row="0" Grid.ColumnSpan="3" IsVisible="{Binding IsNoResult, Converter={StaticResource…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,141 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,573 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.
786 questions
asked 2024-06-24T16:24:32.32+00:00
Kaouthar GR AOUICHAOUI 80 Reputation points
commented 2024-07-03T01:42:27.98+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,591 Reputation points Microsoft Vendor
0 answers

DbUpdateConcurrencyException: Database operation expected to affect 1 row(s) but actually affected 0 row(s). Data may have been modified or deleted since entities were loaded.

Hi If you allow, I would like to ask a question. I want to replace the data I brought with the "public async Task<IActionResult> WriterEditProfile()" method with the "public IActionResult WriterEditProfile(AppUser p)"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,345 questions
asked 2024-07-01T13:36:58.2366667+00:00
Yalçın Mete 60 Reputation points
commented 2024-07-03T01:22:09.8566667+00:00
JasonPan - MSFT 4,796 Reputation points Microsoft Vendor
2 answers

Visual Studio 2022 Xamarin Forms UWP Create App Package Error: Task 'SignAppxPackage' failed. The application has failed to start because its side-by-side configuration is incorrect.

I am trying to create an app package (for my Xamarin Forms UWP app) to upload to the windows store. I am using Microsoft Visual Studio Professional 2022 (ARM 64-bit) Version 17.8.3. In Visual Studio, I right-click on the UWP project -> Publish ->…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,320 questions
Universal Windows Platform (UWP)
asked 2024-07-02T11:18:30.5366667+00:00
Andrea Christy 0 Reputation points
edited the question 2024-07-03T00:53:25.1266667+00:00
Roy Li - MSFT 32,721 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Blazor accessing global variable issue

Hi all I asked here how to save variable state and i get long answers and what I want is to know if it's possible in blazor to define a variable somewhere in the app structure so I can access it from any component. something like in console program…

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,477 questions
asked 2023-10-01T07:18:17.1633333+00:00
Haviv Elbsz 2,026 Reputation points
commented 2024-07-03T00:04:29.12+00:00
Andy Mesta 0 Reputation points
1 answer

Unhandled exception in "Build a web API with minimal API, ASP.NET Core, and .NET" Unit 2.

I wrote my code exactly as instructed, and I'm getting the following error message: Unhandled exception. System.InvalidOperationException: The service collection cannot be modified because it is read-only. at…

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
16 questions
asked 2024-05-18T00:58:16.51+00:00
João Victor Serra Pinto 20 Reputation points
commented 2024-07-02T17:49:36.6433333+00:00
David Amedeka 5 Reputation points
7 answers

Best Report Tools for Blazor

My company is transitioning from legacy software that makes extensive use of Crystal Reports and we are looking for a tool compatible with Blazor. Many options come up in a Google search, but we don't have enough experience with the platform to make an…

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,477 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,855 questions
asked 2023-02-09T02:52:54.0333333+00:00
RussDFM 5 Reputation points
answered 2024-07-02T16:20:20.1366667+00:00
David Thielen 2,526 Reputation points
0 answers

Blazor Server Side Custom CultureInfo getting overridden when using AzureSignalR

I have a Blazor interactive server side .net 8 application. I wanted to change the default DateTimeFormat across the entire application for certain Cultures, so I created some custom CultureInfo's shown here: public static List<CultureInfo>…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,573 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,477 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
131 questions
asked 2024-06-25T23:30:39.3+00:00
C-Jesse Bryan 0 Reputation points
commented 2024-07-02T16:16:03.28+00:00
David Thielen 2,526 Reputation points
2 answers One of the answers was accepted by the question author.

Connection String to Grant Web App running .NET code access to PostgreSQL Flexible Server via Managed Identity

Hi, I need to deploy a webApp running .NET Code and Azure Database for PostgreSQL flexible server. Our policy is to grant webApps/functionApps access to SQL Server/MySql Server/PostgreSQL Server via Managed Identity. While, I can see connection strings…

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.
648 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,573 questions
Azure Database for PostgreSQL
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,269 questions
asked 2024-06-11T13:04:40.8433333+00:00
84017655 21 Reputation points
accepted 2024-07-02T15:27:50.82+00:00
84017655 21 Reputation points
1 answer One of the answers was accepted by the question author.

MAUI: Slider header is not moving

I have a slider in my UI and I am not able to move it properly. Below is the code: <Slider x:Name="watchme_slider" Grid.Column="1" BackgroundColor="White" MinimumTrackColor="#1c98d7" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,141 questions
asked 2024-07-02T07:08:24.18+00:00
Sreejith Sreenivasan 851 Reputation points
accepted 2024-07-02T13:07:50.7166667+00:00
Sreejith Sreenivasan 851 Reputation points
0 answers

Pentesting Blazor Server Apps

Hi, I came across a web app that is using Blazor Server, all the communication is happening through SignalR. Now in traditional web apps, pentesters use ZAP/Burp to intercept the traffic and manipulate with it. i.e. test access controls by toggling the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,345 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,477 questions
asked 2024-02-27T13:50:50.58+00:00
Najam ul Saqib 160 Reputation points
commented 2024-07-02T11:54:55.37+00:00
NOIPMYBIZCOM 0 Reputation points
1 answer

cannot open program.cs file using "code Program.cs"

When attempting to complete Step 1 of "Add the code for your text to speech application" of the Create a single-shot recognition speech to text application exercise, I have manually typed-in as well as copied/pasted in the following: code…

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
9 questions
asked 2024-06-28T21:52:09.2066667+00:00
James Hackney 61 Reputation points
edited the question 2024-07-02T10:52:11.67+00:00
Pradeep M 1,630 Reputation points Microsoft Vendor
1 answer

Only one app running in MAC?

Hi, Does this code work on MAC, only one app running ? Thanks, public partial class App : Application { private static Mutex mutex = new Mutex(true, Assembly.GetEntryAssembly().GetName().Name); public App() { if…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,141 questions
asked 2024-06-26T12:02:14.2933333+00:00
Dani_S 3,206 Reputation points
commented 2024-07-02T10:42:32.45+00:00
Dani_S 3,206 Reputation points
1 answer

Maui MediaPicker.Default.CapturePhotoAsync windows doesn't display camera

When I run the app is the VS 2022 on Windows 10 the MediaPicker.Default.CapturePhotoAsync method displays the camera and allows me to capture a photo. When the app is published and installed on Windows 10 the MediaPicker.Default.CapturePhotoAsync method…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,068 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,141 questions
asked 2024-04-30T16:15:24.1733333+00:00
Grant Schaffer 25 Reputation points
edited a comment 2024-07-02T09:04:09.67+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,631 Reputation points Microsoft Vendor
2 answers

On remote desktop machine (Windows 11), the DataGrid (WPF C# application .Net Framework 4.7.2) event is throwing System.Reflection.TargetInvocationException.

The DataGrid event is giving the exception"System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Added item does not appear at given index '4'. " while…

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,706 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,573 questions
asked 2024-07-01T14:03:37.68+00:00
Sharayu Mahadeorao P 0 Reputation points
answered 2024-07-02T08:29:44.59+00:00
Hongrui Yu-MSFT 785 Reputation points Microsoft Vendor
1 answer

Issue with an earlier well functioning AppService

Hello Team, I would like to ask your help in a technical issue. I am creating an AI chatbot flaskbased application , where using mostly open source libraries. For semantic search and ranking I am using FlashRank library…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,345 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,396 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,269 questions
asked 2024-06-21T09:00:34.67+00:00
Viktor Banai 0 Reputation points
commented 2024-07-02T07:45:53.9933333+00:00
JasonPan - MSFT 4,796 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

MAUI .NET 8 on Android - throwing an exception

I have created a new MAUI .NET 8 project and migrated the Xamarin forms project code. When I tried to run the project with the Android device with Visual Studio Windows, which threw the exception below, 1>MSBUILD : java.exe error JAVA0000: Error in…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,141 questions
asked 2024-07-01T12:26:36.5066667+00:00
Aneetha 25 Reputation points
accepted 2024-07-02T06:57:09.2266667+00:00
Aneetha 25 Reputation points
4 answers

How to fix Add-Migration problem?

Hi, I am trying to add another entity to the database in my e-commerce solution which includes client and admin projects using Blazor WASM and Server, Asp.Net Core API, and data access projects. However, I am getting an error message as shown below: How…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
719 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,345 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,477 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,573 questions
asked 2024-06-24T17:33:35.47+00:00
Cenk 986 Reputation points
answered 2024-07-02T06:00:31.8533333+00:00
Cenk 986 Reputation points
2 answers

Does ADO.NET support multi-subnet failover for SQL connections, and how does this feature compare to ODBC's multi-subnet failover support?

I am using ADO.NET for SQL connections. Does ADO.NET support multi-subnet failover? I understand that ODBC supports multi-subnet failover. Can you explain the difference between ADO.NET and ODBC in this regard?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,573 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.
13,203 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
696 questions
asked 2024-06-10T10:06:11.2266667+00:00
YONG Chee Wee 1 Reputation point
commented 2024-07-02T05:15:23.6566667+00:00
Jiale Xue - MSFT 42,151 Reputation points Microsoft Vendor
2 answers

Powershell: how does calling a .NET method work?

When I make a call to .NET in, let's say, PowerShell 7.4.3, such as: $HT = [System.Collections.Hashtable]::new() am I right when I say that PowerShell uses the .NET version on which it is based, in my example 8.0.6?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,573 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2024-07-01T08:24:30.82+00:00
Hinterleitner Andreas 0 Reputation points
answered 2024-07-02T04:14:12.0366667+00:00
Hinterleitner Andreas 0 Reputation points
1 answer

Additional empty page getting adding while generating the word documents.

I am actually trying to generate the word document as a resume using the interop library in an .net app. I am currently using bookmark for the formatting of the details in the word document. Once after the generation an additional empty page is adding at…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,396 questions
asked 2024-07-01T08:40:00.82+00:00
PadmaPrasad H M 0 Reputation points
commented 2024-07-02T03:07:14.4933333+00:00
Lan Huang-MSFT 28,821 Reputation points Microsoft Vendor