Microsoft Q&A

.NET

14,084 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

4,316 questions with .NET-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

Access Control

Good morning, I am working on a .NET Core 6, SQL Server project and I need some idea of how to implement permissions by fields, let me explain: in a form, for example, that has [Name, Surname, Date, Address, Gender] to be able to assign in an access…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
743 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
897 questions
asked 2023-03-23T12:15:43.6866667+00:00
Juan A. Reyes Paulino 0 Reputation points
accepted 2023-03-29T19:12:26.49+00:00
Juan A. Reyes Paulino 0 Reputation points
2 answers One of the answers was accepted by the question author.

The type or namespace name 'Platform' does not exist in the namespace 'Microsoft.Maui.Graphics' (are you missing an assembly reference?)

I am using Visual Studio Community 2022 64 bit 4.8.04161 on Windows 11 Pro. I need to be able to draw an image at a particular location. I am attempting to use the documentation at…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,100 questions
asked 2023-03-16T20:44:11.47+00:00
Randy Clegg 0 Reputation points
accepted 2023-03-29T18:10:48.2166667+00:00
Randy Clegg 0 Reputation points
1 answer One of the answers was accepted by the question author.

The MAUI GraphicsViewDemos image draw causes iOS app to abort

The GraphicsViewDemos app found at https://github.com/dotnet/maui-samples/tree/main/6.0/UserInterface/Views/GraphicsViewDemos aborts on iOS when the "Image paint" option is selected.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,100 questions
asked 2023-03-28T15:34:32.3233333+00:00
Randy Clegg 0 Reputation points
accepted 2023-03-29T18:09:44.77+00:00
Randy Clegg 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to use a auto ml pickle file from azure studio in a c# .NET api?

Hello to all, I am currently working on a Machine Learning project, I have launched the auto ML of Microsoft Azure Studio on my data and I have downloaded the best model in a folder with the appropriate Pickle file. However I would like to use this…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
897 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
243 questions
asked 2023-03-29T08:53:34.17+00:00
AMROUN Lysa 81 Reputation points
commented 2023-03-29T17:37:17.2166667+00:00
romungi-MSFT 30,046 Reputation points Microsoft Employee
3 answers One of the answers was accepted by the question author.

Printing a div card with exact styles as it appears on the web page

On my web form, I have these div card where there are labels with values, and two image controls. The labels on the card can have their font-family and color changed by the user o the client side to the desire of the user, using controls provided to do…

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.
464 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
897 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,327 questions
asked 2023-03-25T13:15:41.9733333+00:00
Donald Symmons 1,266 Reputation points
accepted 2023-03-29T16:39:07.1833333+00:00
Donald Symmons 1,266 Reputation points
1 answer One of the answers was accepted by the question author.

passing data from view model not working

Hello , I have this text field <Border BindingContext="{Binding Source={RelativeSource TemplatedParent}}" StrokeThickness="0" StrokeShape="RoundRectangle 10"> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,100 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,603 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.
602 questions
asked 2023-03-28T23:18:53.59+00:00
ahmed omar 101 Reputation points
accepted 2023-03-29T14:36:49.1433333+00:00
ahmed omar 101 Reputation points
1 answer One of the answers was accepted by the question author.

Show Pop Up for entering Data

Hi Friends. I want to show a Modal Pop Up to get data from the user. Is there a base class for a Pop Up View and Can I use a RelayCommand to display the Pop up? Thanks !!!!

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,100 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,603 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.
602 questions
asked 2023-03-28T20:06:05.7666667+00:00
Ronald Rex 631 Reputation points
accepted 2023-03-29T13:47:07.51+00:00
Ronald Rex 631 Reputation points
2 answers One of the answers was accepted by the question author.

Java.Lang.NoClassDefFoundError com.google.android.exoplayer2.source.ConcatenatingMediaSource

I use Xamarin MediaManager version 1.2.2 to play songs in my Android and iOS applications: https://github.com/Baseflow/XamarinMediaManager But the problem is that it is not working in every Android project. For example, it works in a new empty Android…

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,603 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,100 questions
asked 2023-03-06T09:51:29.5066667+00:00
Kim Strasser 561 Reputation points
commented 2023-03-29T11:05:33.0033333+00:00
Kim Strasser 561 Reputation points
2 answers One of the answers was accepted by the question author.

CS1579 - - foreach statement cannot operate on variables of type 'object'

Hello, I have the following C# code in the ContactsViewModel.cs of a .NET MAUI app: - public void ReadContacts() { var contacts = Contact.GetContacts(); Contacts.Clear(); foreach (var contact in contacts) //…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,100 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,603 questions
asked 2023-03-13T16:01:55.2133333+00:00
wire_jp 91 Reputation points
accepted 2023-03-29T10:48:33.7066667+00:00
wire_jp 91 Reputation points
1 answer One of the answers was accepted by the question author.

CS1061 errors in converting a MySQL Server code to MS SQL Server code

