Microsoft Q&A

.NET

12,940 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,940 questions with .NET-related tags

Sort by: Updated
0 answers

iOS application getting crashed "Could not set up parent class, due to: Invalid generic instantiation"

In a .Net MAUI project app is getting crashed when I am deploying it on device. below is the exception I am getting Any idea why this is happening always?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
892 questions
asked 2023-01-31T09:28:45.81+00:00
Suyash Sadh 0 Reputation points
commented 2023-02-01T11:43:56.82+00:00
Suyash Sadh 0 Reputation points
0 answers

Setup MRTK3 Environment in Unity 3D

How to set up MRTK3 in Unity and enable OpenXR Settings fo HoloLens?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
619 questions
asked 2023-02-01T11:35:10.09+00:00
Maxim Rusch 0 Reputation points
2 answers

500 internal server error in Windows server 2012 with IIS 8 for ASP.net core 6 mvc

I know this is a common errors but i am getting desperate and frustrated. I have published to folder my ASP.net Core 6 MVC application and deployed in a server running Windows 2012 and IIS 8 and I am getting the server error 500. I have tried going…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,183 questions
asked 2023-01-27T02:50:11.1333333+00:00
cebuhax0r 21 Reputation points
answered 2023-02-01T11:23:04.1833333+00:00
Limitless Technology 9,291 Reputation points
0 answers

How do you clear all cookies before loading a site using WebView on Windows

I'm working on a .NET MAUI Application targeting .NET 6 and have a hard time clearing the cookies before using a WebView to load a site on Windows. How do you interface with underlying cookie manager in this scenario?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
892 questions
asked 2023-02-01T11:22:28.9333333+00:00
Oliver Weichhold 0 Reputation points
3 answers

physical server cannot be added to a team PCI-E nıc card

hello everyone server hp gen 10v2 it has a LOM onborad 10g nic card and extra PCI-E 10g cards installed on PCI slot but we can not add PCI-E cards in a team we get this mesages "cannot be added to a team" normally we could added to team LOM and…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,183 questions
Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
258 questions
asked 2023-01-27T07:29:30.18+00:00
Deniz Armagan 0 Reputation points
answered 2023-02-01T11:14:54.1766667+00:00
Limitless Technology 9,291 Reputation points
0 answers

Exception "Scheme already exists" when trying to implement multiple authentication schemes

For a Azure app service that uses two different app registrations for internal and external users I want to implement multiple authentication schemes. I use a ASP.NET Core web application (.NET6) with the following app…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,321 questions
asked 2023-01-26T11:56:01.52+00:00
Jörg Auberg (Admin) 0 Reputation points
commented 2023-02-01T11:11:09.33+00:00
Shweta Mathur 11,081 Reputation points Microsoft Employee
0 answers

getting errors while migrating to MAUI

I have tried migrating existing forms project to MAUI I have used .NET Upgrade Assistant dotnet tool and ran these commands dotnet tool update --global upgrade-assistant upgrade-assistant upgrade <path to sln or csproj> --non-interactive…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
892 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
619 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,810 questions
Microsoft Intune iOS
Microsoft Intune iOS
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.iOS: An Apple mobile operating system.
17 questions
Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
27 questions
asked 2023-02-01T05:24:37.6933333+00:00
Satya 0 Reputation points
edited a comment 2023-02-01T11:00:47.42+00:00
Satya 0 Reputation points
2 answers One of the answers was accepted by the question author.

draw an image in picturebox

HI I want to draw an image with mouse event in a picbox. similar to this:

.NET
.NET
Microsoft Technologies based on the .NET software framework.
619 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,829 questions
asked 2023-02-01T07:24:22.07+00:00
user20 141 Reputation points
commented 2023-02-01T10:29:03.09+00:00
user20 141 Reputation points
0 answers

Why I can't Fake-Mock "System" in .net core 6.0(VS Enterprise 2022)

Why I can't Fake-Mock "System" in .net core 6.0(VS Enterprise 2022), I don't know what happened?   I was trying to use "using System.Fakes; " , But it alert "missing an assemly reference" after following …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 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,416 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying a test as a means of analysis or diagnosis.
252 questions
asked 2023-01-31T10:06:39.3233333+00:00
Angelina Jolie 0 Reputation points
commented 2023-02-01T10:12:28.0266667+00:00
Tianyu Sun-MSFT 12,921 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

how to bind to taghelper property in razor pages?

[HtmlTargetElement("pagination")] public class PaginationTagHelper : TagHelper { [HtmlAttributeName("page-index")] public int PageIndex{get;set;} } and in Index.cshtml <pagination page-index="PageIndex" /> I can not…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 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.
400 questions
asked 2023-01-30T05:36:04.64+00:00
打玻璃 1,526 Reputation points
accepted 2023-02-01T09:45:37.13+00:00
打玻璃 1,526 Reputation points
0 answers

