Microsoft Q&A

.NET

15,358 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

15,358 questions with .NET-related tags

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

LINQ query with and and OR search criteria based on GUI

I have the following search boxes on my web page: This is my LINQ query: var transaction = (from sst in _Context.Transactions join sstcnt in ( from ssti in _Context.TransactionItems …

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
854 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,164 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,222 questions
asked 2023-05-30T01:22:45.0733333+00:00
Anjali Agarwal 941 Reputation points
accepted 2023-06-07T22:46:00.72+00:00
Anjali Agarwal 941 Reputation points
1 answer

Setting colours (yes I'm Canadian) does not work on Picker

Setting the colors for the picker does not work. Since I am working on getting rid of 3rd party controls and so many native Maui controls work so terribly I wonder if I am wasting my time. Both the TitleColor and TextColor remain Black. VS version is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,434 questions
asked 2023-06-06T19:24:18.09+00:00
Lloyd Sheen 1,076 Reputation points
answered 2023-06-07T22:44:54.39+00:00
Rob Caplan - MSFT 4,862 Reputation points Microsoft Employee
2 answers

HTTP-500 error when connecting from FrontDoor with AAD authentication on Blazor Server

I created a Blazor Server app that uses the AAD authentication, referring to the following URL. https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-blazor-server Then I deployed to AppService and this worked fine. After that, I…

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
389 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,870 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.
987 questions
asked 2023-06-06T10:13:37.4433333+00:00
38997385 20 Reputation points
commented 2023-06-07T22:06:57.3666667+00:00
Marilee Turscak-MSFT 24,401 Reputation points Microsoft Employee
0 answers

Login automatically for an intranet application

Hi Guys, I am trying to change an intranet application to use Azure AD instead of windows AD credentials. How do i make sure my angular application automatically logs in without user entering credentials to authenticate against Azure AD using signin page…

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,870 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,170 questions
asked 2023-06-07T21:35:26.8166667+00:00
Sandy 0 Reputation points
1 answer

Is it possible to use WebView2 on HoloLens2 with Xamarin ?

I'm working on a cross platform application on Xamarin and more particularly on the UWP side with the HoloLens2. Since some months ago, some web pages doesn't display (infinite load) with WebView. From what I understand, the WebView which is use on…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,012 questions
Universal Windows Platform (UWP)
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
277 questions
asked 2023-06-07T10:02:52.72+00:00
Guillaume Dewaghe 21 Reputation points
answered 2023-06-07T21:18:08.08+00:00
Rob Caplan - MSFT 4,862 Reputation points Microsoft Employee
0 answers

Can a child element pass validation issues up to the <DataAnnotationsValidator> in the parent

I'm reducing this down to the essentials. If I reduced too much, please ask for detail. I have a razor page as follows: <EditForm> <DataAnnotationsValidator /> <AddressForm @ref="_addressElement" …

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
987 questions
asked 2023-06-07T21:12:27.3633333+00:00
David Thielen 1,066 Reputation points
1 answer

.NET Standard 2.0 bin Files getting locked - Unable to build or clean

I cannot recreate this on command but ever since last week a .net standard 2.0 file is getting locked in the bin folder. For example I have 2 projects: ProjectA\bin\x64\Debug\netstandard2.0\ProjectA.dll …

.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
505 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,181 questions
asked 2023-05-23T01:01:58.6533333+00:00
Dan Patten 0 Reputation points
commented 2023-06-07T20:47:13.4033333+00:00
Dan Patten 0 Reputation points
0 answers

Conflict between two references when building a dll

I built a new winform that uses a 3rd party set of controls. Unbeknownst to me, the act of adding controls to the form added references into the project that the form was part of. When building this new form into the library, it eventually failed,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,170 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,181 questions
asked 2023-06-07T20:22:32.17+00:00
nope no 20 Reputation points
0 answers

Modif the interline in nav

Hi I would like to know if you can tell me how to modify the interline in nav bar extract navmenu.razor @if (expandSubNavFollow) { <ul class="nav flex-column"> <li…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
987 questions
asked 2023-06-07T19:57:39.26+00:00
sblb 996 Reputation points
1 answer

How to get authorization code dynamically depending on tenant ID using blazer Webassembly

I am looking to dynamically create a Microsoft graph client at runtime where the tenant ID is changed dynamically every time it is created. I need to get a authorization code that is dependent on the tenant ID at runtime but I can not seem to make it…

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,870 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,369 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.
987 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,491 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,222 questions
asked 2023-06-06T19:49:03.98+00:00
Jacob Duncan 0 Reputation points
commented 2023-06-07T19:43:33.64+00:00
Bruce (SqlWork.com) 36,421 Reputation points
1 answer

can taghelper add js code?

I can write html to taghelper and can I write js code to it?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,164 questions
asked 2023-06-07T06:04:34.7566667+00:00
mc 1,981 Reputation points
edited an answer 2023-06-07T19:39:38.9233333+00:00
Bruce (SqlWork.com) 36,421 Reputation points
1 answer

how can we send key based encrypted parameter in an api request in the header instead of sending directly

[AllowAnonymous] [HttpGet] [Route("api/HelpVideo/{ID}")] [ResponseType(typeof(HttpResponseMessage))] public HttpResponseMessage GetHelpVideo(int ID) { try { …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,491 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,222 questions
asked 2023-06-07T13:40:06.2166667+00:00
Basit Nisar 40 Reputation points
commented 2023-06-07T19:12:16.4133333+00:00
2 answers One of the answers was accepted by the question author.

Save an image using Maui.net graphics

How do I save Maui.net graphics to png file ?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,434 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,222 questions
asked 2022-06-23T18:14:21.013+00:00
Yusuf 616 Reputation points
answered 2023-06-07T19:04:11.6333333+00:00
Matt Lovell 0 Reputation points
2 answers One of the answers was accepted by the question author.

Entity Framework - is AnyAsync() the most efficient approach? Or is Contains() better?

Hi all; My situation is I have 4 different model objects that each have a property: public string UniqueId { get; private set; } This UniqueId must be unique across all 4 tables (sort of a super unique key). First, I do set it to be unique in each model…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
521 questions
asked 2023-06-05T20:36:09.82+00:00
David Thielen 1,066 Reputation points
commented 2023-06-07T18:48:21.9+00:00
David Thielen 1,066 Reputation points
0 answers

VS Community 2022 - ASP.NET 4.8 - Publish has encountered an error. Copying file 'x' to 'y' failed.

Hello, I'm getting a really frustrating error which is really holding me up. The error is: Copying…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,491 questions
asked 2023-06-07T15:34:11.82+00:00
Antony Cartwright 0 Reputation points
commented 2023-06-07T18:13:03.9833333+00:00
AgaveJoe 22,786 Reputation points
0 answers

Serilog - C# - configuration

Hello, As suggested by @Karen Payne MVP https://betterstack.com/community/guides/logging/how-to-start-logging-with-serilog/ The global part of the project is probably already done by the library. I can call this via Log in every class. It looks good…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,491 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,222 questions
asked 2023-06-07T17:42:15.3+00:00
Markus Freitag 3,181 Reputation points
0 answers

CreateRendererWithContext .net MAUI android

0 i am re using xamarin forms renderer in MAUI. while creating renderer with "CreateRendererWithContext" method getting exception. below is my code. using AndroidPlatform =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,434 questions
asked 2023-06-01T09:46:36.4266667+00:00
Shirisha Siddamshetti 40 Reputation points
commented 2023-06-07T16:14:01.53+00:00
Shirisha Siddamshetti 40 Reputation points
1 answer

IOS TableView have more than 2 ViewCell , app come back from background, tableview will not display ?

IOS TableView have more than 2 ViewCell , app come back from background, tableview will not display ? Only IOS and more than 2 viewcell have this problem. <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,434 questions
asked 2023-06-06T15:20:29.18+00:00
Fei Xu 225 Reputation points
commented 2023-06-07T15:51:54.49+00:00
Fei Xu 225 Reputation points
1 answer

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,164 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.
987 questions
asked 2023-06-07T10:57:22.6633333+00:00
Happy Development 10 Reputation points
answered 2023-06-07T15:42:32.4366667+00:00
Bruce (SqlWork.com) 36,421 Reputation points
1 answer One of the answers was accepted by the question author.

How to change the popup screen background color?

Background color i need to change to Black.... In the above example it is white i need to set to black I am using CommunityToolkit.Maui for popup

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,434 questions
asked 2023-06-06T10:11:04.42+00:00
Sowndarrajan Vijayaragavan 100 Reputation points
commented 2023-06-07T15:24:33.57+00:00
Sowndarrajan Vijayaragavan 100 Reputation points