Microsoft Q&A

.NET

20,679 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,679 questions with .NET-related tags

Sort by: Updated
1 answer

System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing.

Hi, Everybody!... I am trying to parse the following XML…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,057 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,639 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.
8,989 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.
1,044 questions
asked 2023-09-27T22:41:28.2466667+00:00
Julio Bello 201 Reputation points
answered 2023-09-28T02:57:15.6266667+00:00
Lan Huang-MSFT 17,881 Reputation points Microsoft Vendor
0 answers

Unable to get provider com.microsoft.intune.mam.client.support.v4.content.MAMFileProvider

When trying to deploy an app using Microsoft.Intune.Maui.Essentials.android we get an exception as below. Java.Lang.RuntimeException: 'Unable to get provider com.microsoft.intune.mam.client.support.v4.content.MAMFileProvider:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,867 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.
167 questions
asked 2023-09-27T02:31:43.9166667+00:00
ANBALAGAN SARANYA 31 Reputation points
commented 2023-09-28T02:54:13.8+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,086 Reputation points Microsoft Vendor
1 answer

App permissions denied, even when manually set

I have been updating my app to comply with Googles requirements of API level, and permission use. It seems that no matter what I try, I cannot get any permissions in my app. I have tried two different methods (code below). I am never prompted to approve…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,158 questions
asked 2023-09-26T17:59:39.9433333+00:00
Jesse Knott 666 Reputation points
commented 2023-09-28T02:49:13.4233333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,086 Reputation points Microsoft Vendor
0 answers

Forward Binding i.e. reapply a binding

Is it possible to create an attached property containing a Binding/BindingBase & then apply it to a control i.e. forward a binding thru XAML. Example would be you can have global style that use attached properties & then local styles to set…

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,478 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.
8,989 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.
690 questions
asked 2023-09-27T17:51:57.8433333+00:00
Lars Larsson 16 Reputation points
edited a comment 2023-09-28T02:35:17.5333333+00:00
Hui Liu-MSFT 21,451 Reputation points Microsoft Vendor
0 answers

.Net MAUI alternate Nuget Package for Xam.Plugin.Iconize(Xam.FormsPlugin.Iconize)

We are using Xam.Plugin.Iconize(Xam.FormsPlugin.Iconize) in our Xamarin Forms project. i.e xmlns:iconize="clrnamespace:FormsPlugin.Iconize;assembly=FormsPlugin.Iconize" <iconize:IconImage WidthRequest="44" …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,158 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,867 questions
asked 2023-09-27T11:00:37.39+00:00
Jamal 0 Reputation points
commented 2023-09-28T02:29:37.5+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,086 Reputation points Microsoft Vendor
0 answers

Establishing SSL trust to SQL Server with an AWS Lambda (Linux Client)

