Microsoft Q&A

.NET

12,874 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,874 questions with .NET-related tags

Sort by: Updated
0 answers

Get reminders based on data in a database

I want to get reminders for some Appointments that I have saved in database and they have a notificationTime property witch is the time when a notification needs to be displayed. My approach so far is to write some kind of job that runs 1 or 2 times a…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,804 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
601 questions
asked 2023-01-29T17:37:55.69+00:00
Bogdan Nicoara 0 Reputation points
1 answer

When entering a "T" in an asp.net multi-line text box, only one <Shift> key event is caught by the onkeydown event handler of the text box.

In an ASP.NET writable multiline text box, when a "T" is entered, only a <Shift> key keydown event is caught by the text box's onkeydown event handler, and the "T" never shows up. This is running in Microsoft Edge browser. Web…

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.
143 questions
asked 2023-01-27T22:40:39.66+00:00
kip2023 0 Reputation points
answered 2023-01-29T17:24:48.06+00:00
Bruce (SqlWork.com) 27,941 Reputation points
2 answers

Why are padding and margin not showing in properties tab of VS 2022

In keeping with the poor QA of VS now the properties window when selecting an XAML element no longer shows the padding or magins. If I were to publish the full list of problems I see in VS 2022 I would not get anything done. Check out the image to see…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
879 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,396 questions
asked 2023-01-29T15:20:15.2933333+00:00
Lloyd Sheen 756 Reputation points
answered 2023-01-29T16:45:13.56+00:00
Umang Middha 0 Reputation points
0 answers

Xamarin.Form make OutBound Call with SpeakerPhoneOn

It use to be that AudioManager allowed to turn SpeakerPhone On and Off during InBound and OutBound Call. I have posted several question for Android 10-13 with Xamarin each of which have fallen on deaf ears. WHY? Could it'd be that Google has sabotage the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,804 questions
asked 2023-01-25T21:38:47.23+00:00
Universal Camera 286 Reputation points
edited a comment 2023-01-29T16:26:00.78+00:00
Universal Camera 286 Reputation points
1 answer

How to obtain the notifications' deviceToken in MAUI iOS in C#?

