Microsoft Q&A

.NET

13,608 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,608 questions with .NET-related tags

Sort by: Updated
1 answer

The type 'MediaSessionCompat' exists in both 'Xamarin.Android.Support.Media.Compat' and 'Xamarin.AndroidX.Media'

The type 'MediaSessionCompat' exists in both 'Xamarin.Android.Support.Media.Compat' and 'Xamarin.AndroidX.Media' and probably recognises twice the class MediaSessionCompat. I have tried to delete all Android.Support references and keep only the AndroidX,…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,888 questions
asked 2023-03-06T14:14:10.3666667+00:00
Buzzdown 41 Reputation points
answered 2023-03-06T15:20:52.5266667+00:00
Michael Taylor 39,971 Reputation points
0 answers

Asp.Net Machine Account

Hello everyone. ASP.NET Machine Account. take over my computer. Every time I open an application, it asks for a password and I don't know what the password is. I have only local account. I need help...

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,280 questions
asked 2023-03-06T14:57:52.3466667+00:00
Erol Ç 0 Reputation points
0 answers

Xamarin Android App Seems to Start Up in the Middle of a Bluetooth Callback Even After Being Removed

I have a Xamarin app build with the latest versions of Xamarin as of when this is being posted. This app uses a bluetooth plugin, but I am not sure that is relevant. One of the first things that is done in this app is to initialize a Logging component.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
771 questions
asked 2023-03-06T14:46:43.7833333+00:00
Tony Pitman 21 Reputation points
1 answer

App icon not showing in the correct size in Maui

My .SVG app icon is not showing correctly in my Maui app. The icon in my Maui app it looks like this: This Icon if from when I wrote the app in Xamarin on VS 2019. This is how the image shows in my Maui appL I made the following edits…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
993 questions
asked 2022-12-04T21:43:45.073+00:00
Heinz Deubler 151 Reputation points
edited an answer 2023-03-06T14:39:02.4933333+00:00
Jörg Thomas 0 Reputation points
2 answers

Why changing a form graphic property will affect the software?

Description: I create a VB.NET Windows Forms application [.net6+] that loads an HTML file using the HtmlAgilityPack library, extracts data from it, and displays it in a list box. Imports System.IO Imports HtmlAgilityPack Public Class Form1 Public…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
771 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,928 questions
asked 2023-03-02T04:40:23.26+00:00
Mattia Fanti 336 Reputation points
commented 2023-03-06T13:15:27.28+00:00
Mattia Fanti 336 Reputation points
0 answers

File uploader component not triggering onUploadProgress in Blazor WASM hosted on IIS

I'm using a file uploader component in Blazor WebAssembly and I've implemented the upload action in JavaScript. The file upload works fine when I run the sample locally, but when I host the sample in IIS, the onUploadProgress function doesn't trigger and…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
844 questions
asked 2023-03-06T13:10:27.2333333+00:00
Mohan Raj 0 Reputation points
2 answers

SsdtHelper.DeployDacPacWithOptions() fails with System.MissingMethodException: Method not found: 'Void Microsoft.SqlServer.TransactSql'

