Microsoft Q&A

.NET

21,737 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

21,737 questions with .NET-related tags

Sort by: Updated
4 answers

How do determine which path format is invalid?

When I attempt to publish my Maui App and click "Publish" I get the cannot create an IOS archive because the process cannot be executed on XMA server - the "Unzip" task failed unexpectedly the given path's format is not…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,153 questions
asked 2023-11-27T04:57:14.8866667+00:00
Brett Whittaker 0 Reputation points
edited a comment 2023-12-01T08:21:15.12+00:00
Daniel 0 Reputation points
1 answer

How to implement both a user registration and log in in a blazor webassembly asp.net core 8 using Azure AA B2C

I have followed this guidance: Secure an ASP.NET Core Blazor WebAssembly standalone app with Azure Active Directory…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,759 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.
1,198 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
17,508 questions
asked 2023-11-21T13:48:50.3833333+00:00
risto l 0 Reputation points
commented 2023-12-01T08:18:50.8333333+00:00
risto l 0 Reputation points
2 answers

How to deploy MAUI app with ClickOnce method.

I'm trying to build and publish very simple hello world Maui application and deploy it with click Once method : https://learn.microsoft.com/en-us/visualstudio/deployment/clickonce-deployment-dotnet?view=vs-2022 I'm suing this command to build and…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,153 questions
asked 2023-11-30T12:22:05.8866667+00:00
Igor Markiv 0 Reputation points
edited an answer 2023-12-01T08:18:36.32+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 24,591 Reputation points Microsoft Vendor
0 answers

Empty response in webapp

Hello, we have a .NET 7 webapp which often (more than 70% of cases) returns a blank page. In particular, the response content length is always 2470 bytes. Due to this content truncation, the response contains only a part of the HTML head and no body, and…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,759 questions
asked 2023-12-01T08:12:25.5266667+00:00
Michele Guion 6 Reputation points
0 answers

android:exported needs to be explicitly specified for element

I'm using an AndroidAltBeaconLibrary library When compiling, it modifies my mainfest.xml and puts some settings there: <receiver android:enabled="true" android:exported="false"  /> When I try to copy I get the error: Error…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,153 questions
asked 2023-11-30T14:44:34+00:00
Ivan Teles - iDev Web 1 Reputation point
commented 2023-12-01T08:05:12.89+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 58,011 Reputation points Microsoft Vendor
0 answers

Switch Maui doesn't display the right OnColor and ThumbColor in .NET8

Hi team, I use <Switch IsToggled="True" OnColor="Green" ThumbColor="Red"> in .NET8 in VS 2022 v17.8.2 On Android, it always displays like image below even i change OnColor and ThumbColor I didn't check it on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,153 questions
asked 2023-11-30T09:05:15.44+00:00
Nam Pham 71 Reputation points
edited a comment 2023-12-01T08:03:11.2533333+00:00
JessieZhang-MSFT 7,551 Reputation points Microsoft Vendor
0 answers

Does anyone have a code example of how to use the ActivityIndicator

I have several things in an app that happen on a control click. I have now spent most of today trying to find out how this works. The worst "docs" is Microsoft Learn as it's "example" has no relevance to actual things that happen.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,153 questions
asked 2023-11-29T20:37:31.6866667+00:00
Lloyd Sheen 1,261 Reputation points
commented 2023-12-01T08:02:12.76+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 24,591 Reputation points Microsoft Vendor
1 answer

Is System.IO.Ports currently only support on Windows(using MAUI build)

Hello, I'm trying to develop some application with serial communication function on mac and Windows using MS's .Net MAUI for cross platform development. The same code works windows like open/close a port, send data read data, everything works perfectly.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,153 questions
asked 2023-11-30T04:57:36.8533333+00:00
준섭 김 0 Reputation points
answered 2023-12-01T07:56:15.6866667+00:00
JessieZhang-MSFT 7,551 Reputation points Microsoft Vendor
0 answers

Running Database-Update for EntityFrameworkCore returns A task was cancelled

I am trying to follow the Connect to and query Azure SQL Database using .NET and Entity Framework Core tutorial. When I try to run Update-Database from the Package Manager Console I get the following error: A task was canceled. I have provisioned the…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
629 questions
Azure SQL Database
asked 2023-12-01T00:22:11.71+00:00
Cory Bonallo 0 Reputation points
commented 2023-12-01T07:47:01.91+00:00
Cory Bonallo 0 Reputation points
1 answer

MAUI Firebase iOS not building

I am trying to implement and compile with Visual Studio 2022 in Windows 11 with push notifications in my MAUI application for both Android and iOS. I receive the following error when building: "Unable to copy file…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,079 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,153 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
6,724 questions
asked 2023-11-30T14:50:44.0666667+00:00
RR 0 Reputation points
answered 2023-12-01T07:43:14.99+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 24,591 Reputation points Microsoft Vendor
1 answer

