Microsoft Q&A

.NET

21,789 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

21,789 questions with .NET-related tags

Sort by: Updated
0 answers

Increase upload speed in azure app service

When using the FileUpload in a Blazor Server App to stream data to a FileStream using the www directory for testing it transmits less than 1 meg per second. This issue is constant regardless of VM size. Also the code is simple and clear showing a…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,767 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.
1,207 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,719 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,049 questions
asked 2023-12-01T12:11:53.7233333+00:00
Paul Goldberg 0 Reputation points
commented 2023-12-04T19:02:09.9233333+00:00
ajkuma 18,941 Reputation points Microsoft Employee
0 answers

No Internet page problems

I have a strange problem. I want to navigate to a certain page, when there is no internet. So, I am doing this. public LoginPage(LoginPageViewModel loginPageViewModel, IConnectivity connectivity, IAppService appService) { …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,172 questions
asked 2023-12-04T18:57:26.0066667+00:00
Eduardo Gomez 2,871 Reputation points
0 answers

Radio Button and RadioButton.GestureRecognizers are not working

RadioButton.GestureRecognizers are not working with Android. I found a number of forums mentioning that RadioButton.GestureRecognizers is not working with Android. My questions it, is there an alternative? I tried Binding CheckedChanged and that doesn't…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,308 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,172 questions
asked 2023-12-04T18:17:22.7466667+00:00
Heinz Deubler 176 Reputation points
0 answers

how to call a method from Application_Start() in Global.asax.cs file when IIS server having particular site restarts in asp.net mvc5 application

how to call a method from Application_Start() in Global.asax.cs file when IIS server having particular site restarts in asp.net mvc5 application?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,308 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,054 questions
asked 2023-12-04T14:03:31.1566667+00:00
Mayur Phase 0 Reputation points
commented 2023-12-04T18:04:28.96+00:00
Mayur Phase 0 Reputation points
0 answers

Issue downloading file with + signs in their name, from Azure Blob Storage, in Azure App Service

I am experiencing an issue downloading a file with a + sign in its name ( 14595-2023-2157-1-GCSU+Tree+Campus+Plan+2022 .docx ), specifically when my code is deployed in Azure App Service. Surprisingly, the file exists in Blob Storage and can be…

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,087 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,767 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,049 questions
asked 2023-12-04T17:58:41.95+00:00
sekou keita 0 Reputation points
0 answers

MAUI - Hello World does not run on Emulator

I am following the documentation: https://dotnet.microsoft.com/en-us/learn/maui/first-app-tutorial/device-setup I created the simple Hello World for a .NET MAUI app. On my physical device it works, but not on emulators. I created an Android emulator for…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,172 questions
asked 2023-12-01T22:05:09.1366667+00:00
Andrew S Bissada 0 Reputation points
commented 2023-12-04T17:58:24.22+00:00
Andrew S Bissada 0 Reputation points
0 answers

Visual Studio 2022 debugging now no longer works

First off please do not send me to VS support as it really does not exist. My VS 2022 Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.7.7 It has been getting worse by the day but it has now really hit rock bottom. Function evaluation…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,092 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,172 questions
asked 2023-12-04T14:19:53.5933333+00:00
Lloyd Sheen 1,261 Reputation points
edited a comment 2023-12-04T17:48:01.9666667+00:00
Lloyd Sheen 1,261 Reputation points
1 answer

Maui webview .Navigated event is not triggered when source is a blazor website

Create a simple MAUI app with support for eg. android. On mainpage add a webview (NOT BlazorWebView): <StackLayout VerticalOptions="Fill" HorizontalOptions="Fill"> <WebView …

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,207 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,172 questions
asked 2023-12-01T13:58:15.9533333+00:00
Anders 0 Reputation points
edited an answer 2023-12-04T17:41:43.7233333+00:00
Bruce (SqlWork.com) 48,636 Reputation points
2 answers

How should I publish a .net 8 ASP.Net Core Web API on visual studio 17.8.2?

I have been developping a .net 8 ASP.Net Core Web API on visual studio 17.8.2. When I go to publish it i dont see a publishing profile for a serverless Azure function app, only for an Azure App Service. What I want is to create a Github Action that will…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,699 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,767 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,092 questions
asked 2023-12-04T07:15:29.51+00:00
Gil Shalit 1 Reputation point
edited the question 2023-12-04T17:26:12.4366667+00:00
MayankBargali-MSFT 63,511 Reputation points
2 answers

POST endpoint blocked by CORS policy even after allowing all endpoints with wild card indicator (*)

I setup a .NET API that's being called by an Angular frontend, the API allows requests from any origin by creating a CORS policy with the wildcard indicator (*) initially for testing purposes. I made some new changes to the app and ended up having to…

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,531 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,308 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.
9,469 questions
asked 2023-09-09T00:34:29.2133333+00:00
Claudio 0 Reputation points
answered 2023-12-04T17:21:50.22+00:00
Thomas Meads 1,421 Reputation points
1 answer One of the answers was accepted by the question author.

How to store Picture User Profile on Database Table AspNetUsers using mvc asp.net core 5?

I working on asp.net core 5 mvc web application , I face issue I can't store Picture User on database table [dbo].[AspNetUsers]. so can you tell me how to store personal picture of user on table [dbo].[AspNetUsers]. I already add new column…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,767 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,054 questions
asked 2022-12-03T10:37:12.17+00:00
ahmed salah 3,206 Reputation points
commented 2023-12-04T17:06:39.9233333+00:00
nour ma 0 Reputation points
2 answers

How to fix update problem in concurrent request in ASP.NET Web API 2

I am working on an ASP.NET Web API 2 project with .NET Framework 4.6.2. When I send two concurrent requests with the same parameters from Postman, only one record is updated in the database, even though there should be two. I have included screenshots of…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,719 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.
9,469 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
256 questions
asked 2023-12-04T15:39:18.34+00:00
Cenk 911 Reputation points
commented 2023-12-04T17:01:23.2233333+00:00
Cenk 911 Reputation points
2 answers One of the answers was accepted by the question author.

"Type SqlDataAdapter is not defined" after migrating from .net framwork to .net 7

After upgrading my project to .NEG 7.0 we now receiver an error message when using commands such as New SqlConnection and New SqlDataAdapter. Errors are "Type SqlConnection is not defined" and "Type SqlDataAdapter is not defined" How…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,308 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,092 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,401 questions
asked 2023-12-03T21:41:17.79+00:00
SuperCoder 21 Reputation points
accepted 2023-12-04T16:23:39.2133333+00:00
SuperCoder 21 Reputation points
1 answer One of the answers was accepted by the question author.

asp.net Core 6.0 RDLC Report

ASP.NET Core 6.0 How to add data from database to RDLC report? My method of adding data without database is working fine. But I can't find any way to add database data. I would appreciate it if someone could help. thanks in advance public IActionResult…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,767 questions
asked 2023-12-02T16:10:42.6+00:00
jewel 601 Reputation points
accepted 2023-12-04T15:47:41.2966667+00:00
jewel 601 Reputation points
2 answers One of the answers was accepted by the question author.

'Platform' does not contain a definition for 'AppContext' Error MAUI App.

I'm attempting to use the following line of code in the MainPage code behind (MainPage.xaml.cs). The project references Maui.Controls, Maui.Essentials, CommunityToolkit.MVVM, and Maui.Controls.Compatibility. Code: var context =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,172 questions
asked 2023-11-26T07:38:27.0933333+00:00
Bacardi 20 Reputation points
commented 2023-12-04T15:34:07.2066667+00:00
Bacardi 20 Reputation points
0 answers

Timer to MAUI Blazor App

Here is my quiz app ,the current functionality is to capture if question is correct or wrong and give a score 9/10 , 10/10 etc and display the user "Questions incorrectly answered with answers:" Now I added time which is in minutes to…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,207 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,172 questions
asked 2023-12-03T17:29:16.65+00:00
Maui Learner 80 Reputation points
edited the question 2023-12-04T15:20:48.8666667+00:00
Maui Learner 80 Reputation points
1 answer One of the answers was accepted by the question author.

Flyout problems

Ok so this is kind of weird, I have a HomePage and a Registration page. They are registered in my appShell <ShellContent Title="loginPage" ContentTemplate="{DataTemplate view:LoginPage}" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,172 questions
asked 2023-11-30T01:54:13.74+00:00
Eduardo Gomez 2,871 Reputation points
accepted 2023-12-04T14:59:38.3133333+00:00
Eduardo Gomez 2,871 Reputation points
2 answers

While calling MS Graph API through blazor webassembly app i am getting below error

{ "error": { "code": "ErrorEntityNotFound", "message": "Exception of type 'Microsoft.Fast.Profile.Core.Exception.ImageNotFoundException' was thrown.", "innerError":…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,115 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.
1,207 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.
9,469 questions
asked 2023-12-01T16:06:00.3833333+00:00
Akash Doke 0 Reputation points
answered 2023-12-04T14:51:46.19+00:00
Akash Doke 0 Reputation points
1 answer

How to show pdf in webview using azure storage pdf link in .net maui for android platform?. Currently showing blank screen

Sample link works but while using azure storage link then showing blank screen.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,172 questions
asked 2023-12-03T05:54:45.2933333+00:00
Thombre, Ashish 40 Reputation points
edited a comment 2023-12-04T14:51:19.1166667+00:00
Thombre, Ashish 40 Reputation points
0 answers

warning MA002: Starting with .NET 8, setting <UseMaui>true</UseMaui> does not automatically include NuGet package references in your project.

I get the following warnings in my iOS project. What should I change in my project? /usr/local/share/dotnet/packs/Microsoft.Maui.Sdk/8.0.0-rc.2.9511/Sdk/BundledVersions.targets(80,5) : warning MA002: Starting with .NET 8, setting …

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,092 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,172 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.
9,469 questions
asked 2023-12-03T18:15:03.26+00:00
Kim Strasser 641 Reputation points
commented 2023-12-04T14:26:26.6033333+00:00
Kim Strasser 641 Reputation points