Microsoft Q&A

.NET

12,944 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,944 questions with .NET-related tags

Sort by: Updated
1 answer

How to share image along with text (both image and text) on same request using Xamarin essential

I want to share image file along with text in my mobile application. I am using Xamarin essential. but with this either I am able to share image or text. how to share both on a single request?

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,956 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,812 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
558 questions
asked 2023-02-01T13:28:35.8566667+00:00
Moon 1 Reputation point
answered 2023-02-01T14:27:45.0533333+00:00
Reza Aghaei 3,171 Reputation points Microsoft MVP
1 answer One of the answers was accepted by the question author.

MAUI - CollectionView and scrolling - not working with IOS emulators

Hi I have an issue with my App and CollectionView and scrolling, when testing with IOS emulators. The scrolling does not work on any IOS emulators if more than one page is displayed. It works fine with Android and Windows. Below is a snippet of…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
894 questions
asked 2023-01-01T20:41:30.207+00:00
Riffy 206 Reputation points
accepted 2023-02-01T14:23:13.64+00:00
Riffy 206 Reputation points
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.
894 questions
asked 2023-01-31T09:28:45.81+00:00
Suyash Sadh 0 Reputation points
edited a comment 2023-02-01T14:19:32.0233333+00:00
Suyash Sadh 0 Reputation points
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.
446 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
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,190 questions
asked 2023-01-28T08:50:16.07+00:00
Peter_1985 1,831 Reputation points
edited a comment 2023-02-01T13:47:09.4833333+00:00
AgaveJoe 17,106 Reputation points
0 answers

Azure Function (.NET 7 Isolated) create an Azure Function App targeting .NET6?

Today I deployed a new Azure Function App targeting .NET 7 Isolated as framework on Azure. To create the resource on Azure I used the wizard present on Visual Studio 2022, so I both created the new resource and deployed it using VS2022. Going to view the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,546 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,588 questions
asked 2023-02-01T12:39:52.9166667+00:00
Pietro Matteo Peru 0 Reputation points
0 answers

Will Xamarin Native be supported in MAUI world

Hello. I've found official end-of-support date for Xamarin: https://dotnet.microsoft.com/en-us/platform/support/policy/xamarin But I've heard, tht Xamarin Native is technology behind MAUI, and it will continue to be supported after that date. It will be…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,812 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
894 questions
asked 2023-02-01T12:25:06.19+00:00
Сергей 0 Reputation points
0 answers

Call Windows open popup/alert/dialog platform specific code

Hi, I would like to open from platform specific code an alert in Windows. I know I can do it from await Application.Current.MainPage.DisplayAlert("dad", "dsadas", "cancel"); but I want it from platform specific. So…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
894 questions
asked 2023-02-01T12:18:57.5133333+00:00
vanKraster 126 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…

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,956 questions
asked 2023-02-01T09:40:56.8366667+00:00
RAMAN RAGAVAN 46 Reputation points
edited a comment 2023-02-01T12:10:10.1633333+00:00
AgaveJoe 17,106 Reputation points
1 answer

Azure multi tenant microservice architecture and many app registrations

Let's say I have a multi tentant microservice architecture fronted with an API gateway of which a client app calls to access the microservices behind. Let's say it's grown to a complex system that has 50 microservices all needing user…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,546 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,634 questions
asked 2023-01-28T15:31:40.0166667+00:00
Dan 0 Reputation points
edited the question 2023-02-01T12:03:39.34+00:00
SnehaAgrawal-MSFT 11,176 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,546 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,956 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 161 Reputation points
commented 2023-02-01T11:44:23.4233333+00:00
AgaveJoe 17,106 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,546 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,188 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.
894 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,188 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,546 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,318 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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,812 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
894 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
619 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.
28 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,830 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,546 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,546 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
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-30T05:36:04.64+00:00
打玻璃 1,526 Reputation points
accepted 2023-02-01T09:45:37.13+00:00
打玻璃 1,526 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.
894 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,956 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