Microsoft Q&A

.NET

14,000 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

14,000 questions with .NET-related tags

Sort by: Updated
3 answers

Blazor Server- AD B2C - Public, User and Admin sections with simple .net core identity authentication / authorization technique

Update - I now believe combining @Michael Washington Azure AD Groups solution with my custom AuthorizationHandler solution is the best of both worlds. I don't have an example of it, but if you are going down this path, look in to it. Edited…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
881 questions
Azure Active Directory External Identities
asked 2021-12-06T04:25:38.993+00:00
Chad Bennett 1 Reputation point
commented 2023-03-25T20:07:52.72+00:00
Home Store 4U 0 Reputation points
1 answer

Maui android layout content to fite in screen size

Hello all. How I can ensure that my layout content fit in any device screen. I test my app in my phone and it's ok but how I can be sure that it will fit in any other android device. I know I can use scrollview. but I want to know if it possible to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,072 questions
asked 2023-03-25T19:11:24.9633333+00:00
Haviv Elbsz 666 Reputation points
answered 2023-03-25T19:20:28.8066667+00:00
Erkan Sahin 370 Reputation points
0 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.
881 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,553 questions
asked 2023-03-25T19:03:34.56+00:00
sblb 851 Reputation points
1 answer

Visual studio 2022 Installation error

Can someone help me? I am getting this warning when I try to install .NET development for visual studio 2022 : Couldn't install Microsoft.VisualStudio.Community.Shared.Msi

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,784 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.
980 questions
asked 2022-11-19T19:35:11.68+00:00
lambarini 1 Reputation point
commented 2023-03-25T19:02:21.8066667+00:00
Donald Whisenhunt 0 Reputation points
1 answer

error when try to get values from object parameter 'object' does not contain a definition for 'employeeID'

I working on blazor web application server side by csharp . I face issue i can't get values of properties employee id and department code from object parameter to insert value on table I get compile time error when try to get value for property employee…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
881 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,553 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,826 questions
asked 2023-03-25T06:27:34.5266667+00:00
Ahmed Salah Abed Elaziz 85 Reputation points
answered 2023-03-25T18:22:18.9933333+00:00
AgaveJoe 19,606 Reputation points
2 answers

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,921 questions
asked 2023-03-21T21:45:34.7833333+00:00
tbelvin 1 Reputation point
commented 2023-03-25T17:41:40.0133333+00:00
tbelvin 1 Reputation point
3 answers

ASP.NET Core MVC with Identity - ArgumentNullException: Value cannot be null. (Parameter 'value') on signInManager.PasswordSignInAsync

