Microsoft Q&A

.NET

13,094 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,094 questions with .NET-related tags

Sort by: Updated
3 answers

How to view and open pdf & images in blazor wasm?

Hi, I would like to make an application with blazor wasm that displays and opens pdf or image files (png...) found in the windows explorer. The problem is that under the windows explorer there are more than 100 000 files. The access to the directory is…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
803 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.
7,025 questions
asked 2021-10-27T08:22:00.103+00:00
sblb 831 Reputation points
commented 2023-02-07T23:36:32.05+00:00
Haitham Elhajj 0 Reputation points
0 answers

how do you default a dropdown list value in mvc razor using vb.net and c#

hello I am trying to set a default value for a dropdownlist in vb.net and in c# mvc razor view here is how I populate the list here is how I create the drop list in mvc razor the data options for my list are I would like to default the dropdownlist to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
641 questions
asked 2023-02-07T23:00:30.67+00:00
AppDev 1 Reputation point
edited the question 2023-02-07T23:02:09.8066667+00:00
AppDev 1 Reputation point
0 answers

Activate SpeakerPhone in Xamarin.Forms Android during InBound/OutBound Calls

I posted this and was told to post it to this Forum https://answers.microsoft.com/en-us/feedback/forum/fdbk_commsite-bug/what-to-do-when-microsoft-developer-thread-go-on/1d4d9dc4-75fa-427f-8580-ce8710e86d0f

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,825 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,455 questions
asked 2023-02-07T23:01:44.07+00:00
Universal Camera 286 Reputation points
0 answers

Learning EF - Error running Scaffold-DbContext

I am learning how to user Entity Framework where the models are built from an existing SQL server. I ran this command in the package manager: Scaffold-DbContext “Server=xxx; database=Contoso; user id = cnnxxxxx; password = xxxx”…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
429 questions
asked 2023-02-07T22:47:49.0433333+00:00
Stephen Ng Qui Sang 0 Reputation points
0 answers

My Details of MainPageViewModel in MAUI