I have a .NET Framework 4.6.1 (upgrading to 4.6.2 doesn't solve it) project that uses DacServices to deploy my database's SSDT on a Docker container. This eventually uses the following code: using (var fileStream = new FileStream(dacpacPath,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
771 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.
8,881 questions
asked 2023-01-23T12:08:46.3933333+00:00
Ron Anoshi 0 Reputation points
commented 2023-03-06T13:10:02.2233333+00:00
Batya Pinski 0 Reputation points
0 answers

Remote Debug ASP.NET Core on Azure App Service modules not loading and not hitting the breakpoint

I have followed the steps from the below microsoft URL. But windows-->modules are not loading and break point not hitting. https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging-azure-app-service?view=vs-2022

Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,477 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,737 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,631 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
708 questions
asked 2023-03-06T12:57:54.9633333+00:00
Srinivas Vadlakonda 0 Reputation points
2 answers One of the answers was accepted by the question author.

MAUI - Android touch pressure

Hi everybody. I am writing an app using .NET MAUI App (.net 7, latest) , mainly for Android Platform. User draws signs on a tablet screen. I'm using GraphicsView and related Start, End, Drag interaction. For my application I need pressure data too.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
993 questions
asked 2023-03-05T19:06:19.3866667+00:00
Dino 20 Reputation points
answered 2023-03-06T12:11:37.22+00:00
Dino 20 Reputation points
0 answers

Programmatically Change Field Name at runtime

Is there a way to change the FieldName of a model at runtime instead of using resource files? I'm trying to develop a multi-language set of forms where the FieldName is loaded from a database rather than a resource file. The reason for this is the…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
690 questions
asked 2023-03-02T01:52:21.3766667+00:00
Kmcnet 301 Reputation points
commented 2023-03-06T11:56:28.8533333+00:00
Kmcnet 301 Reputation points
1 answer

Program does not run even though .NET Desktop Runtime 7.0.2 is installed

I want to run a program called PKHeX. I was told to install .NET Desktop Runtime, so I installed it, but it still looks like the picture above and doesn't work. How do you solve this? Please explain in detail.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
771 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.
972 questions
asked 2023-03-05T12:27:47.75+00:00
ONNURI 0 Reputation points
edited the question 2023-03-06T11:52:34.4033333+00:00
ONNURI 0 Reputation points
2 answers

Is Webforms javascript scripts secure?

I did a security scan on an app that uses webforms. I found 10 security-related issues in several javascript files. I have not modified these scripts in any way. Can these issues be considered false positives? Most of the issues raised by the security…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,280 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.
442 questions
asked 2022-05-12T16:01:17.957+00:00
MrD 1 Reputation point
edited an answer 2023-03-06T11:07:10.56+00:00
Emelia Clark 0 Reputation points
0 answers

how to fix System.IO.FileNotFoundException: 'Could not load file or assembly 'DocumentFormat.OpenXml, Version=2.19.0.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17' or one of its dependencies. The system cannot find the file specified.'

I tried to run a excel file in my application and it is showing me the error mentioned below System.IO.FileNotFoundException: 'Could not load file or assembly 'DocumentFormat.OpenXml, Version=2.19.0.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17'…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
771 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.
7,330 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,364 questions
asked 2023-02-28T06:24:09.2133333+00:00
Dineshkumar.S 306 Reputation points
commented 2023-03-06T11:01:45.42+00:00
Dineshkumar.S 306 Reputation points
1 answer

How to hide Cancel button for .Net MAUI SearchBar control for iOS using MAUI handlers?

In .Net MAUI using handlers how can I hide "Cancel button" for SearchBar control when user enters text in SearchBar for iOS? In Xamarin forms this we had implemented using custom renderer like below: protected override void…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
993 questions
asked 2023-03-06T09:45:07.69+00:00
Muffadal Khopoliwala 1 Reputation point
commented 2023-03-06T10:26:26.6033333+00:00
Muffadal Khopoliwala 1 Reputation point
1 answer

Required a Jquery | suming checkbox in aspx form

Hi, I have two gridvies, with one Label <asp:Label ID="Gender" runat="server"></asp:Label> If Lable having Gender Value is "Male" then count Limit is 2 if "Female" then count limit 4 Grid-1 …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,280 questions
asked 2023-03-05T02:53:34.9066667+00:00
Aypn CNN 386 Reputation points
commented 2023-03-06T09:56:55.7033333+00:00
Aypn CNN 386 Reputation points
1 answer

How to test a subdomain / webpage in VS, with localhost

Hi, I'm building a ASP.NET MVC app, using VS2019. For this app, the url in Prod should be: www.myapp.com; and the functionality for this application requires a list of pages customied for each client, for example: For client 1, they should go to:…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
690 questions
asked 2023-02-20T15:19:24.94+00:00
Claudia Pinson 41 Reputation points
commented 2023-03-06T09:53:14.7+00:00
Lan Huang-MSFT 10,156 Reputation points Microsoft Vendor
2 answers

how to automatically redirect to a page when the session has timeout?

I have a session timeout page, but I don't have an idea on how to automatically redirect to a page when the session has timeout? program.cs builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options => { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,737 questions
asked 2023-03-04T06:16:58.2533333+00:00
winanjaya 61 Reputation points
edited an answer 2023-03-06T09:38:12.1+00:00
Jerry Fu - MSFT 1 Reputation point Microsoft Vendor
1 answer

Invoking azure functions server SignalR group functions from ASP.NET Core Client

I am trying to invoke azure functions server SignalR group functions from an ASP.NET Core client. The server side code that I am trying to invoke via an ASP.NET Core client can be found in this article. I have not found a single reference of a C#…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,737 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
77 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,705 questions
asked 2023-02-22T11:00:39.4466667+00:00
Bubba Jones 151 Reputation points
commented 2023-03-06T09:26:26.2933333+00:00
Bubba Jones 151 Reputation points
2 answers

How to reset all input fields in the selected TabItem from a TabControl (WPF/C#)

I have a WPF page, In that page I have inserted a TabControl with 2 TabItems (Add / Update). In each TabItem I could have several "fields" of different types as for example TextBlock, DatePicker, ComboBox, CheckBox.... I would like to introduce…

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.
7,330 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
771 questions
asked 2023-03-01T15:04:56.23+00:00
Dimitri Garmaise 161 Reputation points
answered 2023-03-06T09:25:59.14+00:00
Jack J Jun 20,691 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Call the Button OnClick method generically?

Is it possible to call the Button OnClick method generically? I have tried the following, unfortunately nothing has worked: <Button Type="primary" OnClick="() => OnClick_Reload<CustomerModel>()" /> <Button…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,737 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.
844 questions
asked 2023-03-05T10:58:23.2+00:00
perfect code 251 Reputation points
commented 2023-03-06T09:22:47.1966667+00:00
perfect code 251 Reputation points