Microsoft Q&A

.NET

12,880 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,880 questions with .NET-related tags

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

Shell Navigation and setting Parameter Values

I have included the code that I am using to pass parameters from one view to another view using shell navigation. The issue I am having is that I would like to set my model properties using for example the text entry control. Do I do that using a relay…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
883 questions
asked 2023-01-26T16:27:01.2666667+00:00
Ronald Rex 506 Reputation points
accepted 2023-01-27T14:10:24.3+00:00
Ronald Rex 506 Reputation points
1 answer One of the answers was accepted by the question author.

Shell Navigation and passing Parameter Values

Hi friends, I was wondering how to pass multiple parameters. I can pass one parameter for now... ?Name={Name} Thanks Task Navigate() => Shell.Current.GoToAsync($"{nameof(DetailPage)}?Name={Name}",

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
883 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.
6,923 questions
asked 2023-01-26T20:32:49.7633333+00:00
Ronald Rex 506 Reputation points
accepted 2023-01-27T14:10:02.1066667+00:00
Ronald Rex 506 Reputation points
0 answers

How to remove validation-info in text?

in Index.cshtml <form> <div class="row"> <div class="col-sm-2"> <label class="col-form-label">客户:</label> <div> …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 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.
391 questions
asked 2023-01-27T12:33:03.2066667+00:00
打玻璃 1,446 Reputation points
commented 2023-01-27T12:42:05.3866667+00:00
AgaveJoe 17,021 Reputation points
1 answer One of the answers was accepted by the question author.

How to use HttpContext or Claims in __Layout.cshtml?

I am using asp.net core 7.0 how to get UserClaims in Pages/Shared/_Layout.cshtml ? I do not want to use ViewData because I have to set it in each page.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 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.
391 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
asked 2023-01-27T07:05:48.23+00:00
打玻璃 1,446 Reputation points
accepted 2023-01-27T12:30:12.55+00:00
打玻璃 1,446 Reputation points
1 answer

.net core 7 web api very slow first call more that 32s

Hi, I have a problem in EF7 with core 7 web api. The first call take more that 30s and the second call take 60ms what is good. Any solution for that? Thanks

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
asked 2023-01-23T10:36:52.5+00:00
Pedro Manuel Moço Ramalho 1 Reputation point
answered 2023-01-27T12:14:21.9433333+00:00
Pedro Manuel Moço Ramalho 1 Reputation point
1 answer One of the answers was accepted by the question author.

Maui android on screen keyboard issue

Hello all. How I can modify the on screen keyboard for my application. I want that the on screen keyboard when my app run to contain only the alphanumeric and a few non alphanumeric characters. How I can do that and when exit my app to return…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
883 questions
asked 2023-01-24T07:23:50.46+00:00
Haviv Elbsz 481 Reputation points
commented 2023-01-27T12:00:08.3266667+00:00
Haviv Elbsz 481 Reputation points
3 answers One of the answers was accepted by the question author.

State Management in .NET Core

Hi All, I am developing an application in .NET Core with angular client. In my application I have scenario where I have data in List<List<Employee>> in one controller in .NET Core API. Now I would like to access this data in another…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
asked 2023-01-25T13:53:25.6766667+00:00
Pratham Jain 61 Reputation points
accepted 2023-01-27T11:52:52.3533333+00:00
Pratham Jain 61 Reputation points
1 answer

Windows 10 .Net 6 or .Net 7 runtime getting error Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=7.0.0.0

.NET
.NET
Microsoft Technologies based on the .NET software framework.
601 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,577 questions
asked 2023-01-25T08:31:29.4233333+00:00
RTAYLI Oumaima 0 Reputation points
commented 2023-01-27T10:01:41.07+00:00
MayankBargali-MSFT 49,446 Reputation points Microsoft Employee
5 answers

Blazor Error list stays empty

Hi there, The Error list stays empty while using blazor. The errors existing in Blazor components cause build errors but the errors aren't shown in the error list. With kind regards

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
783 questions
asked 2022-09-10T06:00:15.757+00:00
Ingmar Crone 31 Reputation points
answered 2023-01-27T09:10:21.6466667+00:00
Eric Bos 0 Reputation points
2 answers

Getting User Details from Azure AD in ASP.NET

In my ASP.NET 4.8 MVC application, I was able to get user authenticated using Azure AD. Now I need to get user details like job title, department, email, etc. From the research I did so far, it looks like MS Graph API is the way to go. Am I correct? Can…

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.
391 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,583 questions
asked 2023-01-17T14:32:53.06+00:00
Joe Green 141 Reputation points
edited an answer 2023-01-27T08:04:51.4433333+00:00
Givary-MSFT 11,341 Reputation points Microsoft Employee
1 answer

How to use UIWebView in the Xamarin.Forms iOS part?

Hi, I have a Xamarin.Forms application. I integrated Airwatch SDK (WorkspaceOne.Forms) into the iOS part. Now, I am trying to app tunneling with Airwatch SDK. For this reason I have added ModernHttpClient Handler to all of the HttpClients on my project.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,804 questions
asked 2023-01-26T11:10:54.5066667+00:00
Pelin Konaray 266 Reputation points
commented 2023-01-27T08:04:19.9033333+00:00
Pelin Konaray 266 Reputation points
0 answers

Executing Stored Procedures based on condition in Razor Pages

Hi, I have a function that executes two stored procedures based on a condition. Stored procedure for the first condition works fine, but stored procedure for the second condition fails. public async Task<JsonResult>…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
420 questions
asked 2023-01-27T05:38:24.0033333+00:00
Blooming Developer 191 Reputation points
commented 2023-01-27T07:47:33.2466667+00:00
Olaf Helper 25,556 Reputation points
0 answers

Upload a File One drive using MS Graph API in C#

when I am Uploading a File using Onedrive MS graph API in C# the file get Uploaded but every time i got a mail to that one drive account. I have set all notifications off from the one drive settings but still i am getting an email on every time file…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
559 questions
asked 2023-01-26T18:56:59.4+00:00
Pradyut Sinha 11 Reputation points
commented 2023-01-27T07:37:34.7333333+00:00
Zehui Yao_MSFT 3,351 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Maui android<helpview /> control issue

Hello all. because there is no helpview control. Is someone here can give me a way to add help to my application. Thank you very much

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
883 questions
asked 2023-01-23T10:25:17.8233333+00:00
Haviv Elbsz 481 Reputation points
accepted 2023-01-27T06:38:03.3533333+00:00
Haviv Elbsz 481 Reputation points
1 answer

Changing IIS application pool identity causes issues

Hello, I am currently in the process of changing the user running the application pool for my IIS .NET 6 website. I am switching it from a domain user to another domain user with identical rights and group memberships. Although my website appears to be…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
Internet Information Services
asked 2023-01-26T12:15:24.2466667+00:00
randylaheydev 0 Reputation points
commented 2023-01-27T06:18:52.2133333+00:00
Sam Wu-MSFT 5,131 Reputation points Microsoft Employee
2 answers

Unable parse Json

Can any body help me parse the below json in ASP.net C# i need the grantedTo": email and Id also. I have tried many ways but unable to parse. Can anybody…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2023-01-26T19:22:34.45+00:00
Pradyut Sinha 11 Reputation points
edited an answer 2023-01-27T05:55:24.6833333+00:00
QiYou-MSFT 851 Reputation points Microsoft Employee
2 answers

MFA\2FA website authentication

would like to setup MFA authentication for users accessing my site on the internet. is there a way to embedd in my web site a start up code is there any solution ready for that perpse the site is public , so meany clients can ping it so ...

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
582 questions
asked 2023-01-25T08:21:43.1+00:00
Eyal 0 Reputation points
edited an answer 2023-01-27T05:38:42.4666667+00:00
SurferOnWww 636 Reputation points
0 answers

Exception "Scheme already exists" when trying to implement multiple authentication schemes

For a Azure app service that uses two different app registrations for internal and external users I want to implement multiple authentication schemes. I use a ASP.NET Core web application (.NET6) with the following app…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,306 questions
asked 2023-01-26T11:56:01.52+00:00
Jörg Auberg (Admin) 0 Reputation points
edited the question 2023-01-27T05:12:22.5633333+00:00
ajkuma 13,371 Reputation points Microsoft Employee
2 answers

In C# Blazor Server How Can I Send a 404 From A Static Method?

After much work, I finally found a way to get the IP Address of the client in Blazor Server. To do this, I had to use a site called ipify: <script> function GetAddress() { var script = document.createElement("script"); script.type…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
783 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.
6,923 questions
asked 2023-01-26T15:17:28.5433333+00:00
Data Juggler 146 Reputation points
answered 2023-01-27T03:58:25.25+00:00
Zhi Lv - MSFT 18,541 Reputation points Microsoft Employee
1 answer

500 internal server error in Windows server 2012 with IIS 8 for ASP.net core 6 mvc

I know this is a common errors but i am getting desperate and frustrated. I have published to folder my ASP.net Core 6 MVC application and deployed in a server running Windows 2012 and IIS 8 and I am getting the server error 500. I have tried going…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,147 questions
asked 2023-01-27T02:50:11.1333333+00:00
cebuhax0r 21 Reputation points
edited an answer 2023-01-27T03:00:37.6166667+00:00
Az Torial 0 Reputation points