Hey all. I'm trying to connect to a SQL Server 2019 instance from an AWS lambda. I'm using a self-signed certificate for the SQL instance. Our lambda is using Entity Framework Core 7.0.5 in .NET 6 (also tested Microsoft.Data.SqlClient 5.1 with the same…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
586 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,057 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.
10,970 questions
asked 2023-09-27T15:08:52.2+00:00
Farrell, Erik 0 Reputation points
commented 2023-09-28T02:23:07.91+00:00
Wenbin Geng 321 Reputation points Microsoft Vendor
2 answers

How to Optimize Database Interactions in Entity Framework Core?

I am using Entity Framework Core for database interactions in my .NET application. I am seeking advice on optimizing database queries and transactions for better performance and efficiency. Any tips or best practices would be appreciated.

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
586 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,057 questions
asked 2023-09-23T16:04:26.41+00:00
Kevin Beasley 0 Reputation points
commented 2023-09-28T02:18:46.0466667+00:00
Wenbin Geng 321 Reputation points Microsoft Vendor
0 answers

How to handle HTTP Status = 0?

Hi Our ASP.NET Core 6 Web API consume a 3rd party Web API, sometimes we get http status 0 and I don't know what does it mean?, I have tried to handle this using Polly but it doesn't arrive there? HttpResponseMessage httpRes =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,571 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.
8,989 questions
asked 2023-09-28T01:44:56.22+00:00
winanjaya 101 Reputation points
0 answers

staticwebapp.config.json is being ignored

I'm hosting a blazor wasm app in azure static web apps but my staticwebapp.config.json is being ignored. I've tried placing it in the root folder and /wwwroot. I'm deploying through visual studio This is the contents of the json file: { …

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,107 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
546 questions
asked 2023-09-27T11:27:57.19+00:00
Anton 0 Reputation points
commented 2023-09-28T01:27:30.3666667+00:00
Xinran Shen - MSFT 2,001 Reputation points Microsoft Vendor
0 answers

Visual Studio Community Version 17.7.4 Http Test 401 Errors

Since upgrading my Visual Studio Community edition to Version 17.7.4, I noticed that the method of sending requests in an http test document has changed in the UI from a green play button to a “Send Request” link. More importantly, since this update all…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,571 questions
asked 2023-09-27T14:23:59.85+00:00
John Reynolds 0 Reputation points
edited the question 2023-09-28T01:20:58.2166667+00:00
Anna Xiu-MSFT 18,796 Reputation points Microsoft Vendor
0 answers

How to get all active session of the logged in user in .net core mvc

I'm currently working on a .net 7 mvc project. How can I get all the active sessions of a logged in user in .net core mvc. This is my setup currently: builder.Services.AddDistributedSqlServerCache(options =>     {         options.ConnectionString =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,571 questions
asked 2023-09-28T00:58:48.76+00:00
John Russel Punio 0 Reputation points
0 answers

Design pattern ideas for large solution with multiple projects

Hello, I'm starting a new project in my company where 3-5 developers will be working on the same solution. I need help or ideas on how to build the base for this project (net core solution I guess) with Visual Studio and how to organize the multiple…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,571 questions
asked 2023-09-28T00:25:07.58+00:00
Jesus Sanchez 0 Reputation points
3 answers

Is there a way we can integrate .NET MAUI onto existing swift code project

I have an project which was developed in Swift using Xcode. Is there a way we can integrate .NET MAUI on to existing Swift project ?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,867 questions
asked 2023-03-23T01:01:48.7966667+00:00
Sam 0 Reputation points
answered 2023-09-27T23:38:53.54+00:00
Ruffin 0 Reputation points
2 answers

Conditional validation depending which MVC button pushed

I have a scaffolded form in MVC with two buttons, Save and Submit. I want conditional validation: Save, no validation; Submit, validation. In the cshtml I have: ... <td> @Html.EditorFor(model => model.DSCRPTN, new { htmlAttributes = new…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
987 questions
asked 2023-09-25T13:56:00.5533333+00:00
J Fisher 0 Reputation points
commented 2023-09-27T23:30:23.21+00:00
Bruce (SqlWork.com) 44,621 Reputation points
1 answer

MAUI: Listview isvisible property is not working from the code behind?

I am trying to show the selected image or file on my UI on a listview. So initially the listview's IsVisible I set to false and after picking item I set the IsVisible property to true. My problem is after picking item the listview is not visible on the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,867 questions
asked 2023-09-19T14:24:15.5166667+00:00
Sreejith Sreenivasan 391 Reputation points
commented 2023-09-27T22:59:25.7633333+00:00
Rob Caplan - MSFT 5,212 Reputation points Microsoft Employee
1 answer

How to fix ASP.NET Core with angular API 500 Internal Server Error when uploading file in Development Environment in azure app Service

I am trying to upload a file to the wwwroot folder, but it shows an API status code 500 internal server error in the development environment. It works on my local machine but not in my development environment.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,571 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
243 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,643 questions
asked 2023-09-27T15:11:44.74+00:00
Jithu Sebastian 0 Reputation points
commented 2023-09-27T21:32:50.24+00:00
Lex Li (Microsoft) 3,821 Reputation points
3 answers

Reinstall .NET Framework

Hello, i have problem with .Net framework, We have Windows Server 2019 and now after start ServerManager or for example azure tool for sync i get error about that i need .NetFramework 4.0 But when i dowload last version from MS and run install i get…

.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.
1,044 questions
asked 2022-04-19T10:45:47.12+00:00
Jartymyk Tomas 1 Reputation point
commented 2023-09-27T21:00:56.2866667+00:00
1 answer One of the answers was accepted by the question author.

WPF custom animation thread

Hello, I have a small simple WPF application (I am learing by doing). I made some custom drawing on a Canvas declared in XAML, by using code in the corresponding C# file. Now I want to access the canvas from another thread to be able to apply geometric…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,057 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,478 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
5,996 questions
asked 2023-09-16T17:21:29.6333333+00:00
Daniel Santos 20 Reputation points
accepted 2023-09-27T20:59:14.6566667+00:00
Daniel Santos 20 Reputation points
1 answer One of the answers was accepted by the question author.

Package Source v2 feed error

I have try to download a package on package manager with https://nuget.org as the source but it output a error as feed back. How can I fix that error? Severity Code Description Project File Line Suppression State Error [Package source] The V2 feed…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,057 questions
asked 2022-01-27T07:02:09.657+00:00
Wilson Au-Yeung 21 Reputation points
commented 2023-09-27T17:35:52.5833333+00:00
Serge-Thomas 0 Reputation points
1 answer One of the answers was accepted by the question author.

Blazor textarea setting issue

Hello all. how I do set a textarea element so it will have a specific width an height and that it's text will have a horizontal and vertical scrollable . I want that when user type text the line length be when user keying ENTER key. Thank you very much

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,107 questions
asked 2023-09-27T11:26:14.95+00:00
Haviv Elbsz 1,226 Reputation points
edited a comment 2023-09-27T17:15:29.9+00:00
AgaveJoe 520 Reputation points