16,398 questions with .NET-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Cannot parse "7,345.55" to 7344.55 maui blazor

I am not able parse Close value example close has "7,324.55" its is giving as 4550. string clsd = columns[8].Replace("\"", ""); bool isCloseParsed = false; var close = 0.0f; if…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,976 questions
asked Mar 5, 2025, 7:39 PM
Kalyan A 420 Reputation points
commented Mar 6, 2025, 10:07 AM
Kalyan A 420 Reputation points
1 answer

How to fix a cryptographic keys error

I have recently upgraded the my web app to .Net9. I am now getting this error message from a call to CosmosDB to get a specific record... System.Security.Cryptography.CryptographicException: The key {92c2f09a-14ff-4cea-8f15-e09dcec74987} was not found in…

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
21 questions
asked Feb 22, 2025, 6:17 PM
Raymond Starkey 5 Reputation points
commented Mar 6, 2025, 9:03 AM
Raymond Starkey 20 Reputation points
7 answers One of the answers was accepted by the question author.

How to create Excel file with Visual Studio 2022 and C#

I'm working with Visual Studio 2022, Project WPF C# with .Net 6.0 and Entity Framework Core. DataBase MS SQL Express.I have also a valid and active licence Microsoft Office 365. I try to Create an Excel File but I have different error msg (see…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,104 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,175 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.
11,324 questions
asked Aug 6, 2023, 3:37 PM
Dmtr_Grms 331 Reputation points
commented Mar 6, 2025, 8:43 AM
subbarayan C 0 Reputation points
2 answers One of the answers was accepted by the question author.

how to disable AOT in Maui

how to disable AOT in Maui My MauiApp runs ONLY in 'debug' mode! According to the .net, VS, Maui community I found many recommendations to disable AOT. Although, I never got an error msg to this direction! In .csproj I tested with 'all' combinations…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,976 questions
asked Mar 1, 2025, 8:09 AM
Eduard Kaufmann 291 Reputation points
accepted Mar 6, 2025, 8:00 AM
Eduard Kaufmann 291 Reputation points
1 answer

flipping card update

