Microsoft Q&A

.NET

14,121 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

14,121 questions with .NET-related tags

Sort by: Updated
1 answer

visual studio pair to mac stuck on connecting

I was able to connect Microsoft Visual Studio 2022 ver (17.5.3) to Ventura ver 13.3 Mac OSX running in docker image and I never used to have any issues until I had to reformat my pc, since then I have hit a bit of a wall. The iOS simulator launches in…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,111 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
905 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
1,949 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
4,154 questions
asked 2023-03-31T02:28:59.3033333+00:00
Patrick Hume 0 Reputation points
commented 2023-03-31T20:04:43.66+00:00
Patrick Hume 0 Reputation points
1 answer

Post API gives error on sending the request

Hello, I tried to post to API but the C# code give me error "Failed to connect to localhost/127.0.0.1:7091" while if I tried to use Postman , it will work, for the recieved Json in APIService…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,111 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,621 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.
171 questions
asked 2023-03-31T17:19:41.24+00:00
ahmed omar 121 Reputation points
commented 2023-03-31T18:32:09.7133333+00:00
Jaliya Udagedara 2,686 Reputation points MVP
1 answer

when connect to db2 database it balzor form hangs and stuck ?

I working on blazor web application working on two database sql server and db2 i face issue when connecting to db2 to get some data data retrieved slowly and some times hang and stuck so i need to make best idle case to handle connection issue to db2…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,854 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.
890 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,621 questions
asked 2023-03-30T07:14:35.2433333+00:00
Ahmed Salah Abed Elaziz 105 Reputation points
commented 2023-03-31T18:19:19.02+00:00
Ahmed Salah Abed Elaziz 105 Reputation points
0 answers

Blazor WASM Hosted Azure AD Application crashes after receiving Token

I have a Blazor WASM Hosted App that is using Azure Active Directory using the MSAL nuget package. During the login process, after receiving the access token, the application crashes with a JSON Parsing error. Have worked through the online walk…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
890 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,679 questions
asked 2023-03-16T02:06:53.79+00:00
David Reckner 0 Reputation points
commented 2023-03-31T18:00:40.24+00:00
Bruce (SqlWork.com) 31,741 Reputation points
1 answer

Can SQLBulkCopy be nested transaction?

Hi, I like to archieve a single transaction commit after running Project A update statement and Project B SQLBulkCopy. Is it possible for SQLBulkCopy to be nested inside Project A transaction? I have try pass in Project A SqlTransaction and use inside…

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,621 questions
Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
231 questions
asked 2023-03-31T10:23:58.24+00:00
HAN MING ONG 21 Reputation points
answered 2023-03-31T17:39:59.7933333+00:00
Bruce (SqlWork.com) 31,741 Reputation points
1 answer

Android Google code scanner API bindings

Hello, recently Google upgraded the code scanner API from beta to GA. This is something we are really interested in our .NET 7 Android app. When can Microsoft release the C# bindings to access this library? What is the best place to request something…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,935 questions
asked 2023-03-31T04:22:22.2066667+00:00
Nikolayev, Alex 1 Reputation point
edited the question 2023-03-31T17:34:46.5533333+00:00
Rob Caplan - MSFT 4,237 Reputation points Microsoft Employee
0 answers

Blazor Server App crashes if DBContext is used

I have a Blazor Server App that runs fine in the VS Web Server but crashes hard when deployed to an IIS 10 Web Server running on a Windows Server 2022 Machine. I have reviewed my use of Entity Framework DBContexts and all are created and disposed very…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,854 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.
890 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
480 questions
asked 2023-03-31T17:31:54.6466667+00:00
Jim G 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to use NET MAUI releases with different NET versions

I am working on small tool using NET MAUI, but I am struggling to understand Microsoft's way of working on NET versions. While working on my tool, I have came up with certain bugs and reported them to Microsoft. Now they have fixed them. However I am…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,111 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,621 questions
asked 2023-03-26T14:31:48.4366667+00:00
mrw 181 Reputation points
commented 2023-03-31T17:29:26.4833333+00:00
mrw 181 Reputation points
1 answer

Problems with Android emulator V33

After a couple of deploys I am getting the following error. I am not doing anything unusual and V31 does not have this error. Severity Code Description Project File Line Suppression State Error ADB0060: Mono.AndroidTools.InsufficientSpaceException:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,111 questions
asked 2023-03-31T13:10:46.13+00:00
Lloyd Sheen 936 Reputation points
commented 2023-03-31T17:29:06.39+00:00
Lloyd Sheen 936 Reputation points
1 answer

Blazor WASM Authentication (MSAL) and profile editing

I setup a profile editing user flow in Azure AD B2C active directory. I successfully setup a Blazor WASM application to redirect the user to the Azure endpoint. The user can successfully change information in the Azure page, but I cannot setup the Blazor…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
890 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,679 questions
asked 2023-03-31T09:32:00.7266667+00:00
Roberto 1 Reputation point
answered 2023-03-31T17:28:57.3633333+00:00
Bruce (SqlWork.com) 31,741 Reputation points
1 answer