What's up everyone, I've been having this issue when implementing Identity authentication to my app. This is the error I get: ArgumentNullException: Value cannot be null. (Parameter 'value') System.ArgumentNullException.Throw(string…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,826 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
882 questions
asked 2023-03-17T13:35:56.4266667+00:00
Alexander J 0 Reputation points
answered 2023-03-25T17:12:40.4766667+00:00
Bruce (SqlWork.com) 31,251 Reputation points
2 answers

Printing a div card with exact styles as it appears on the web page

On my web form, I have these div card where there are labels with values, and two image controls. The labels on the card can have their font-family and color changed by the user o the client side to the desire of the user, using controls provided to do…

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
.NET
.NET
Microsoft Technologies based on the .NET software framework.
882 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,324 questions
asked 2023-03-25T13:15:41.9733333+00:00
Donald Symmons 1,246 Reputation points
answered 2023-03-25T17:06:35.6+00:00
Bruce (SqlWork.com) 31,251 Reputation points
1 answer

How to Increase None-Paged-Pool limit ??

Referring to the post on the link below, the size of NonePagedPool cannot exceed 128GB no matter how many RAMs are added to 1TB or…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
882 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
2,752 questions
asked 2023-03-25T13:03:11.34+00:00
이하운 0 Reputation points
edited an answer 2023-03-25T15:57:56.17+00:00
Bruce (SqlWork.com) 31,251 Reputation points
3 answers

Invoking azure functions server SignalR group functions from ASP.NET Core Client

I am trying to invoke azure functions server SignalR group functions from an ASP.NET Core client. The server side code that I am trying to invoke via an ASP.NET Core client can be found in this article. I have not found a single reference of a C#…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,826 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
81 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,787 questions
asked 2023-02-22T11:00:39.4466667+00:00
Bubba Jones 151 Reputation points
edited a comment 2023-03-25T15:35:23.5233333+00:00
Bubba Jones 151 Reputation points
0 answers

Why is Maui's "Colors.xml" not found building with Visual Studio Mac but is with Visual Studio Windows?

Using VS Mac 17.6 Preview 2, building a MAUI application, it is responding with "Resource "Resources/Styes/Colors.xml" not found (XFC0124)" as an error. Building the exact same code, just copied to the Mac for its build, with VS…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,072 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,784 questions
asked 2023-03-21T18:20:33.5833333+00:00
Marc George 66 Reputation points
edited a comment 2023-03-25T15:15:24.2533333+00:00
Marc George 66 Reputation points
2 answers

making an image box in Razor page

I want to make an image box on my razor page so that users can type or sign their name in that box. I want something like adobe acrobat offers. below is the screen shot: How can I achieve this.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,826 questions
asked 2023-03-23T04:44:53.9833333+00:00
Anjali Agarwal 636 Reputation points
commented 2023-03-25T15:12:35.4833333+00:00
Anjali Agarwal 636 Reputation points
2 answers

Displaying progress bar in asp.net mvc

Hi, I have written following controller : public ActionResult ProgressBarDisplay() { int count = 0; // reads the count from database and updates the count double percentage = (count / 9) * 100; return View(percentage); …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,826 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
733 questions
asked 2021-06-18T07:45:25.067+00:00
Santosh Umarani 81 Reputation points
commented 2023-03-25T14:23:49.6433333+00:00
Georg Grech 0 Reputation points
0 answers

I can't generate a Razor view in ASP.NET Core v7 - Package restore failed

I'm new in ASP.NET and I don't know exactly where is the error or which package is broken. It only occurs while generating a template of view. I can generate Controllers and empty Views normally. I reinstalled the Visual Studio, cleaned and rebuilt the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,826 questions
asked 2023-03-25T13:34:46.9633333+00:00
Rafael Andrade 0 Reputation points
edited the question 2023-03-25T14:09:27.51+00:00
Rafael Andrade 0 Reputation points
1 answer One of the answers was accepted by the question author.

Why .Net 8.0 does not show up as Traget Framework for a new .NET MAUI App on Mac?

I have installed both Visual Studio 2022 for Mac v17.6 Preview and .NET 8.0, all successfully installed. Platform: MacBook Pro, x64 (2.2 GHz, 6-core Intel Core i7, 16GB/256GB), macOS Ventura Version 13.1 I've also successfully run dotnet workload install…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,072 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,784 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
882 questions
asked 2023-03-25T13:20:50.44+00:00
dg2k 846 Reputation points
accepted 2023-03-25T13:30:30.2133333+00:00
dg2k 846 Reputation points
0 answers

Input control used to display and change font-family does not work with multiple javascript

I have controls that can be used to change font-family and colors of label controls. The input control is for changing font-family while the AjaxControlToolkit ColorPickerExtender is used to change labels color. At the top of my HTML page, I registered…

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
.NET
.NET
Microsoft Technologies based on the .NET software framework.
882 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,324 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
513 questions
asked 2023-03-25T13:21:23.1466667+00:00
Donald Symmons 1,246 Reputation points
1 answer One of the answers was accepted by the question author.

ContentView add GraphicView can display in android and not display in windows ? bug?

<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:drawables="clr-namespace:myMolly.Drawables" …

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,784 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,072 questions
asked 2023-03-14T15:48:50.56+00:00
Fei Xu 0 Reputation points
accepted 2023-03-25T12:41:13.1466667+00:00
Fei Xu 0 Reputation points
0 answers

Xamarin.forms : I have used the camera to capture images then i need to combine them in a single picture. The user firstly determine how many images is going to be captured (number of rows).how i can do this?

i have code for capturing

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,921 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,784 questions
asked 2023-03-25T12:03:27.2466667+00:00
RAZAN EMAD ADDIN ALQATANANI 0 Reputation points
3 answers One of the answers was accepted by the question author.

Exposing NET 7 classes as COM for Excel VBA (and vb6)

I have a .net 7 class library with GUID and ComVisible attributes defined. Also added EnableComHosting tag in csproj. After registering (regsvr32) the comhost.dll it is usable from e.g. Excel VBA, but only as late bound. Anyone able to guide me further…

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,553 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
882 questions
asked 2023-02-14T08:17:47.96+00:00
EuroEager2008 121 Reputation points
commented 2023-03-25T11:45:54.4266667+00:00
RLWA32 30,101 Reputation points
9 answers

I can't find ASP.NET Web Application (.NET Framework) with c#

Hello I want to use ASP.NET Web Application (.NET Framework), and I have downloaded Visual Studio Community 2019 v16.11.3, and i have clicked the ASP.NET and web devleopment before i download it but I can't find the one i needed, I don't want the…

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
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,324 questions
asked 2021-10-01T00:33:18.083+00:00
WEI HAN TAN 16 Reputation points
commented 2023-03-25T10:32:30.14+00:00
Slava Fleer 0 Reputation points