Microsoft Q&A

.NET

15,387 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

15,387 questions with .NET-related tags

Sort by: Updated
0 answers

SQL Bulk Copy performance is too low while downloading data from URI

I am downloading the data from third party API Application. The main concern of the data will be increasing in day to day activity in this application. past few days i am facing issue such as, for downloading data is to taking too much time (nearly more…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,178 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,243 questions
asked 2023-06-09T17:42:46.8466667+00:00
Gani_tpt 1,321 Reputation points
commented 2023-06-10T01:29:23.3233333+00:00
Gani_tpt 1,321 Reputation points
1 answer

Json bringing back unwanted properties

WebAPI Core (.Net 6) I have a Model class which contains multiple properties. The properties can have empty values. Only the ones i need should be produced. public class ClientFocus { public string? Item {get; set;} public string?…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,173 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,243 questions
asked 2023-06-09T13:46:25.44+00:00
Keith Viking 20 Reputation points
edited an answer 2023-06-10T00:02:31.2333333+00:00
Bruce (SqlWork.com) 36,581 Reputation points
2 answers

B2C application unable to retrieve roles assigned to a user

Hello, In my B2C app, I have a user that has been assigned multiple administrative roles. I've created a policy for the administrator role but am unable to retrieve any roles for this user. I'm using dotnet 7.0. I have two problems:. Assigning the Admin…

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,908 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,173 questions
asked 2023-06-08T17:51:58.48+00:00
AKJ 20 Reputation points
commented 2023-06-09T23:03:26.55+00:00
AKJ 20 Reputation points
2 answers

Net Maui carouselview time span problem

All working fine but check and please correct the first image show and quickly passing second image must be same as the others time span .. how we can solve it? Thanks public Carousel() private void Carousel_Loaded(object sender, EventArgs e) { …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,441 questions
asked 2023-06-06T03:07:48.3666667+00:00
Sami 341 Reputation points
commented 2023-06-09T22:12:56.7433333+00:00
1 answer

Azure Synapse Analytics - AccessDeniedException -> 6002 & 403 Errors from Firewall rules

When I added firewall rules I get those errors. From Pipeline "errorCode": "6002", "message": "Exception: Failed to create Livy session for executing notebook. Error: Received exception with…

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
997 questions
Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
404 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
3,130 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,178 questions
asked 2022-10-10T15:53:07.203+00:00
Prodand 1 Reputation point
edited a comment 2023-06-09T21:57:02.71+00:00
Jiehwan Yang 0 Reputation points
0 answers

How to fix Xamarin Binding Library warning BG8401: Skipping due to a duplicate nested type name

Hi, I have trouble with the class that I need to use on the application where the field that I need to use is not generated due to this warning BG8401. I've been working on this Here Navigate SDK and able to see that the api.xml is created correctly but…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,015 questions
asked 2023-06-09T20:36:43.7966667+00:00
Ryan 0 Reputation points
1 answer

How to create Relay command in Master Page ViewModel

MASTER PAGE(XAML) <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,441 questions
asked 2023-06-09T07:26:53.1566667+00:00
Sowndarrajan Vijayaragavan 100 Reputation points
answered 2023-06-09T20:24:05.16+00:00
Rob Caplan - MSFT 4,867 Reputation points Microsoft Employee
0 answers

provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified

I get the error message when I try to connect to the SQL Server 2005 Database from VisualStudio 2022 and .Net 6 Project (winform). my project is winform with .net 6 .when i want to connect to remote server that is sql 2005 ,i get error : 26 - Error…

.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
506 questions
asked 2023-05-24T16:18:10.3566667+00:00
Mohsen Mohammadi 0 Reputation points
commented 2023-06-09T17:54:45.6666667+00:00
Mohsen Mohammadi 0 Reputation points
0 answers

Discontinue a trial Teams product

i need help getting to Microsoft to discontinue my accidental subscription to the Teams trial.

.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.
50 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,243 questions
asked 2023-06-09T17:47:52.33+00:00
Christina Castano 0 Reputation points
1 answer

Blazor Server - How to get the latest uploaded file?

Hi there, In my Blazor Server application, I am uploading an Excel like this; public async Task<int> UploadStocksFile(IFormFile file) { var untrustedFileName = file.FileName; var totalRows = 0; var duplicates = 0; …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,173 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.
989 questions
asked 2023-06-08T07:47:48.7133333+00:00
Cenk 886 Reputation points
edited an answer 2023-06-09T17:14:21.4566667+00:00
Bruce (SqlWork.com) 36,581 Reputation points
1 answer

How to fix "WriteCodeFragment" error when build .net core

When I run .net core api project "6.0" on mac I got this error " usr/local/share/dotnet/sdk/7.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(5,5): Error MSB4018: The "WriteCodeFragment" task…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,173 questions
asked 2023-06-09T16:32:20.0833333+00:00
Soaad Abdelaziz 0 Reputation points
answered 2023-06-09T17:03:12.7266667+00:00
Bruce (SqlWork.com) 36,581 Reputation points
2 answers

Blazor Reconnection Issue After Locking Smartphone

I'm experiencing a problem with my Blazor Server application and I need your help. When I access my website on a smartphone and lock the device for some time, upon unlocking it, seems that the Blazor connection gets lost at that moment and tries to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,173 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.
989 questions
asked 2023-06-07T10:57:22.6633333+00:00
Happy Development 10 Reputation points
edited a comment 2023-06-09T16:24:15.3266667+00:00
Bruce (SqlWork.com) 36,581 Reputation points
0 answers

how can we create vertical Tabbar or Menu items in MAUI?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,441 questions
asked 2023-06-09T16:15:01.55+00:00
Sowndarrajan Vijayaragavan 100 Reputation points
0 answers

form responses showed in website

How do I make a website that uploads automatically the answers of a form?

Azure SQL Database
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.
560 questions
asked 2023-06-09T12:10:29.4066667+00:00
Noah 0 Reputation points
commented 2023-06-09T15:48:30.5+00:00
Alberto Morillo 28,036 Reputation points MVP
1 answer

When Microsoft will release Entity Framework 6.x (.NET Full framework) having Microsoft.Data.SQLClient support?

We are migrating our .NET Full framework 4.8 based Data Access Layer projects from System.Data.SQLClient to Micosoft.Data.SQLClient. While it is very straightforward for AD0.NET based projects, we do have some projects where we are also using EF 6.0. As…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
246 questions
asked 2023-06-05T07:36:18.9+00:00
Buch, Dishant 0 Reputation points
commented 2023-06-09T15:47:54.15+00:00
Franche 0 Reputation points
0 answers

VB.NET Entity Framework Using multiple databases

I'm trying to setup Entity Framework 6 in my VB.Net desktop application. I can get it working fine using Production database, but, this is a program where you can login to either production or the test database. When I created the model, I set it up to…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
246 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,178 questions
asked 2023-06-09T15:41:14.4233333+00:00
Joseph Mancini 41 Reputation points
1 answer One of the answers was accepted by the question author.

System.Net.Http.UnsupportedMediaTypeException: 'No MediaTypeFormatter is available to read an object of type 'IEnumerable`1' from content with media type 'text/html'.'

I am getting Unsupported Media Type Exception whenever I am doing a get request on MVC side on [http://localhost:52541/Employee/Index] . Please check my code and help me to solve the issue EmployeeController.cs from MVC using System; using…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
858 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,243 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.
207 questions
asked 2023-06-07T01:10:48.87+00:00
Amritpal Singh 20 Reputation points
accepted 2023-06-09T15:28:04.7666667+00:00
Amritpal Singh 20 Reputation points
0 answers

.net maui change Android and iOS overview icon

In .net maui Android when the "Overview" button in clicked an Icon is shown. How do I change that icon ? On iOS how to change the ".NET" to something else ?:

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,189 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,441 questions
asked 2023-06-08T16:10:47.48+00:00
Eigil Krogh Sorensen 61 Reputation points
commented 2023-06-09T15:09:48.0833333+00:00
Eigil Krogh Sorensen 61 Reputation points
0 answers

How to fix bug of iOS of KeyboardOverlapRenderer

AppDelegate.cs KeyboardOverlapRenderer.Init(); After opening the website with webview function, when inputting with the text keyboard, it is difficult to enter the content as it rises above the content. AppDelegate.cs: public override bool…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,015 questions
asked 2023-06-08T00:23:06.7433333+00:00
Westview Investment 0 Reputation points
commented 2023-06-09T15:02:41.0833333+00:00
Westview Investment 0 Reputation points
0 answers

No forms appearing in custom template VS 2022 Mac or PC

I have been looking over the material for the new templating engine, https://learn.microsoft.com/en-us/dotnet/core/tutorials/cli-templates-create-item-template and https://github.com/dotnet/templating/tree/main, and have created a .template.json file…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,178 questions
asked 2023-06-02T18:42:29.7566667+00:00
Gregory Lange 0 Reputation points
commented 2023-06-09T14:56:33.8633333+00:00
Gregory Lange 0 Reputation points