I create a live tile using System.Diagnostics; namespace LiveTileControl.Controls; public partial class LiveTileControl : ContentView { private bool _isFlipping; public LiveTileControl() { InitializeComponent(); …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,976 questions
asked Mar 5, 2025, 11:41 PM
Eduardo Gomez Romero 1,315 Reputation points
edited a comment Mar 6, 2025, 7:27 AM
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,996 Reputation points Microsoft External Staff
3 answers

I have a scenario where I need to read/write from the primary database for normal operations but for some operations I need to read from an alternate server (a replication target that's read only that we use for reporting). With the way the new Core API

public class ReadOnlyContext : BaseDbContext { public ReadOnlyContext(ITenantInfo currentTenant, DbContextOptions<ReadOnlyContext> options, ICurrentUser currentUser, ISerializerService serializer, IOptions<DatabaseSettings> dbSettings,…

Entity Framework Core Training
Entity Framework Core Training
Entity Framework Core: A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.Training: Instruction to develop new skills.
7 questions
asked Mar 3, 2025, 12:54 PM
Bharathi Hattikal 40 Reputation points
commented Mar 6, 2025, 6:54 AM
Hongrui Yu-MSFT 4,840 Reputation points Microsoft External Staff
1 answer

Entra ID integration in .NET Maui App

For the 3 separate cross platform apps (.NET Maui) with 2 of them having the need for passwordless authentication and one need to have email password with MFA authentication. Can I integrate authentication in mobile apps without Browser by using the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,976 questions
asked Mar 5, 2025, 10:36 AM
Paramjit Singh 191 Reputation points
answered Mar 6, 2025, 5:30 AM
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,996 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

Excel is not visible for Android

Hello, I have created a test project to show Excel using web view. Here is the GitHub URL TestWebVeiw. I am trying to open the Excel file using WebView. The Excel is visible on the iPhone, but it shows a blank page when I try to run it on Android. I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,976 questions
asked Feb 18, 2025, 11:11 AM
Chinmay Dole 220 Reputation points
commented Mar 6, 2025, 5:26 AM
Chinmay Dole 220 Reputation points
2 answers

Android app nowgetting "requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified" crash

I have a Visual Studio 2022 Xamarin Android app (I know it's now unsupported) that has worked fine for many years. It uses NuGet packages for Firebase, etc. After November 4 (probably the Firebase November 15 release), when the app is in the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,976 questions
asked Feb 25, 2025, 7:51 PM
fbs419 46 Reputation points
commented Mar 6, 2025, 5:13 AM
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 80,521 Reputation points Microsoft External Staff
1 answer

how to translate matrix in .net.android?

I want to use canvas in .net.android and want to draw cube on it. I create custom view and rewrite ondraw how to draw one cube using canvas? if there is x,y,z and width height how to draw it?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,976 questions
asked Mar 5, 2025, 7:06 AM
mc 5,166 Reputation points
answered Mar 6, 2025, 3:19 AM
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 80,521 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

windows phone live tile replica don't work

Hello, I am a big fan of Microsoft live tiles (Windows phone days) So I made my own <StackLayout Padding="0"> <control:LiveTileControl Title="My live tile" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,976 questions
asked Mar 4, 2025, 8:12 PM
Eduardo Gomez Romero 1,315 Reputation points
accepted Mar 5, 2025, 11:28 PM
Eduardo Gomez Romero 1,315 Reputation points
3 answers

No templates or subcommands found matching: 'blazorserver'

Question Under "Create Blazor components" Section There is a dotnet command for creating a Blazor app by using the blazorserver template in CLI, it doesn't work anymore. The command is below: dotnet new blazorserver -o BlazingPizzaSite -f…

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
21 questions
asked Jun 7, 2024, 11:18 AM
FRED 10 Reputation points
commented Mar 5, 2025, 5:03 PM
jp McCoy 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to invalidate ".AspNet.Cookies" cookie on logout?

I have a .net application deployed to Azure. A penetration test finding called "Session Not Invalidated After Logout" is found. When an API Get request is sent along with .AspNet.Cookies while user is logged in, a successful response is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,104 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,598 questions
asked Jul 16, 2024, 11:05 AM
Abhishek, Burra 30 Reputation points
commented Mar 5, 2025, 2:43 PM
Müller Matthias 0 Reputation points
13 answers

SQL Server 2022 install on Windows 10 fails with error that .NET is not installed, but it is installed and up to date

I have installed SQL Server 2022 Developer edition successfully on a Windows 10 and 11 virtual machine. The issue is that I cannot install it on a physical machine. During the install, I get the following fatal error. I have tried to install the latest…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,104 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,490 questions
asked Mar 23, 2023, 6:04 PM
MJ Skeet 40 Reputation points
answered Mar 5, 2025, 2:02 PM
Jon Ellison 0 Reputation points
1 answer One of the answers was accepted by the question author.

ACCESS ONEDRIVE

I have an MS account and use OneDrive. I am developing a .NET MAUI (8.0) app that should be able to access a specific folder in my OneDrive and download/upload files in this folder. The only authorization required should be my MS account. This task seems…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,976 questions
asked Mar 4, 2025, 10:34 AM
Giorgio Sfiligoi 326 Reputation points
commented Mar 5, 2025, 10:39 AM
Giorgio Sfiligoi 326 Reputation points
1 answer

MAUI: Blank space on the UI in between the contents and font style issue

I have a label, image and a webview on the UI. My XAML: <ScrollView Grid.Row="0" Orientation="Vertical" VerticalOptions="FillAndExpand"> <VerticalStackLayout Grid.Row="0" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,976 questions
asked Feb 27, 2025, 1:54 PM
Sreejith Sreenivasan 961 Reputation points
commented Mar 5, 2025, 8:31 AM
Sreejith Sreenivasan 961 Reputation points
1 answer

How to Stop Previous Audio When Playing a New One in .NET MAUI

In my .NET MAUI application, I am using MediaElement from the .NET MAUI Community Toolkit and WebView to play audio files. However, I am facing an issue where if I play audio on one page, it continues playing even when I navigate to another page and play…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,976 questions
asked Feb 25, 2025, 6:00 PM
Sreejith Sreenivasan 961 Reputation points
answered Mar 5, 2025, 8:16 AM
Sreejith Sreenivasan 961 Reputation points
1 answer One of the answers was accepted by the question author.

How to detect the flyout Open and Close in MAUI

I would like to detect the flyout open and closing event

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,976 questions
asked Mar 4, 2025, 4:58 PM
Vaibhav Methuku 120 Reputation points
accepted Mar 5, 2025, 6:26 AM
Vaibhav Methuku 120 Reputation points
1 answer

BinScope Tool Compatibility for .NET Applications

Dear Microsoft Support Team, I have a query regarding the BinScope tool. It is my understanding that this tool is used to check compiler protection for C/C++ applications. Could you kindly confirm whether BinScope can also be used for .NET applications,…

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
19 questions
asked Mar 4, 2025, 11:44 PM
Mohammad Raza 0 Reputation points
answered Mar 5, 2025, 5:46 AM
Pradeep M 6,315 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

Will data will in Preferences and SecureStorage after updating the app.?

I'm updating the application, I would like to know will the preferences and secure storage will be cleared after updating the application (Android or iOS)

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,976 questions
asked Mar 4, 2025, 5:00 PM
Vaibhav Methuku 120 Reputation points
accepted Mar 5, 2025, 5:23 AM
Vaibhav Methuku 120 Reputation points