Microsoft Q&A

.NET

21,740 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

21,740 questions with .NET-related tags

Sort by: Updated
0 answers

Is there any way to open pdf url in web view

Hi, I was trying to open pdf url in webview in .NET MAUI but it was showing blank screen. <WebView x:Name="web_view" Source="https://s29.q4cdn.com/175625835/files/doc_downloads/test.pdf" />

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

How to disable predictive back button icon for the maui android app

Hello. Please help to find a solution to disable the predictive back button icon for the MAUI android

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,154 questions
asked 2023-11-29T12:16:30.3266667+00:00
Hakob Hovhannisyan 21 Reputation points
commented 2023-12-01T08:40:33.73+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 58,166 Reputation points Microsoft Vendor
6 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,154 questions
asked 2023-11-27T04:57:14.8866667+00:00
Brett Whittaker 0 Reputation points
commented 2023-12-01T08:36:21.6466667+00:00
Daniel 0 Reputation points
0 answers

Dot Net 8 Blazor Webassembly not able to handle datatype

@foreach (var schemeSearch in schemeSearchList) { <div class="v-pipe"> <span class="heading">Expense Ratio % </span> <p class="value12 mb-2">@(schemeSearch.ExpenseRatio != null ?…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,760 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,199 questions
asked 2023-12-01T08:32:19.5066667+00:00
Jayant Guru 0 Reputation points
0 answers

Auto adjust panel

HI experts , I want to create a custom panel which when after dragging on form should auto adjust its width according to the width of the parent Form . Pls suggest how to do it .

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,728 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.
9,442 questions
asked 2023-12-01T08:25:15.49+00:00
Rajkumar Rao 80 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,760 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,199 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,509 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,154 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,760 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,154 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,166 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,154 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,154 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,154 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,154 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,154 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,154 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,154 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