Microsoft Q&A

.NET

12,951 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,951 questions with .NET-related tags

Sort by: Updated
1 answer

Is there a Event handler available on .Net / c++ /c# for Wireless profile added event and deleted event?

I want to register a Windows app for listening to Wireless profile changes (Addition or Deletion) performed on Windows settings or by executing netsh commands from CMD. Is there any event handler available for the same? If yes, how to register for the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
895 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
433 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
1,895 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.
956 questions
.NET Internet of things
.NET Internet of things
.NET: Microsoft Technologies based on the .NET software framework.Internet of things:
22 questions
asked 2023-02-01T15:48:01.6966667+00:00
Shivanand Rao A V 0 Reputation points
answered 2023-02-01T17:52:29.03+00:00
Castorix31 65,461 Reputation points
0 answers

sslPort in launchsetting.json only works with port 44308 - ASPNETCORE MVC

Below is my launchsettings.json file. When I define sslPort 44308. I am able to browse https://localhost:44308. But if I define any other port let's say "44309". It is not working and browser throwing error stating "This site can't be…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,549 questions
asked 2023-02-01T17:45:37.97+00:00
Amit Rawat 526 Reputation points
1 answer

Will Xamarin Native be supported in MAUI world

Hello. I've found official end-of-support date for Xamarin: https://dotnet.microsoft.com/en-us/platform/support/policy/xamarin But I've heard, tht Xamarin Native is technology behind MAUI, and it will continue to be supported after that date. It will be…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
895 questions
asked 2023-02-01T12:25:06.19+00:00
Сергей 0 Reputation points
answered 2023-02-01T17:41:40.37+00:00
Rob Caplan - MSFT 4,026 Reputation points Microsoft Employee
0 answers

EF Core 6 - Adding records based on a condition

