Microsoft Q&A

.NET

21,756 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

21,756 questions with .NET-related tags

Sort by: Updated
0 answers

Maui view does not update Binding value correctly

Hi everyone, I am using VS2022 Version 17.7.0 to create a C# Maui app and class myself as a beginner. I have been following Youtube videos and have my MVVM design working (to a point so far). I have the CommunityToolkit.Maui and Community Toolkit.MVVM…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,159 questions
asked 2023-12-01T05:54:27.94+00:00
John Rutherford 21 Reputation points
commented 2023-12-02T04:53:29.5433333+00:00
John Rutherford 21 Reputation points
0 answers

How to get the radio status dynamically created?

Radio groups are created dynamically,like: function add(){ str= "<td><input name='rd' value='aa' type='radio'></td>" + "<td><input name='rd' value='bb' type='radio'></td>" …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,761 questions
asked 2023-12-02T02:35:25.1833333+00:00
Alick Wang 186 Reputation points
0 answers

chinese characters not displayed correctively in aspnetcore 8 Bazor web app

I have upgraded my Blazor Server App to aspnetcore8. After the upgrade, Chinese characters not correctively displayed when you view page source. see attached screen shot It is greatly appreciated if someone can help to solve the problem!

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,303 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,203 questions
asked 2023-12-01T12:14:34.8566667+00:00
Qun Shen 0 Reputation points
commented 2023-12-02T00:03:39.34+00:00
Qun Shen 0 Reputation points
1 answer

Upgrading C# NET Core 7.0 to 8.0 in Visual Studio IDE - Guidance and Suggesgtions

The format of this isn't great. But, I was getting weird unintended markdown changes to the text I originally entered. This was an upgrade of a .NET Maui Project and the .NET Core 7.0 to 8.0. I am providing this post to see if we (or Microsoft) might be…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,303 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,084 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,452 questions
asked 2023-12-01T19:07:07.91+00:00
Todd Albers 1 Reputation point
edited the question 2023-12-01T22:59:42.75+00:00
Todd Albers 1 Reputation point
1 answer

DateTime.Now returns UTC Time if we build Xamarin.Android app with azure pipeline.

Hi, Team, We have currently one project associated with Xamarin.Android. DateTime.Now returns UTC Time instead of returning local time only when we build Xamarin.Android app with azure pipeline. It is working fine if we create build using visual…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,206 questions
asked 2023-09-13T12:56:12.17+00:00
Shingala A 15 Reputation points
answered 2023-12-01T22:59:13.3166667+00:00
Graham McKechnie 241 Reputation points
1 answer

How to format razor pages in blazor in visual studio 2022

Hi, we are having problems with formatting after upgrade to visual studio 2022. In visual studio 2019 we could format our razor files pretty well, in visual studio it looks really bad. We cannot use 2019 anymore because of the .net 7.

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,203 questions
asked 2023-02-02T09:09:50.9866667+00:00
Ante Gavranovic 5 Reputation points
edited a comment 2023-12-01T22:10:40.0366667+00:00
Evoy, Kellen 0 Reputation points
0 answers

MAUI - Hello World does not run on Emulator

I am following the documentation: https://dotnet.microsoft.com/en-us/learn/maui/first-app-tutorial/device-setup I created the simple Hello World for a .NET MAUI app. On my physical device it works, but not on emulators. I created an Android emulator for…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,159 questions
asked 2023-12-01T22:05:09.1366667+00:00
Andrew S Bissada 0 Reputation points
commented 2023-12-01T22:07:02.4566667+00:00
Andrew S Bissada 0 Reputation points
0 answers

AWS Systems Manager not getting Credentials from Profile

Hello! I have two local projects that are setup similarly. Except the one that works is in .NET 7.0 and the new one that doesn't work is 8.0.   I'm trying to setup the ability for my local dev environment to grab parameters from the AWS Parameter Store.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,303 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,452 questions
asked 2023-12-01T21:57:22.4266667+00:00
Shane M 0 Reputation points
1 answer

How to enable Drag gesture on Android plateform with .net MAUI ?

Hello I made a simple MAUI c# project with an implementation of drag and drop in my MainPage https://github.com/pierre-yves-cmd/montestdd The sample work well on Windows Plateform but on Android, the drag gesture seem to be not triggered. When i use…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,159 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,452 questions
asked 2023-12-01T13:12:48.4633333+00:00
Pilou 0 Reputation points
answered 2023-12-01T21:07:25.8433333+00:00
Pilou 0 Reputation points
0 answers

App Crashes while registering with Notification Hub under Release build, but not Debug

I created an app that uses Azure Push Notifications. I've been able to get it to run on a physical iPad without any problems under a debug build. But when I try to implement it under a release build, it crashes. My debugging skills indicate that the…

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
218 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,303 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,084 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,159 questions
asked 2023-12-01T20:09:41.9133333+00:00
AARON PRICE BEHUNIN 0 Reputation points
commented 2023-12-01T21:03:46.8433333+00:00
AARON PRICE BEHUNIN 0 Reputation points
1 answer One of the answers was accepted by the question author.

How can I get an open folder dialog in WPF?

I cannot find an OpenFolder dialog in WPF. I looked at the MS help, and it said to create a reference to Systems.Windows.Forms.dll. The only reference I could find is in the picture below. I added this to my WPF project. but when I tried to put in the…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,553 questions
asked 2023-11-29T23:38:21.7366667+00:00
David Reinke 0 Reputation points
accepted 2023-12-01T21:02:35.39+00:00
David Reinke 0 Reputation points
1 answer

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,761 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,203 questions
asked 2023-12-01T08:32:19.5066667+00:00
Jayant Guru 0 Reputation points
answered 2023-12-01T20:11:09.18+00:00
Bruce (SqlWork.com) 48,481 Reputation points
0 answers

Why is my web app is down with 503 after upgrading from .NET Core 6 to 8, with no errors in application insights or the log stream?

The site worked with .NET Core 6. I updated it to .NET Core 8, changed the configuration in the App Service to >NET Core 8 and....503 errors. I turned on logging and Application Insights. No errors are shown in the log stream on in the Application…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,761 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,032 questions
asked 2023-11-30T19:52:36.39+00:00
Joe Wilson 0 Reputation points
commented 2023-12-01T20:07:50.8633333+00:00
Thomas Meads 1,421 Reputation points
1 answer

How to Monitoring and Navigating URLs in Blazor Maui with Social Authentication

I'm currently working on a Blazor Maui app using C# and integrating UAE Pass authentication. In my application, I need to monitor and navigate URLs within a Blazor page, such as Login.razor. I attempted to achieve this using an iframe, but encountered an…

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,203 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,159 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,452 questions
asked 2023-12-01T06:06:18.66+00:00
Raju Gadda 66 Reputation points
answered 2023-12-01T20:03:54.9066667+00:00
Bruce (SqlWork.com) 48,481 Reputation points
0 answers

.NET MAUI Hybrid Razor Template App Freezes on macOS

I am using the C# Dev Kit VS Code extension to create a .NET MAUI Blazor Hybrid Template app on macOS. I'm running XCode 14.2 and mac 12.7.1. When I create the template app and run it on VS Code with macOS set as my debug target, the build is successful,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,159 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,452 questions
asked 2023-12-01T16:59:49.0833333+00:00
Chase Naples 0 Reputation points
commented 2023-12-01T19:58:54.8966667+00:00
Bruce (SqlWork.com) 48,481 Reputation points
3 answers

adding header (banner) image to webform

looking to add a banner to my webform using CSS i was able to add the background image using the code below. any help would be appreciated. <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm2.aspx.vb"…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,716 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,400 questions
asked 2023-11-29T00:09:13.8933333+00:00
Joseph Hedbon 121 Reputation points
commented 2023-12-01T17:16:37.75+00:00
Joseph Hedbon 121 Reputation points
3 answers

resource mipmap/myicon not found. How to fix this?

I have a VS 2019 Xamarin app. It had previously compiled OK and was distributable. The app's icon is poorly formed so I updated it. But now when I rebuild I get the icon changed in the Manifest to android:icon="@mipmap/myicon" and that…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,206 questions
asked 2021-08-12T14:19:00.83+00:00
Ronald GANS 136 Reputation points
answered 2023-12-01T17:11:18.87+00:00
Todd Albers 1 Reputation point
1 answer

What is the safest (least dependencies) to log startup in a Blazor app on Azure

Hi all; When my Blazor app first starts, before the ILogger system is initialized (or fails initialization), I want to be able to log four things: The very first line in main() - so I know the app started. About to call builder.Build() If there was a…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,761 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,203 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,032 questions
asked 2023-11-29T06:12:16.52+00:00
David Thielen 1,556 Reputation points
commented 2023-12-01T17:06:32.5066667+00:00
David Thielen 1,556 Reputation points
0 answers

Is there a way to wait for a ManualResetEventSlim to be Reset()?

Hi all; The call ManualResetEventSlim.Wait() waits for the event to be set. I need the opposite, it has been set and I'm now waiting for it to be reset. Is there a way to do that? I can't flip my event object, it is used to process a queue of messages…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,303 questions
asked 2023-11-30T22:05:28.58+00:00
David Thielen 1,556 Reputation points
commented 2023-12-01T16:58:59.67+00:00
David Thielen 1,556 Reputation points
1 answer One of the answers was accepted by the question author.

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,159 questions
asked 2023-11-30T19:17:48.71+00:00
Eduardo Gomez 2,851 Reputation points
commented 2023-12-01T16:52:30.1533333+00:00
Eduardo Gomez 2,851 Reputation points