Windows version / .NET Framework

Hello, I want to know which Windows version is installed and which .NET Framework version. How and with which function can I read it? My system Win10, VS2019.

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,621 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
905 questions
asked 2023-03-31T16:55:35.1166667+00:00
Markus Freitag 3,101 Reputation points
answered 2023-03-31T17:27:56.9533333+00:00
Jaliya Udagedara 2,686 Reputation points MVP
1 answer

angular loop form problem

HI so i am trying to develop an attendance system in asp.net core web api and angular as front end now ill provide the code first First the form: <form [formGroup]="attendanceForm" (ngSubmit)="onSubmit()"> <section…

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.
469 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,336 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.
171 questions
asked 2023-03-30T10:07:12.6+00:00
Asjad Butt 61 Reputation points
edited an answer 2023-03-31T17:21:01.39+00:00
Bruce (SqlWork.com) 31,741 Reputation points
2 answers

ASP net core cors put method problem

Hello, I have a problem i wrote a Controler and a website. The website is under the main domain https://abc.com, my services are in subdomains https://subdomain.abc.com. I configured cors, GET and POST methods are working, but PUT makes…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,854 questions
asked 2021-11-10T19:19:57.86+00:00
Stephan Gimm 1 Reputation point
answered 2023-03-31T17:15:47.2433333+00:00
Bruce (SqlWork.com) 31,741 Reputation points
0 answers

How can I figure out what nuget package is throwing an error about Xamarin.Android.Support.v4 no longer supported?

I have an old Xamarin.Forms app for iOS and Android that I am trying to upgrade to work on the latest Android OS. When I build I get these errors: …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,935 questions
asked 2023-03-27T21:22:32.47+00:00
Tony Pitman 21 Reputation points
commented 2023-03-31T16:57:54.2533333+00:00
Tony Pitman 21 Reputation points
0 answers

ASPX Web page Calendar will not show the top < Month > bar

Dragging in a simple calendar from the tool box (Vb not C#), I cannot seem to get the top < Month> bar to show on the calendar. Am I missing an Import code or web.config file code that tells this calendar what month this is? Never had this problem…

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.
469 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,336 questions
asked 2023-03-31T16:05:50.67+00:00
Chuck Vensel 0 Reputation points
2 answers One of the answers was accepted by the question author.

Plugin.FirebasePushNotification not refreshing token

I am using the FirebasePushNotification plugin in my xamarin forms app, and I followed all the instruction for the set up. https://github.com/CrossGeeks/FirebasePushNotificationPlugin This is the third app where i use it, but it's never firing the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,935 questions
asked 2021-01-26T04:30:16.823+00:00
Stesvis 1,036 Reputation points
answered 2023-03-31T15:29:22.6466667+00:00
Leone Boavendura 0 Reputation points
0 answers

Swagger UI How to generate documentation

Hi there, In my ASP.NET Core 6 Web API application I am using Swagger UI. I wonder if I can somehow generate a PDF document from Swagger? Or any other ways to do it? Thank you. builder.Services.AddSwaggerGen(c => { c.EnableAnnotations(); …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,854 questions
asked 2023-03-31T14:53:12.61+00:00
Cenk 806 Reputation points
3 answers

How to achieve non-blocking processing in a Web API method?

I have a Web API with the MyWebApiMethod in it. Inside this method I want the following to happen: Start LogicA, wait for it to finish and then proceed to step 2. Start LogicB and proceed to step 3. without waiting for LogicB to finish Return an OK…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,854 questions
asked 2023-03-30T11:33:08.0466667+00:00
Frank Nátán 25 Reputation points
answered 2023-03-31T14:17:35.3866667+00:00
greably 0 Reputation points
0 answers

Why is Microsoft.CSharp.dll not signed using VS Mac?

If building a solution targeting an iPhone directly on a Mac or remotely via the Mac from a PC, the following errors are encountered. However, building the same code directly to the iPhone, it succeeds. Both VS's are latest versions with latest updates.…

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,621 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,111 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,815 questions
asked 2023-03-30T13:48:17.7333333+00:00
Marc George 66 Reputation points
commented 2023-03-31T14:13:29.56+00:00
Marc George 66 Reputation points
1 answer

/storage/emulated/0/BatchFiles" System.UnauthorizedAccessException: 'Access to the path '/storage/emulated/0/BatchFiles' is denied.

I get the following error when try to create a file in external storage in a android Xamarin in Visual studio 2022, android version is 12. /storage/emulated/0/BatchFiles" System.UnauthorizedAccessException: 'Access to the path…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,935 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
905 questions
asked 2023-03-28T18:04:36.1833333+00:00
Lou, Kecheng 0 Reputation points
commented 2023-03-31T13:07:20.0233333+00:00
Lou, Kecheng 0 Reputation points