Unable to find OpenReadstream in image upload functionality in blazor

Hi i am trying to get image url from selected images.The challenge i am facing here is i am not supposed to touch the  OnFilesChanged methode directly.I need to create a seperate class and access the original class items.How i can get image url of each…

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,955 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.
786 questions
asked 2023-02-01T09:40:56.8366667+00:00
RAMAN RAGAVAN 46 Reputation points
edited the question 2023-02-01T09:44:22.4033333+00:00
RAMAN RAGAVAN 46 Reputation points
2 answers

Which image is displayed on my Samsung Android tablet when I start my application? Can I change it?

I get the following screen on my Samsung tablet when I start debugging my Android application: image2.jpeg A short time later my splash image is displayed: image1.jpeg And finally a short time later the bar with the icons at the bottom is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
892 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,955 questions
asked 2023-01-14T11:16:24.1433333+00:00
Kim Strasser 361 Reputation points
commented 2023-02-01T09:36:38.7466667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,141 Reputation points Microsoft Employee
1 answer

'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.)

I want to receive and display push notifications on my iPhone/iPad but I get the following message in Visual Studio for Mac: 'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.) I use .NET…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
892 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,955 questions
asked 2023-01-30T12:24:14.4933333+00:00
Kim Strasser 361 Reputation points
edited an answer 2023-02-01T09:31:47.2+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,666 Reputation points Microsoft Employee
2 answers

Edge browser showing windows security popup

We have implemented MSAL authorization in our web application but when we are executing visual studio code locally, solution running fine with IE but not with edge browser, its showing windows security credentials popup.

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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 questions
Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
1,331 questions
asked 2023-01-24T07:21:08.0833333+00:00
Nitin Patil 0 Reputation points
commented 2023-02-01T09:31:28.2466667+00:00
ShiJieLi-MSFT 1,666 Reputation points Microsoft Employee
0 answers

Error when using await in override void onAppearing

Hi Team, I'm actually moving my app from xamarin to .net maui. In one of my app page. An alert is displayed when the screen is loaded. Using the protected override void OnAppearing(). But when I do the same in .net maui, the app crash before the page is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
892 questions
asked 2023-01-17T10:10:28.53+00:00
Daniel Desire 21 Reputation points
commented 2023-02-01T09:18:44.97+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,141 Reputation points Microsoft Employee
0 answers

Verify digital signature on xml in .net core

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:car="http://www.absd.com/cargoport" > <soapenv:Header> <wsse:Security xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-…

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,955 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
619 questions
asked 2023-02-01T07:10:02.9+00:00
NK, SatishKumar 41 Reputation points
commented 2023-02-01T09:15:21.8433333+00:00
Jack J Jun 19,061 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

Auth cookie is deleted by the browser when it closes

I have a strange problem. When I close my browser (whether Chrome or MS Edge), my authentication cookie is deleted. Consequently, the next time I start the browser, I have to log in again. My controller looks like this: ClaimsIdentity claimsIdentity =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 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.
786 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,955 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 questions
asked 2023-01-31T19:34:06.25+00:00
perfect code 141 Reputation points
edited a comment 2023-02-01T09:12:50.5066667+00:00
perfect code 141 Reputation points
1 answer

Encrypt password at client side

I am using SHA256 encryption technique to encrypt / decrypt password. But that Encrypt method is server side so while POST the password travels without getting encrypted. Is there a way I can encrypt it at client side using Ajax $.ajax ?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
619 questions
asked 2023-01-31T07:20:30.37+00:00
Adeel Mirza 1 Reputation point
commented 2023-02-01T09:12:13.07+00:00
Jiale Xue - MSFT 1,646 Reputation points Microsoft Employee
0 answers

MauiSplash to fill the screen

Hi, Using: <ItemGroup> <MauiSplashScreen Include="Resources\Splash\splashscreen.svg" /> </ItemGroup> How can I make the splash image to fill the screen vertically and horizontally? Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
892 questions
asked 2023-01-25T21:51:19.36+00:00
Jassim Al Rahma 1,086 Reputation points
commented 2023-02-01T08:44:18.8866667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,496 Reputation points Microsoft Employee
1 answer

Linq query and violation of inserting null in database

Hello All, I have the following two model classes: public partial class EmployeeInfo { public int EmployeeInfoId { get; set; } public string LastName { get; set; } = null!; [DisplayName("First Name")] public string FirstName { get; set; } =…

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,955 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 questions
asked 2023-01-31T01:42:14.5866667+00:00
Anjali Agarwal 81 Reputation points
answered 2023-02-01T08:38:24.66+00:00
Xinran Shen - MSFT 881 Reputation points Microsoft Employee