Microsoft Q&A

.NET

15,354 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

15,354 questions with .NET-related tags

Sort by: Updated
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,865 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,367 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.
985 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:13:26.5866667+00:00
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.
985 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
2 answers One of the answers was accepted by the question author.

What is " !start.cmd " ?

Hello Team, Recently I have been going through some analysis of command prompt and RDP connections. I have identified an !start.cmd entry on the system OS log files, after these process there are some activites has undergone throught command prompt.…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
9,523 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
3,441 questions
.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.
49 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
4,900 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-07T05:52:36.67+00:00
AJ7 0 Reputation points
answered 2023-06-07T15:02:58.3666667+00:00
Rich Matheisen 39,266 Reputation points
0 answers

Xamarin Forms: Implement push notification tapping on android platform

I have implemented push notification on my Xamarin forms application using FCM. My code [Service(Enabled = true, Exported = true)] [IntentFilter(new[] { "com.google.firebase.MESSAGING_EVENT" })] public class FirebaseNotificationService :…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,012 questions
asked 2023-06-07T14:54:25.0666667+00:00
Sreejith Sreenivasan 91 Reputation points
1 answer

CollectionView template not support RTL

Hi, CollectionView template not support RTL. I attached the file:עברית.txt Please see the code: The results is: txt.עיברית <CollectionView ItemsSource="{Binding Data}"> <CollectionView.ItemTemplate> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,434 questions
asked 2023-05-29T12:48:07.0333333+00:00
דני שטרית 841 Reputation points
answered 2023-06-07T14:33:25.4+00:00
דני שטרית 841 Reputation points
1 answer

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,434 questions
asked 2023-06-06T03:07:48.3666667+00:00
Sami 301 Reputation points
commented 2023-06-07T14:16:29.2+00:00
Sami 301 Reputation points
1 answer

What is the solution to resolve the HTTP 500 Internal Server Error in my application when upgrading from .NET Core 2.2 to .NET 7 on a 2019 server with IIS?

When upgrading from Core 2.2 to .NET 7 and deploying it on IIS with Windows 2019, I encounter the error 500. However, when using Core 2.2, the platform runs without any issues. I have already checked the versions of the Hosting Bundle, and they are on…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
2,665 questions
Internet Information Services
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,168 questions
asked 2023-06-06T15:40:52.6433333+00:00
BF 20 Reputation points
commented 2023-06-07T13:57:22.5766667+00:00
BF 20 Reputation points
2 answers

using controls created in c# page forward an aspx page webform

sirs, my problem is about the creation of controls in c# page using forward an aspx page as dynamically controls. the textbox and button controls created had sent to the aspx page and the showing is ok. but the problem is that when i want to used these…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,168 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
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.
558 questions
asked 2023-06-05T11:57:47.7366667+00:00
marc-antoine yonga 61 Reputation points
commented 2023-06-07T13:54:56.8133333+00:00
marc-antoine yonga 61 Reputation points
3 answers

Asp.NET Gridview shows only odd rows

Hi all, I have a problem populating a Gridview with a Datatable. I have a DataTable with 21 rows. I select it as Gridview DataSource a call the DataBinb() method. The property GridView.Rows.Count give me 21 as result. But, when I look at the browser, I…

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.
558 questions
asked 2023-06-07T10:23:57.0366667+00:00
Nazza 0 Reputation points
answered 2023-06-07T13:05:38.84+00:00
Nazza 0 Reputation points
0 answers

How do I use a regular expression in Entity Framework?

For the method: public static IQueryable<ClaimIdentityUser> FindClaimsRegExAsync(this UserDbContext dbContext, string searchEmail, string searchClaimValue) { // if both search terms are empty, return all claims if…

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-06T00:00:20.3766667+00:00
David Thielen 1,066 Reputation points
commented 2023-06-07T12:40:40.4933333+00:00
David Thielen 1,066 Reputation points
0 answers

remove IconTint for multicolored icons on tabbedPage

Hi all, I just want to add an multicolored icon on my tabbedPage but my tabbedPage display the icon with one color like IconTint thanks for ur help

.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-07T12:38:44.77+00:00
Chisa Kogano 25 Reputation points
1 answer

Net maui visualstate for IsVisible not working ?

Net maui visualstate for IsVisible not working ? when backgroundcolor is working but when setter property as Isvisible is not working , can you help me thanks .. <CollectionView.ItemTemplate> <DataTemplate> …

.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-04T22:24:23.5333333+00:00
Sami 301 Reputation points
edited a comment 2023-06-07T12:33:18.9266667+00:00
Sami 301 Reputation points