Microsoft Q&A

.NET

14,116 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

14,116 questions with .NET-related tags

Sort by: Updated
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,852 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.…

.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,812 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,619 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

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-31T13:45:27.34+00:00
Lloyd Sheen 936 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.
904 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
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-31T12:54:59.7366667+00:00
Tony Pitman 21 Reputation points
0 answers

ASP.NET Compilation Error on Windows Server 2019 with .NET 4.8 and IIS10

Hello folks, I have strange behavior when migrating from ws2016 to ws2019. Both servers are supposed to host a WCF service, but the service is not running on the 2019. Error output is also not particularly informative. We already did a clean install…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
904 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,335 questions
Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
2,431 questions
asked 2023-03-31T12:54:58.2566667+00:00
DmitriyKobrinskiy-0284 0 Reputation points
2 answers

How to hide Navigation Bar on Xamarin Forms when using Tab Navigation (Shell)

Hi, I have created a Tabbed layout Xamarin project - which implements Xamarin.Forms.Shell framework for navigation. I simply want to hide the Navigation Bar on the pages. All the solutions I have read refer to either setting the following on the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,935 questions
asked 2021-04-08T16:17:20.62+00:00
Donovan Bell (Britehouse) 1 Reputation point
answered 2023-03-31T12:07:34.2066667+00:00
Sándor Radócz 1 Reputation point
0 answers

DataTrigget for NullOrWhite

Hi, How can I have a Label's DataTrigger for NullOrWhiteSpace like this: <Label x:Name="LabelMyState" Text="Add" VerticalOptions="Center"> <Label.Triggers> <DataTrigger TargetType="Label"…

.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-31T11:53:31.48+00:00
Jassim Al Rahma 1,206 Reputation points
1 answer

How to add image to Swagger UI

Hi, I wonder if there is a way to add an image to Swagger UI? Thank you.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,852 questions
asked 2023-03-31T06:58:07.17+00:00
Cenk 806 Reputation points
commented 2023-03-31T11:31:50.57+00:00
JasonPan - MSFT 1,306 Reputation points Microsoft Vendor
0 answers

How to Open Files on Xamarin Android Using FilePicker

using Xamarin.Essentials; (at the top of the file) async Task<FileResult> PickAndShow(PickOptions options) { try { var result = await FilePicker.PickAsync(options); if (result != null) { string Text…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,935 questions
asked 2023-03-21T13:53:33.71+00:00
Ronald GANS 136 Reputation points
commented 2023-03-31T10:59:32.9233333+00:00
Ronald GANS 136 Reputation points
1 answer One of the answers was accepted by the question author.

Why i am getting TypeInitializationException

Hi, Why I astarted getting the below error when running my iOS app? can anyone help please.. System.TypeInitializationException: The type initializer for 'Microsoft.Maui.Controls.Shapes.Shape' threw an exception. ---> System.MissingFieldException:…

.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-29T17:39:30.2266667+00:00
Jassim Al Rahma 1,206 Reputation points
accepted 2023-03-31T10:41:18.4166667+00:00
Jassim Al Rahma 1,206 Reputation points
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
.NET
Microsoft Technologies based on the .NET software framework.
904 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,111 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,149 questions
asked 2023-03-31T02:28:59.3033333+00:00
Patrick Hume 0 Reputation points
answered 2023-03-31T10:28:55.7133333+00:00
Limitless Technology 17,821 Reputation points
0 answers

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,619 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
1 answer One of the answers was accepted by the question author.

Check if the ContentPage is a MainPage

Hi, In .NET MAUI, how can I check the current page is a Mainpage? Thanks, Jassim

.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,619 questions
asked 2023-03-29T17:47:07.24+00:00
Jassim Al Rahma 1,206 Reputation points
accepted 2023-03-31T10:19:48.62+00:00
Jassim Al Rahma 1,206 Reputation points
1 answer

How to create query builder from dynamic multiple tables by ASP. Net Core?

I want to build a dynamic report by Asp.net core -EF-, that is received tables and columns names from user, and then create SQL query depended on theses inputs, to generate dynamic report, I searched how can create SQL query, but most ways were with one…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,852 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.
9,167 questions
asked 2023-03-29T08:16:19.6666667+00:00
Arwa Sami 0 Reputation points
answered 2023-03-31T10:19:23.9833333+00:00
Muhammad Ahsan Khan 0 Reputation points
1 answer One of the answers was accepted by the question author.

CS8012 - How to solve warning "Referenced assembly targets a different processor than the application"

I have built a .NET MAUI app in .net 6 and it includes to a Mopups(1.0.0) nuget package reference. When I build the output solution, I received the following warning: - Severity Code Description Line Suppression State Warning CS8012 Referenced assembly…

.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,812 questions
asked 2023-03-30T13:33:38.0766667+00:00
wire_jp 151 Reputation points
accepted 2023-03-31T10:14:37.8733333+00:00
wire_jp 151 Reputation points
1 answer

How can word file displayed in a div container be printed in a pdf format?

I am trying to have a single page that will can be used to display either a word (.doc/.docx) or a PDF file. Instead of having two pages, each for word and pdf files. It’s a success but printing either of these formats in PDF is where I have…

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,619 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
904 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.
468 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,335 questions
asked 2023-03-28T10:44:36.1866667+00:00
Donald Symmons 1,306 Reputation points
edited a comment 2023-03-31T10:12:08.9033333+00:00
QiYou-MSFT 1,556 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Converter to set FontImageSource

Hi, I have the following Image control: <Image WidthRequest="25" HeightRequest="25" Margin="10,0,0,0" VerticalOptions="Center"> <Image.Source> <FontImageSource FontFamily="FontSolid"…

.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-30T12:54:48.4966667+00:00
Jassim Al Rahma 1,206 Reputation points
commented 2023-03-31T10:08:47.74+00:00
Jassim Al Rahma 1,206 Reputation points
1 answer

Winforms Failed to launch the designer server process.

For Winforms which is running on .NetCore3.1, after referencing the uwp application then unable to open the WinForms designer. Please find the attached screenshot for info. For more info Please find the project -> winform_uwp_Application …

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,812 questions
Universal Windows Platform (UWP)
.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.
982 questions
asked 2022-07-20T05:18:48.68+00:00
Pradeep B 21 Reputation points
answered 2023-03-31T10:08:02.72+00:00
Ravindra Kumar 0 Reputation points
1 answer

Javascript issue

Hi, It is showing "undefined" to the 1st column and can you help and check the project below? https://1drv.ms/u/s!Ai8CrEskdewXykrPvEzLNAv4XY7Z?e=CAEWAW

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.
468 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,335 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
521 questions
asked 2023-03-31T09:30:27.8833333+00:00
Peter_1985 1,891 Reputation points
commented 2023-03-31T09:59:58.4333333+00:00
Viorel 89,236 Reputation points