builder.Services.AddSingleton<MainPageViewModel>(); public class MainPageViewModel : BaseViewModel { private Plato currentPlato; public Plato CurrentPlato { get => currentPlato; set …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
912 questions
asked 2023-02-07T21:40:34.0533333+00:00
Anonymous
commented 2023-02-07T22:02:49.3566667+00:00
Michael Taylor 38,271 Reputation points
0 answers

AzureAD Token Authentication not checking Allowed Audiences

I have an App Service deployed in Azure which is an API using AzureAD as the authentication source. When I request an access token, I get the aud claim as the client ID of the app registration of the API. When I attach the token as bearer to an…

Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,337 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.
154 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,760 questions
asked 2023-02-07T15:33:13.76+00:00
Stephen Mallin 1 Reputation point
edited the question 2023-02-07T21:55:49.0333333+00:00
Grmacjon-MSFT 8,841 Reputation points
5 answers

Why does Blazor server app takes away memory while being inactive?

We developed a Blazor server app and is going through testing phase. Our clients have some concern. What we notice is that before the app is launched memory is 4784 K, one the app is launched and at the end of rendering the login page it is already over…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
803 questions
asked 2023-02-07T13:44:18.7166667+00:00
Balu Raju 26 Reputation points
edited a comment 2023-02-07T21:47:18.8733333+00:00
AgaveJoe 17,311 Reputation points
0 answers

TesserAct implementation help

HI, I would like to make an open source application using Tesseract and xamarin forms. I'm new to app development, but I have an idea that I would like to implement using the phone's camera and OCR. The only problem is that I can't find a recent, simple…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,825 questions
asked 2023-02-07T16:49:49.37+00:00
DJG 6 Reputation points
edited the question 2023-02-07T21:41:57.8166667+00:00
DJG 6 Reputation points
6 answers

Not able to get http response from a third party API when code deployed to azure function app, in debug mode its working fine

I have created an azure http trigger (also tried with timer trigger) function and it is calling an third party API with necessary params as content header. Locally in VS Code (debug mode), it's working fine. I am getting desired response (getting token…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,604 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.
7,025 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,617 questions
asked 2022-07-07T13:44:21.597+00:00
sachin 1 Reputation point
answered 2023-02-07T21:35:55.1766667+00:00
Emmanuel Agbo 1 Reputation point
1 answer One of the answers was accepted by the question author.

Interface in .NET MAUI

Hi, How can Implement Interface in .NET MAUI? I want to implement the below to access the App's Settings for both iOS and Android. Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
912 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.
7,025 questions
asked 2023-02-05T20:43:34.63+00:00
Jassim Al Rahma 1,146 Reputation points
accepted 2023-02-07T21:24:50.37+00:00
Jassim Al Rahma 1,146 Reputation points
1 answer

Access to path denied for files in WWWRoot folder

I am trying to access two folders that resides inside wwwRoot. The folders are "BlankPDFFiles" and "FilledPDFFiles". I am trying to get the blank PDF files that resides inside BlankPDFFiles folder and write some data inside the file…

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.
7,025 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,604 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
617 questions
asked 2023-02-07T18:26:06.8566667+00:00
Anjali Agarwal 141 Reputation points
edited a comment 2023-02-07T21:19:27.57+00:00
AgaveJoe 17,311 Reputation points
1 answer

Loading System.IO.Ports.dll from dynamically loaded class library in .NET6

Using .net6 or .net7, I can't make a dynamically loaded class library (read plugin) load the System.IO.Ports.dll (nuget package). I'm using VS2022, but had the same problem on .net5 and VS2019. I'm only using Windows. I have dropped some demonstration…

.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.
960 questions
asked 2023-02-07T07:36:49.9533333+00:00
Jan Jørgensen 0 Reputation points
edited a comment 2023-02-07T21:13:50.3766667+00:00
Viorel 83,016 Reputation points
0 answers

Xamarin.Forms Speakerphone Stop Activating Suddenly on Android 10

I have App that has been working for years on Android 10, 11, 12 to Turn On/Off SpeakerPhone for Inbound and Outbound calls, but now it works sometimes on Inbound calls but never on Outbound calls. Here is a simple BroadcastReciever and…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,825 questions
asked 2023-01-17T22:27:57.81+00:00
Universal Camera 286 Reputation points
commented 2023-02-07T20:53:57.94+00:00
Universal Camera 286 Reputation points
1 answer

Blazor Server: Cannot access a disposed object.

In a Blazor Server application, I am trying to query the database (via EF) on a timer and load data if there is an update. I am using a new dbcontext object each time so I am confused why it is trying to access something that is disposed of. Error…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
803 questions
Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
220 questions
asked 2023-02-06T22:28:21.37+00:00
Charles Perry 0 Reputation points
answered 2023-02-07T20:44:41.1366667+00:00
Bruce (SqlWork.com) 28,281 Reputation points
2 answers

I can't use class on layered architecture

I'm working on a web.api for library otomation project. I'm using layered architecture on project. a485553e-89a6-4fa9-8dd5-1c40de6d40e2.jpg image is my architecture. I couldn't access User.cs class on DataAccess layer. I defined with "usign"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,604 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
429 questions
asked 2023-02-02T07:05:02.2466667+00:00
ömercan künye 0 Reputation points
answered 2023-02-07T20:27:07.7666667+00:00
Bruce (SqlWork.com) 28,281 Reputation points
0 answers

How to fix Window 10's Bluetooth problem

Before like a month or so my computer had been affected by virus, and I got it fixed. But after that day my Bluetooth on and off button in my settings is not there, The Bluetooth option in my Device manager is not there either....any tips on how to fix…

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.
7,025 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.
18 questions
F#
F#
A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
1 question
asked 2023-02-07T20:17:11.0666667+00:00
Sityana Girum 0 Reputation points
0 answers

SSL Issues with a Blazor App Running On IIS

I have a Blazor Server applictaion running on IIS using an Origin SSL certificate. We also manage our domains through Cloudflare. Everything was working perfectly for roughly two weeks on a new server, and over a month on an older server. Then we started…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
803 questions
Internet Information Services
asked 2023-02-07T15:41:55.66+00:00
Biggers 0 Reputation points
commented 2023-02-07T20:11:16.3933333+00:00
MotoX80 23,651 Reputation points
0 answers

Maui create release version of App

Ok I have an app which I would like to create a release version. I change to Release mode. I then build, took about 5 times before it worked. The errors mean absolutely nothing to me so I just kept on trying as this seems to be the way VS…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
912 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,455 questions
asked 2023-01-07T19:24:12.69+00:00
Lloyd Sheen 781 Reputation points
commented 2023-02-07T19:47:34.4466667+00:00
Lloyd Sheen 781 Reputation points
0 answers

Using my android phone as emulator

Hi How can i used my android phone as emulator ? I develop using xamarin android project under visual studio 2022 Thanks

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,825 questions
asked 2023-02-07T19:36:19.0666667+00:00
Shay Wilner 1,406 Reputation points
0 answers

Explainability with ML.NET

I am using ML.NET to train a model using the FastTree regression trainer. I am trying to implement some kind of "explainability", meaning that when a prediction is made using this model I want to explain why the model made that prediction. In…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
641 questions
.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
111 questions
asked 2023-02-07T19:33:26.3166667+00:00
Angela 0 Reputation points