Microsoft Q&A

.NET

14,027 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

14,027 questions with .NET-related tags

Sort by: Updated
4 answers

ApiAuthorisation with foreign key

Hi, I have an application where it's necessary to have an ApiAuthorisation means to have several individual account. Also I need to use a foreign key. I defined modelBuilder has below : protected override void OnModelCreating(ModelBuilder…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
884 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,568 questions
asked 2023-03-25T19:03:34.56+00:00
sblb 876 Reputation points
commented 2023-03-27T19:55:21.8+00:00
sblb 876 Reputation points
0 answers

Null Warnings Re: Student, Course Create and Edit

Working on the following Contoso University Tutorial... https://learn.microsoft.com/en-us/aspnet/core/data/ef-mvc/crud?view=aspnetcore-6.0#update-the-edit-page The code runs successfully but has some warnings... Errors: Warning…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
735 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,834 questions
asked 2023-03-27T19:29:05.2133333+00:00
Dean Everhart 906 Reputation points
0 answers

Change font in MAUI Blazor?

I have downloaded the font Comfortaa and saved it in the directory wwwroot/css/open-iconic/font/. In the file index.html I loaded the font under <style>: I also specified the alternative font "courier new". As you can see, it seems…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,083 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.
884 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,568 questions
asked 2023-03-27T19:09:16.13+00:00
perfect code 271 Reputation points
0 answers

Does Maui-Android have an issue with Shadow property for the Border control?

When I define Shadow for the Border control (see XAL code below), Android fails to display. It works fine on WinUI. If I remove Shadow definition in XAML it works for Android. Does Android have an issue with Shadow? <Border Stroke="Blue"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,083 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,568 questions
asked 2023-03-27T18:27:32.8933333+00:00
dg2k 896 Reputation points
edited the question 2023-03-27T18:47:08.6166667+00:00
dg2k 896 Reputation points
0 answers

Why doesn't FilePicker Work in my App?

I have a C# App. It runs on my Android. But when I want to let users open a file with it, I cannot. Even though I have using Xamarain.Essentials, in the C# file with this procedure: I get the error that the type or namespace PickOptions could not be…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,924 questions
asked 2023-03-27T18:38:35.2366667+00:00
Ronald GANS 136 Reputation points
0 answers

How can I host a shared Blazor Custom Elements app on a different Domain?

I tried to publish a Blazor app with custom elements on a Static Web App and reference it from another deployed app. Just added the necessary script tags pointing to the static web app. It does not work. Looking into the blazor.webassembly.js…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
884 questions
asked 2023-03-27T18:06:00.6133333+00:00
László Tóth 0 Reputation points
1 answer

The type or namespace name 'Platform' does not exist in the namespace 'Microsoft.Maui.Graphics' (are you missing an assembly reference?)

I am using Visual Studio Community 2022 64 bit 4.8.04161 on Windows 11 Pro. I need to be able to draw an image at a particular location. I am attempting to use the documentation at…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,083 questions
asked 2023-03-16T20:44:11.47+00:00
Randy Clegg 0 Reputation points
commented 2023-03-27T18:05:52.44+00:00
Randy Clegg 0 Reputation points
0 answers

Service fabric application project not crated properly

Hi I need to set up service fabric for Uni project, and I run into an issue I will try to explain as clearly because I am not sure where does the problem come from: When I create Service Fabric Application project, VS2022 creates only Service Fabric…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,834 questions
Azure Service Fabric
Azure Service Fabric
An Azure service that is used to develop microservices and orchestrate containers on Windows and Linux.
206 questions
asked 2023-03-27T16:47:40.6366667+00:00
Mirko Mijanović 0 Reputation points
1 answer

Support for English (United Arab Emirates) in Azure App Services or possibly VMs

We have a customer in the UAE we would like to support. They would like AED currency but English dates which are supported in the English (United Arab Emirates) locale. It appears this locale is not yet available in Windows Server (other than v2004)…

Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,564 questions
Azure FastTrack
Azure FastTrack
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.FastTrack: A Microsoft program that helps customers adopt Microsoft Cloud solutions and drive user adoption.
59 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,839 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.
981 questions
asked 2021-07-22T04:11:54.977+00:00
Tony Schollum 6 Reputation points
edited the question 2023-03-27T16:46:12.6966667+00:00
Ryan Hill 16,526 Reputation points Microsoft Employee
0 answers

Programatically force winform app to open at 125 scaling using Dotnet core 6

We have built a DPI Unaware Winform app using DotNet core 6 which works fine on windows operating system with 100% and 125% scaling options on all devices whether it's laptop or desktop . Example screenshot for the 125 scaling is given below The moment…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,834 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,568 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
885 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.
464 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,400 questions
asked 2023-03-27T12:17:02.6366667+00:00
Sunny Sharma 1 Reputation point
commented 2023-03-27T16:33:35.93+00:00
David Lowndes 4,381 Reputation points MVP
0 answers