Hi friends, In my Blazor server application, I am inserting BulkPurchaseRequest records into DB as follows. public class BulkPurchaseRequestsRepository : IBulkPurchaseRequestsRepository { private readonly OyunPalasContext _oyunPalasContext; …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,549 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.
787 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
422 questions
asked 2023-02-01T17:33:09.4066667+00:00
Cenk 666 Reputation points
0 answers

How to convert existing solution to use Shell

I have a solution that does not use Shell. I would like to change it so that it uses shell. I created a new solution and copied the AppShell.xaml and .cs. I changed the namespace to the correct namespace. I then changed the app.xaml.cs to: …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
895 questions
asked 2023-01-31T14:51:43.6833333+00:00
Lloyd Sheen 756 Reputation points
commented 2023-02-01T17:32:35.7366667+00:00
Lloyd Sheen 756 Reputation points
0 answers

How create a Xamarin Android distro than can be sideloaded?

I have done this before. I believe in Android Porject->Properties->Archive I used to be able to create an APK that could then be sideloaded from a shared Windows server onto an Android device. I am now on VS 2022 and it seems the only Archive…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
asked 2023-02-01T17:24:30.1866667+00:00
Charles Mills 26 Reputation points
0 answers

C# TcpClient/TcpListener / Full Duplex Communication / Sample

Hello! I have already asked. There must be a good example of Socket, TcpClient, TcpListener that does the following. Duplex operation between client and server Automatic reconnection On 10 failed attempts, error message. Read until the root element…

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.
6,961 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
620 questions
asked 2023-02-01T17:23:47.48+00:00
Markus Freitag 2,961 Reputation points
0 answers

How to set ZKTECO USB fingerprint Reader as Windows Biometric Login terminal

Hi I have ZKTECO USB fingerprint Reader ZK9500R & i want to use it with my PC for Secure Biometric Login please Guide

.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
16 questions
asked 2023-02-01T17:22:41.46+00:00
jamal sultan 0 Reputation points
2 answers

Deserialising a Json string throwing error in razor pages.

Hi , I have a jsonresult like shown below "{\r\n "AccessRights": [],\r\n "ADAttributes": [\r\n {\r\n \ "AD": "teenajohn",\r\n \ "ADFull": "",\r\n …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,549 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
422 questions
asked 2023-01-17T03:35:29.02+00:00
Blooming Developer 196 Reputation points
edited an answer 2023-02-01T17:19:50.9466667+00:00
PatriceSc 161 Reputation points
0 answers

WebRoot Directory is pointed at explicit path to Development Machine even on Server

I build my Dotnet 6 MVC application on my computer and copy it onto the server. Attempting to load the site results in a startup error. "DirectoryNotFoundException: C:\Users*username*\source\repos\projectname\projectname\wwwroot" It is…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,549 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,191 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
593 questions
asked 2023-02-01T17:06:01.12+00:00
0 answers

Overposting: Binding attribute v ViewModel

Is there a preference to methods to protect against over-posting between using the bind attribute or using a view model? The tutorial refers to VIewmodels as an alternative to using the binding attribute but does not suggest that it is better...just an…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,549 questions
asked 2023-01-18T18:09:10.0833333+00:00
Dean Everhart 381 Reputation points
commented 2023-02-01T16:50:28.5333333+00:00
Dean Everhart 381 Reputation points
0 answers

getting errors while migrating to MAUI

I have tried migrating existing forms project to MAUI I have used .NET Upgrade Assistant dotnet tool and ran these commands dotnet tool update --global upgrade-assistant upgrade-assistant upgrade <path to sln or csproj> --non-interactive…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
895 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
620 questions
Microsoft Intune iOS
Microsoft Intune iOS
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.iOS: An Apple mobile operating system.
17 questions
Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
29 questions
asked 2023-02-01T05:24:37.6933333+00:00
Satya 0 Reputation points
commented 2023-02-01T16:27:58.3333333+00:00
Satya 0 Reputation points
0 answers

Send Stream in WCF Callback

Hi All, I wanted to implement a Stream data transfer over wcf callback.Is there any way is to achieve this? My contract is something looks below. Thanks in advance. [ServiceContract(CallbackContract = typeof(IDataTansferCallback), SessionMode =…

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.
6,961 questions
Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
259 questions
asked 2023-02-01T15:52:13.6866667+00:00
la07k-4914 41 Reputation points
1 answer

How to share image along with text (both image and text) on same request using Xamarin essential

I want to share image file along with text in my mobile application. I am using Xamarin essential. but with this either I am able to share image or text. how to share both on a single request?

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.
6,961 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,813 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.
558 questions
asked 2023-02-01T13:28:35.8566667+00:00
Moon 1 Reputation point
answered 2023-02-01T14:27:45.0533333+00:00
Reza Aghaei 3,331 Reputation points Microsoft MVP
1 answer One of the answers was accepted by the question author.

MAUI - CollectionView and scrolling - not working with IOS emulators

Hi I have an issue with my App and CollectionView and scrolling, when testing with IOS emulators. The scrolling does not work on any IOS emulators if more than one page is displayed. It works fine with Android and Windows. Below is a snippet of…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
895 questions
asked 2023-01-01T20:41:30.207+00:00
Riffy 206 Reputation points
accepted 2023-02-01T14:23:13.64+00:00
Riffy 206 Reputation points
0 answers

iOS application getting crashed "Could not set up parent class, due to: Invalid generic instantiation"

In a .Net MAUI project app is getting crashed when I am deploying it on device. below is the exception I am getting Any idea why this is happening always?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
895 questions
asked 2023-01-31T09:28:45.81+00:00
Suyash Sadh 0 Reputation points
edited a comment 2023-02-01T14:19:32.0233333+00:00
Suyash Sadh 0 Reputation points
2 answers

404 issue to the file

Hi, Due to issue like What to adjust below? <body style="background-color: ???; background-image:url(beautiful_Currency0e.jpg);">

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
446 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.
400 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,191 questions
asked 2023-01-28T08:50:16.07+00:00
Peter_1985 1,831 Reputation points
edited a comment 2023-02-01T13:47:09.4833333+00:00
AgaveJoe 17,106 Reputation points
0 answers

Azure Function (.NET 7 Isolated) create an Azure Function App targeting .NET6?

Today I deployed a new Azure Function App targeting .NET 7 Isolated as framework on Azure. To create the resource on Azure I used the wizard present on Visual Studio 2022, so I both created the new resource and deployed it using VS2022. Going to view the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,549 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,590 questions
asked 2023-02-01T12:39:52.9166667+00:00
Pietro Matteo Peru 0 Reputation points
0 answers

Call Windows open popup/alert/dialog platform specific code

Hi, I would like to open from platform specific code an alert in Windows. I know I can do it from await Application.Current.MainPage.DisplayAlert("dad", "dsadas", "cancel"); but I want it from platform specific. So…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
895 questions
asked 2023-02-01T12:18:57.5133333+00:00
vanKraster 126 Reputation points
0 answers

Unable to find OpenReadstream in image upload functionality in blazor

Hi i am trying to get image url from selected images.The challenge i am facing here is i am not supposed to touch the  OnFilesChanged methode directly.I need to create a seperate class and access the original class items.How i can get image url of each…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
787 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.
6,961 questions
asked 2023-02-01T09:40:56.8366667+00:00
RAMAN RAGAVAN 46 Reputation points
edited a comment 2023-02-01T12:10:10.1633333+00:00
AgaveJoe 17,106 Reputation points