Microsoft Q&A

.NET

15,371 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

15,371 questions with .NET-related tags

Sort by: Updated
0 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,891 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,168 questions
asked 2023-06-08T17:51:58.48+00:00
AKJ 0 Reputation points
1 answer One of the answers was accepted by the question author.

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.
989 questions
asked 2023-06-07T21:12:27.3633333+00:00
David Thielen 1,106 Reputation points
commented 2023-06-08T17:39:13.0333333+00:00
David Thielen 1,106 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,184 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,436 questions
asked 2023-06-08T16:10:47.48+00:00
Eigil Krogh Sorensen 61 Reputation points
edited the question 2023-06-08T17:06:00.8166667+00:00
Eigil Krogh Sorensen 61 Reputation points
1 answer One of the answers was accepted by the question author.

Getting build error when trying to upgrade Android 8 to 10 and switching from VS17 to VS 22

Hello, I have a Xamarin.Android project developed for Android 8.0 using Visual Studio 2017. Now I would like to upgrade the Android version from 8 to 11 and open it in VS 2022 at the same a time. As soon as I do that I get several error messages.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,013 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,236 questions
asked 2023-06-07T07:14:51.9533333+00:00
DavidR 25 Reputation points
commented 2023-06-08T16:16:17.73+00:00
DavidR 25 Reputation points
0 answers

Localisation send email attachment- email not sent

Hi I have written code in mvc to send email. I have localisation for website. When i send an attachment in French .example file name HDFC po 2341. The email is not sent. Getting status as false. Used mailmessage. Need help

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
856 questions
asked 2023-06-08T16:09:52.63+00:00
Guhananth S 1 Reputation point
0 answers

Margin not working with ScrollView

I have the following 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,436 questions
asked 2023-06-08T16:04:26.6933333+00:00
Jassim Al Rahma 21 Reputation points
edited the question 2023-06-08T16:05:00.9833333+00:00
Jassim Al Rahma 21 Reputation points
1 answer

Blazor loads too many dlls in the background

Hello, Blazor is loading too many dlls in the background and therefore the opening speed is slowed down, can you help me how can I prevent it? Uploaded files : Client Side Csproj :

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
592 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,168 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
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,236 questions
asked 2023-06-08T06:05:06.88+00:00
Berat Ozaydin 0 Reputation points
answered 2023-06-08T15:54:28.7066667+00:00
Bruce (SqlWork.com) 36,431 Reputation points
2 answers

How to use .net 6.0 library in .net framework 4.7.2 project

My project based on .net framework 4.7.2, and I have to use a .net 6.0 library in my .net framework 4.7.2 project. My questions is how to use .net 6.0 library in .net framework 4.7.2? The .net 6.0 library used other .net 6.0 library, I don't know if…

.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
506 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,174 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,236 questions
.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.
1,002 questions
asked 2023-06-08T11:58:31.6233333+00:00
Chao Li 26 Reputation points Microsoft Employee
edited an answer 2023-06-08T15:39:47.9+00:00
Bruce (SqlWork.com) 36,431 Reputation points
1 answer

Cannot Copy a file on a path with .NET Core in MAC

Hi Guys, We are developing a worker service in .NET Core on MAC machine. On the start of service we are copying some of the necessary files on the given path. Its all working fine in Windows machine in release mode and working great and deployed on the…

.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.
1,002 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,174 questions
asked 2023-06-08T13:18:08.83+00:00
Asif Javaid Chughtai 41 Reputation points
answered 2023-06-08T15:30:58.31+00:00
Bruce (SqlWork.com) 36,431 Reputation points
1 answer

I want add validation with phone and email

If the user wants to register with the same email and phone, I want to get a warning that this email and phone have been registered before. I tried a lot of Ajax code about this, but I was not successful. Can you help? @model…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,168 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
856 questions
asked 2023-06-08T14:29:06.58+00:00
Harun Ergün 220 Reputation points
answered 2023-06-08T15:15:36.6266667+00:00
Bruce (SqlWork.com) 36,431 Reputation points
10 answers

Unable to load DLL 'Microsoft.Data.SqlClient.SNI.x64.dll'

I have two published environment, Staging and one for live. my published project works in test env. without any issue, but as soon as I deploy it on live env. I also should mention that Microsoft.Data.SqlClient.SNI.x64.dll exists in \bin after…

.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
506 questions
asked 2021-06-14T07:46:55.157+00:00
Ocelot013 1 Reputation point
commented 2023-06-08T13:31:48.4866667+00:00
Marty Scherr 0 Reputation points
2 answers

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,891 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,378 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
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,236 questions
asked 2023-06-06T19:49:03.98+00:00
Jacob Duncan 0 Reputation points
answered 2023-06-08T13:25:31.78+00:00
Jacob Duncan 0 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,436 questions
asked 2023-06-06T15:20:29.18+00:00
Fei Xu 225 Reputation points
commented 2023-06-08T13:15:19.57+00:00
Fei Xu 225 Reputation points
2 answers One of the answers was accepted by the question author.

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,436 questions
asked 2023-06-07T12:38:44.77+00:00
Chisa Kogano 25 Reputation points
answered 2023-06-08T12:53:07.7433333+00:00
JULIE 0 Reputation points
3 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,436 questions
asked 2023-06-06T03:07:48.3666667+00:00
Sami 321 Reputation points
edited a comment 2023-06-08T12:46:34.7233333+00:00
Sami 321 Reputation points
0 answers

How to install C# and .NET on Linux Mint 21.1

dotnet --version The command could not be loaded, possibly because: * You intended to execute a .NET application: The application '--version' does not exist. * You intended to execute a .NET SDK command: No .NET SDKs were found. What does…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,174 questions
asked 2023-06-08T11:22:23.9533333+00:00
Harikrishnan Madhavankutty 0 Reputation points
0 answers

how to fix this errorFailed to launch 'myapp:show?username=abcd@gmail.com&password=******&id=xxx' because the scheme does not have a registered handler.

I have my Windows application which opens by clicking a link on the web page I have added the registry details in the nsis script file after that I created an exe file for testing the same When I click the link mentioned above in the heading it is…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,478 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,174 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,236 questions
asked 2023-06-08T10:57:29.3833333+00:00
Dineshkumar.S 386 Reputation points
1 answer

Xamarin Forms: Issue with downloading image to device

I follow this blog to implement downloading image from URL and saving it to device. My code: IDownloader.cs public interface IDownloader { void DownloadFile(string url, string folder); event EventHandler<DownloadEventArgs>…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,013 questions
asked 2023-05-01T15:22:30.17+00:00
Sreejith Sreenivasan 111 Reputation points
commented 2023-06-08T10:29:06.02+00:00
Sreejith Sreenivasan 111 Reputation points
2 answers

How do I make a VB webhook listener?

To receive notifications from a service, I want to utilise Visual Basic to build a webhook listener. The service is not listed under Microsoft in Nuget.AspNet.WebHooks.Receivers.*. An SSL certificate from a recognised root authority is necessary for the…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,109 questions
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-03T17:15:02.5466667+00:00
charli puth 0 Reputation points
answered 2023-06-08T10:23:16.7466667+00:00
charli puth 0 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-08T10:02:22.6833333+00:00
Antony Cartwright 0 Reputation points