Maui kernelbase error when installed on client

Hi, I have made a Maui application and has signed it and it is installing on the client. But when opening I dont get any response and the following is shown in the event viewer. Faulting application name: FlexViewer.exe, version: 1.0.0.0, time…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,083 questions
asked 2022-09-02T10:29:53.607+00:00
Mads S. Christiansen 1 Reputation point
commented 2023-03-27T16:24:11.0266667+00:00
Richard Dufour 0 Reputation points
0 answers

Which is best, entity framework core in a class library, MVC or Blazor server side

HI, I am planning to create an MVC project. I wanted to use entity framework core. I am wondering if I should install it in a class library or an MVC project. I see that I can use a class library to make the use of EF more available for any…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
229 questions
asked 2023-03-27T16:21:25.0466667+00:00
2 answers

How to support multiple names for a property using System.Text.Json Deserialization?

Hello together, right now I'm reading following learn article: https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/custom-contracts It is written Support multiple names for a single property (for example, if a previous…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
885 questions
asked 2023-03-27T01:08:56.12+00:00
PFJ 0 Reputation points
edited a comment 2023-03-27T15:58:35.3166667+00:00
PFJ 0 Reputation points
2 answers One of the answers was accepted by the question author.

Xamarin forms invoking javascript from webview

The android project in the sample as described in this article does not work. The iOS project works exactly as described in the article. The Android does nothing.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,924 questions
asked 2023-03-21T21:45:34.7833333+00:00
tbelvin 21 Reputation points
accepted 2023-03-27T15:56:41.2333333+00:00
tbelvin 21 Reputation points
0 answers

In MAUI, Top status bar is not display properly if I change it from Portrait to Landscape mode

In above image, on top left you can see the status bar background color is not updating in landscape mode, in portrait mode it's working file but as soon as I rotate into landscape mode it showing me like this. Not sure why it is happening only for ios.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,083 questions
asked 2023-03-27T15:44:05.6266667+00:00
Mane, PRASHANT GORAKH 26 Reputation points
edited the question 2023-03-27T15:46:03.1366667+00:00
Mane, PRASHANT GORAKH 26 Reputation points
4 answers

This App Bundle contains native code

Hi, I am getting this error while uploading my Xamarin Forms' android app to the Google Play Console. This App Bundle contains native code, and you've not uploaded debug symbols. We recommend you upload a symbol file to make your crashes and ANRs…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,924 questions
asked 2021-01-20T19:44:11.02+00:00
jrahma 111 Reputation points
answered 2023-03-27T15:28:07.39+00:00
Md Delower Hossain 0 Reputation points
1 answer

Report Wizard missing in VS2022

In VS2022 I downloaded and installed the Microsoft RDLC Report Designer 2022 but I still can't find the report.

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
735 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,794 questions
asked 2023-03-27T13:04:37.4366667+00:00
Ahmed Elnoury 0 Reputation points
answered 2023-03-27T15:21:14.3533333+00:00
Michael Taylor 41,191 Reputation points
4 answers

SQL Server 2022 install on Windows 10 fails with error that .NET is not installed, but it is installed and up to date

I have installed SQL Server 2022 Developer edition successfully on a Windows 10 and 11 virtual machine. The issue is that I cannot install it on a physical machine. During the install, I get the following fatal error. I have tried to install the latest…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
885 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
9,118 questions
asked 2023-03-23T18:04:44.7966667+00:00
MJ Skeet 0 Reputation points
commented 2023-03-27T14:49:17.24+00:00
MJ Skeet 0 Reputation points
2 answers

the service microsoft.visualstudio.shell.interop.iselectioncontainer already exists in the service container in VS2022

I recently installed Visual Studio 2022 Professional edition on my machine windows 2010. I'm just trying to create a sample windows form project and trying to open the designer / form by double clicking on Form1.cs and I'm getting this weird error…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,834 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.
464 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,568 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
885 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
492 questions
asked 2023-03-24T14:39:48.4166667+00:00
Sunny Sharma 1 Reputation point
commented 2023-03-27T14:15:33.1266667+00:00
Michael Taylor 41,191 Reputation points
1 answer

Access Control

Good morning, I am working on a .NET Core 6, SQL Server project and I need some idea of how to implement permissions by fields, let me explain: in a form, for example, that has [Name, Surname, Date, Address, Gender] to be able to assign in an access…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,834 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
885 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
735 questions
asked 2023-03-23T12:15:43.6866667+00:00
Juan A. Reyes Paulino 0 Reputation points
commented 2023-03-27T14:05:55.5+00:00
Juan A. Reyes Paulino 0 Reputation points