Hello, I am converting some MySql Server Code to MS SQL Server code in a .Net Maui app which I am working on. I received three instances of CS1061 errors in a Contact.cs file as shown below: - public static bool CheckIfUserExists(Contact contact) …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,100 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
897 questions
asked 2023-03-12T17:28:10.6033333+00:00
wire_jp 91 Reputation points
commented 2023-03-29T10:48:03.2366667+00:00
wire_jp 91 Reputation points
1 answer One of the answers was accepted by the question author.

How to update appSetting for a Background Service (Service Worker) (.NET 6)

Hello, I came to ask you for your help, please. I have created a Worker Service which periodically deletes files in a folder. My path to the folder is stored in an App.config file, I read the value via ConfigurationManager. It works, but I want to be…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 questions
asked 2023-03-28T12:34:00.33+00:00
tma9 21 Reputation points
commented 2023-03-29T09:37:38.9933333+00:00
tma9 21 Reputation points
2 answers One of the answers was accepted by the question author.

Custom configuration provider with sqlserver

Hi everyone, I need to create my own customized provider configuration with a sqlserver database in order to offer my client (who manages his website) to change some settings. My idea is to use the settings in the json file for the "system"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 questions
asked 2023-03-27T11:11:05.1166667+00:00
Salvatore Sanollo 20 Reputation points
accepted 2023-03-29T06:20:47.8866667+00:00
Salvatore Sanollo 20 Reputation points
1 answer One of the answers was accepted by the question author.

How to upgrade Xamarin native Mac application project to Mac .NET macOS application project

I find out 3 template in VS2022 for Mac, The first one is Mac .NET macOS Application, the second one is Mac .Net Mac Catalyst Application and the third one is Multiplatform .NET MAUI project. In order to upgrade and migrate my Mac Xamarin native project…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,932 questions
asked 2023-03-28T01:47:58.44+00:00
Sun, Tracy (LNG-SHA) 40 Reputation points
commented 2023-03-29T06:02:00.2066667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,591 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to bind table data dynamically to pdfmake table body using jquery

I have created a HTML Table and I want to download selected columns into pdf using pdfmake below is my code example html code :- <div id="tablediv"> <table id="stockalloctbl_1"> <thead> <tr…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,327 questions
asked 2023-03-27T10:52:54.96+00:00
Ashok Kumar 141 Reputation points
accepted 2023-03-29T05:18:00.62+00:00
Ashok Kumar 141 Reputation points
1 answer One of the answers was accepted by the question author.

Net Maui CollectionView, Image Source

I have a CollectionView in .Net Maui, and this collectionview has items as Label and Image, ImageSource i am getting from URL, also I have bottom tabs, and when I am switching tabs and come back to parent tab, all images are lost in collectionview

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,100 questions
asked 2023-03-26T13:22:06.6733333+00:00
accepted 2023-03-29T03:44:50.6266667+00:00
3 answers One of the answers was accepted by the question author.

saving png image to the database

I am trying to save a .png image to the database. I have a field in database called sign with type varbinary(max) and I have following in the Model: public partial class EmployeeInfo { public int EmployeeInfoId { get; set; } public byte[]? Sign { get;…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 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,603 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
743 questions
asked 2023-03-24T01:13:31.4566667+00:00
Anjali Agarwal 656 Reputation points
accepted 2023-03-29T02:29:20.91+00:00
Anjali Agarwal 656 Reputation points
1 answer One of the answers was accepted by the question author.

Create Audio and Video Streaming with Xamarin Forms

Hi to all, I would like to create an audio and video call streaming between 2 apps, a simple one to one call with Xamarin Forms. I have seen this Azure streaming…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,932 questions
Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
345 questions
asked 2023-02-03T14:37:16.5833333+00:00
vanKraster 176 Reputation points
commented 2023-03-28T23:53:26.12+00:00
Rob Caplan - MSFT 4,237 Reputation points Microsoft Employee
11 answers One of the answers was accepted by the question author.

How to convert xml to style so that browser can render html from xml when using RSS

I have downloaded a app called MessageBoard and trying to configure RSS Feed to output serialised data to browser. The result display a error message with code written in xml format. This XML file does not appear to have any style information associated…

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.
464 questions
asked 2023-01-30T01:05:53.09+00:00
peter liles 411 Reputation points
answered 2023-03-28T22:28:04.0866667+00:00
1 answer One of the answers was accepted by the question author.

error when I tried to findBy string in API

Hello, currently, I'm learning Swagger, when I tried to create find by username ,I got the below error [HttpGet] [Route("{fullname:string}")] public async Task<IActionResult> signIn([FromRoute] string…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 questions
asked 2023-02-02T20:42:16.4033333+00:00
ahmed omar 101 Reputation points
accepted 2023-03-28T22:09:46.64+00:00
ahmed omar 101 Reputation points
1 answer One of the answers was accepted by the question author.

.Net MAUI , restore deleted platform

Hello , I deleted by mistake the windows application from.net Maui platform. is there any way to add the windows form again?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,100 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,603 questions
asked 2023-03-28T15:37:13.6333333+00:00
ahmed omar 101 Reputation points
commented 2023-03-28T22:09:05.07+00:00
ahmed omar 101 Reputation points