Microsoft Q&A

.NET

12,844 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,844 questions with .NET-related tags

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

Intent Filter / DeepLink .Net MAUI

I want to implement an application that will be viewable in my application using Intent Filter. I added in the MainActivity.cs file Filter Intent [IntentFilter(new[] { Intent.ActionView }, Categories = new[] { Intent.ActionView, Intent.CategoryDefault,…

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,907 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
593 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
869 questions
asked 2023-01-19T14:47:27.51+00:00
Влад Тигинян 0 Reputation points
commented 2023-01-27T13:33:01.4233333+00:00
Влад Тигинян 0 Reputation points
4 answers

Unable to Resolve Scaffolding Issue in ASP.NET Core MVC Application

I'm getting the following error when I try to scaffold the Login, Logout, and Register pages. I ran the Visual Studio Installer to and clicked on the ASP.NET web development workflow to ensure I have all of the required tools installed. Version…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,519 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,386 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
576 questions
asked 2023-01-25T03:05:53.0133333+00:00
Xenu 0 Reputation points
answered 2023-01-27T13:28:55.2166667+00:00
TheCoder 61 Reputation points
0 answers

Blazor webassembly shows 405 error in localhost (and also when deployed to iis) when redirect back from payment website

I have created a blazor webaseembly project using .net 7. The blazor app redirects to an external url for payment. Once payment is done the payment status page(which is in the blazor app) should be loaded as that's the return url set while calling the…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
781 questions
asked 2023-01-27T11:08:51.96+00:00
Jayant Guru 0 Reputation points
commented 2023-01-27T13:01:28.5066667+00:00
AgaveJoe 16,616 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,519 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.
387 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
576 questions
asked 2023-01-27T12:33:03.2066667+00:00
打玻璃 1,406 Reputation points
commented 2023-01-27T12:42:05.3866667+00:00
AgaveJoe 16,616 Reputation points
0 answers

JSON format using Entity Framework

I'm trying to use the bootstrap treeview and the JSON needs to be a certain format. I currently have this format: var data = [ { make: "Chevy", model: "2500", location:…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
422 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,907 questions
asked 2023-01-27T12:38:51.11+00:00
TheCoder 61 Reputation points
edited the question 2023-01-27T12:40:21.6933333+00:00
TheCoder 61 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,519 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.
387 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
576 questions
asked 2023-01-27T07:05:48.23+00:00
打玻璃 1,406 Reputation points
accepted 2023-01-27T12:30:12.55+00:00
打玻璃 1,406 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,519 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

How to change value of input field in a strongly-typed view from controller

Hello I am using ASP.NET Core 3.1 How can I change the value of the input fields in a strongly-typed view from controller. I have this simple example. I have three input fields and when the usee enters some values and submit them, I modify the values the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,519 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
576 questions
asked 2023-01-27T11:07:27.1466667+00:00
Jeddah 66 Reputation points
answered 2023-01-27T12:07:02.7466667+00:00
AgaveJoe 16,616 Reputation points
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.
869 questions
asked 2023-01-24T07:23:50.46+00:00
Haviv Elbsz 461 Reputation points
commented 2023-01-27T12:00:08.3266667+00:00
Haviv Elbsz 461 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,519 questions
asked 2023-01-25T13:53:25.6766667+00:00
Pratham Jain 41 Reputation points
accepted 2023-01-27T11:52:52.3533333+00:00
Pratham Jain 41 Reputation points
1 answer

How to use ReportViewerForMVC in ASP.NET CORE Web Application

I am trying to integrate SSRS report into my asp.net core web app. I followed some tutorial on how to setup report viewer in asp.net mvc using the ReportViewerForMVC nuget package. However I encounter the following error. Hope someone can help to guide…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,519 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,091 questions
asked 2023-01-27T10:58:24.45+00:00
Gee Soon 0 Reputation points
answered 2023-01-27T11:10:40.9466667+00:00
Olaf Helper 25,476 Reputation points
0 answers

How to setup Vnet integration between ASP.NET 4.8 Azure Service V3 app and SQL Managed Instance?

I just created a simple ASP.NET Web Forms app to Azure Service - Premium V3 plan. This app runs fine as long it does not access our database in SQL Managed Instance (MI). When trying to access the database (a simple SQL SELECT statement in the…

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
1,171 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,294 questions
Azure SQL Database
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.
387 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,172 questions
asked 2023-01-17T16:43:22.7466667+00:00
Jan J. Vopalensky 0 Reputation points
commented 2023-01-27T10:57:27.78+00:00
SnehaAgrawal-MSFT 11,091 Reputation points Microsoft Employee
1 answer

Visual Studio Community 2022 (64-bit) v17.4.4 not showing any compile time errors for MAUI project.

Hi, I am using Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.4.4 for my MAUI projects but is not showing any compile time errors . is it any plugin missing?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
869 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,386 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
693 questions
asked 2023-01-24T09:18:11.29+00:00
Sachin 21 Reputation points
commented 2023-01-27T10:04:14.5633333+00:00
Sachin 21 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.
593 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,573 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,431 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.
781 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.
387 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,172 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
576 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,554 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,251 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,803 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,519 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
422 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,476 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,172 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
553 questions
asked 2023-01-26T18:56:59.4+00:00
Pradyut Sinha 6 Reputation points
commented 2023-01-27T07:37:34.7333333+00:00
Zehui Yao_MSFT 3,341 Reputation points Microsoft Employee
1 answer

How to ignore ETag checking and fix this error

I read from and write to blob content in Azure blob storage. File is being changed (new content is getting appended to the file) at the same time while it is being downloaded. I get error in the below stream.Read() line. Which I believe is because of…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,519 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.
781 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,907 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,387 questions
asked 2023-01-18T12:50:17.69+00:00
Sarah 131 Reputation points
answered 2023-01-27T07:36:23.73+00:00
SaiKishor-MSFT 14,916 Reputation points Microsoft Employee