show total and grand total without postback

Hello This Is my sql data SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Table_1]( [ID] [int] IDENTITY(1,1) NOT NULL, [Field1] [varchar](50) NULL, [Field2] [varchar](50) NULL, [Field3] [varchar](50)…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,716 questions
asked 2023-11-29T16:44:27.1966667+00:00
RAVI 496 Reputation points
commented 2023-12-01T07:42:38.14+00:00
Lan Huang-MSFT 19,756 Reputation points Microsoft Vendor
0 answers

What do I describe code of UWP dll without imporoting solution by C++?

Hello! I use VS 2022. I'm leadrning UWP dll. I am describing test code of it. I have a problem. That code cannot refer UWP class,for example Text Box,out of solution of VS project. How to solve solve this problem?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,296 questions
Universal Windows Platform (UWP)
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.
3,313 questions
asked 2023-11-26T23:30:40.0633333+00:00
nippy 25 Reputation points
commented 2023-12-01T07:26:35.1+00:00
Junjie Zhu - MSFT 10,791 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to Open Local PDF file in WebView in .NET MAUI

Hi I have created sample .NET MAUI app for display local pdf file. I have kept my kayprotect_training.pdf file in the Resources/Raw/folder and set build action of kayprotect_training.pdf is MauiAsset. after that I create a pdfjs folder in the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,153 questions
asked 2023-11-23T10:44:34.9333333+00:00
Mane, PRASHANT GORAKH 51 Reputation points
commented 2023-12-01T07:25:59.87+00:00
Mane, PRASHANT GORAKH 51 Reputation points
0 answers

multi filter not working without postback

Hello This is my aspx page <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <html> <head runat="server"> <script…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,716 questions
asked 2023-11-30T13:09:32.9233333+00:00
RAVI 496 Reputation points
commented 2023-12-01T07:25:04.5466667+00:00
RAVI 496 Reputation points
0 answers

.NET MAUI: I want to fetch data from remote server even when the app is closed.

I have a mobile application which needs to download some data periodically from remote server. This should happen even when the application(android/ iOS) is not running in foreground or in background. Basically, I want the data to be downloaded from…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,206 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,296 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,153 questions
asked 2023-12-01T07:24:01.5166667+00:00
Dibyojyoti Majumder 0 Reputation points
1 answer

Templated control problems

I created a custom control public partial class TileControl : TemplatedView { public static readonly BindableProperty FooterTextProperty = BindableProperty.Create( nameof(HeaderText), typeof(string), typeof(TileControl), default(string)); …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,153 questions
asked 2023-11-30T19:17:48.71+00:00
Eduardo Gomez 2,831 Reputation points
edited an answer 2023-12-01T07:23:44.0866667+00:00
JessieZhang-MSFT 7,551 Reputation points Microsoft Vendor
1 answer

Flyout problems

Ok so this is kind of weird, I have a HomePage and a Registration page. They are registered in my appShell <ShellContent Title="loginPage" ContentTemplate="{DataTemplate view:LoginPage}" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,153 questions
asked 2023-11-30T01:54:13.74+00:00
Eduardo Gomez 2,831 Reputation points
edited the question 2023-12-01T07:19:56.69+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 58,011 Reputation points Microsoft Vendor
1 answer

I encountered an issue when trying to create a .NET MAUI project as .NET 6 doesn't seem to be available.

I recently installed Visual Studio 2022 (version 17.8.2) and opted for the .NET 6 framework during installation. While attempting to create an ASP.NET Core project, I was able to select .NET 6 successfully. However, I encountered an issue when trying to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,153 questions
asked 2023-11-30T09:39:54.5666667+00:00
Sarfaraz Sable 0 Reputation points
edited a comment 2023-12-01T07:02:51.4466667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 58,011 Reputation points Microsoft Vendor
0 answers

Focus/Unfocus event not triggering for DatePicker / Entry in .NET MAUI

Hi, While working with DatePicker, Focus and Unfocus events not getting triggered. and we observed the same behaviour for the custom entry when the user enter the data into the entry box and clicked out of the box unfocused event not triggered.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,153 questions
asked 2023-12-01T06:55:08.9666667+00:00
Mane, PRASHANT GORAKH 51 Reputation points
0 answers

Image Capturing from camera getting tilt to left 90 degree in MAUI

We have Implemented Photo capturing and choose photo from gallery and we also put one condition that if image size is greater that 512 KB then resize the image. And whenever the image size getting more that limit it is tilting to left by 90 degree. How I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,153 questions
asked 2023-11-30T17:18:22.6733333+00:00
Pratap Singh, Ayush 0 Reputation points
commented 2023-12-01T06:29:07.55+00:00
Pratap Singh, Ayush 0 Reputation points