In executing the following, how do I get the deviceToken? public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { NSData deviceToken; // Version check if…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
879 questions
Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
153 questions
asked 2023-01-28T18:54:43.4433333+00:00
Marc George 61 Reputation points
answered 2023-01-29T16:19:14.8266667+00:00
Marc George 61 Reputation points
0 answers

Attempting to create a slider that monitors / changes the position of a video.

I am wondering just how I can accomplish the above. I have an event which gets called as the video plays and provides the position of the video being played. I can bind the Ticks of the postion to the slider with no problem. The problem is that when…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
879 questions
asked 2023-01-29T15:25:08.23+00:00
Lloyd Sheen 756 Reputation points
2 answers

How to know if a platform/device will have the required dependencies to run a project?

Hi all, I am learning C# through MS Learn and it's going great so far. My mind does wander to possible issues throughout due to past issues with learning other programming languages like Java and Python. One concern I have is whether or not a project…

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,922 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
601 questions
asked 2023-01-22T21:39:39.31+00:00
AntfeldChristian 0 Reputation points
answered 2023-01-29T15:22:09.15+00:00
Karen Payne MVP 29,226 Reputation points Microsoft MVP
1 answer One of the answers was accepted by the question author.

Generate a simple message from controller (blazor page not for razor view)

In a Blazor server application, I have implemented user authentication via cookie. In the Blazor page (not razor view) I have created a form with email and password entries as well as a button for sending the data. The method is Post and is run on the…

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
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,922 questions
asked 2023-01-29T12:11:47.5833333+00:00
perfect code 121 Reputation points
accepted 2023-01-29T15:19:10.56+00:00
perfect code 121 Reputation points
1 answer One of the answers was accepted by the question author.

How to use EF Core when two properties in the Principle entity point to the same attribute in the dependent entity?

I have 2 Model classes: Department.cs cs public class Department { public string DepartmentId { get; set; } public string Name { get; set; } public string Description { get; set; } [ForeignKey("FacultyId")] public…

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 2021-11-01T04:16:37.687+00:00
Uchchay Dugal 1 Reputation point
accepted 2023-01-29T15:05:43.83+00:00
Uchchay Dugal 1 Reputation point
0 answers

What is the MAUI equivalent of .NET Core's `_Layout.cshtml`?

You see, there's this image which needs to show up on every page of my MAUI app, and if it were a .NET Core app, I'd simply add it in _Layout.cshtml. However, with MAUI, I don't see a way of doing that easily. How would I go about this?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
879 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
601 questions
asked 2023-01-29T15:01:10.3966667+00:00
Uchchay Dugal 1 Reputation point
1 answer

Deployment error DEP1700

I am receiving this error when I try and debug my UWP app. DEP1700: The recipe file "C:\Users\xxxxxxxx\bin\Debug\net6.0-windows10.0.19041.0\xxxxxx.build.appxrecipe" does not exist. You may need to build your project. This is a MAUI…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
879 questions
asked 2022-06-10T20:21:26.163+00:00
Willie 21 Reputation points
answered 2023-01-29T14:29:01.08+00:00
DotNetMAUI Learner 0 Reputation points
2 answers

Invalid key store provider name: 'AZURE_KEY_VAULT' - Asp.net core 6

Good afternoon, I have an asp.NET core 6 application connected to a Azure SQL Database, one of the pages queries does a select to an always encrypted column, the encryption key is stored using Azure key vault. When I compile the app, I get the…

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 Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
656 questions
asked 2022-01-10T23:22:27.797+00:00
Cristopher Aguilera 6 Reputation points
commented 2023-01-29T13:48:11.9133333+00:00
priyank kansal 0 Reputation points
1 answer

Why can't run my app after visual studio update?

I have updated Visual Studio 2019 from 16.6.1 version to 16.11.23 version. The update operation was finished successfully. When I want to run my MVC project in Debug mode, nothing happens. No error is displayed, the app is not running. What do I have to…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,396 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.
694 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.
953 questions
asked 2023-01-26T12:35:02.9366667+00:00
Ionut Dragomir 21 Reputation points
answered 2023-01-29T13:42:03.6466667+00:00
Ken Tucker 5,796 Reputation points
2 answers

Reading form fields after submit (POST) in Blazor Server?

I have a login form in Blazor Server App and use POST to send login data (email and password). <form id="LoginForm" Model="LoginModel" action="cookie" method="post"> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
879 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,922 questions
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
asked 2023-01-28T19:43:14.55+00:00
perfect code 121 Reputation points
commented 2023-01-29T12:17:10.88+00:00
AgaveJoe 16,946 Reputation points
0 answers

Display mauiasset PDF in webview ERR_ACCESS_DENIED.

I have a VS2022 dotnet prog which runs on IOS and Android Simple requirement - Open mauiAsset pdf file and display it in webview. 1 page no manipulation simple Now I know Webview CAN display PDF - I can load it with a pdf on a webserver. How do I open…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
879 questions
asked 2023-01-29T11:28:28.2+00:00
john murray 1 Reputation point
0 answers

How to use MauiHotReloadHelper

I created a MAUI project with MainPage without Xaml code public class MainPage : ContentPage { public MainPage() { Content = new Label { Text = "Hello world!" }; } } I want to use Hot Reload from VSCode. For this I use Clancey's…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
879 questions
asked 2023-01-29T10:55:24.72+00:00
Nikita Romanov 0 Reputation points
2 answers

how to handle exception with customized error message in json format in webapi in c#

how to handle exception with customized error message in json format in webapi in c# also my webapi calling different one drive api like delete file , download file etc and my webapi return type like IActionResult and jsonstring Any body can help

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.
143 questions
asked 2023-01-28T12:49:01.5266667+00:00
Pradyut Sinha 11 Reputation points
answered 2023-01-29T10:10:07.7566667+00:00
Lan Huang-MSFT 8,876 Reputation points Microsoft Employee
2 answers

404 issue to the file

Hi, Due to issue like What to adjust below? <body style="background-color: ???; background-image:url(beautiful_Currency0e.jpg);">

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
443 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.
390 questions
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-28T08:50:16.07+00:00
Peter_1985 1,831 Reputation points
edited an answer 2023-01-29T09:15:27.2266667+00:00
Lan Huang-MSFT 8,876 Reputation points Microsoft Employee
0 answers

my zql server db is. version 16, but my web host only runs version 15. what to do?

I asked my provider for help to get my v.16 database running. They support up to v. 15. If they can't get my db running, is there a way to convert it down? Or find another provider?

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-29T06:56:52.6033333+00:00
Coreysan 801 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,804 questions
asked 2023-01-17T22:27:57.81+00:00
Universal Camera 286 Reputation points
commented 2023-01-29T06:51:16.6633333+00:00
Rob Caplan - MSFT 4,026 Reputation points Microsoft Employee