25,026 questions with .NET-related tags

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

How do I fix an issue where deployed .NET 8 API to Azure App Service is just showing placeholder page and is not working?

I am trying to deploy a simple .NET 8 API to Azure App Service using the Github CICD which I setup from the App Service deployment center. After the initial setup, the Github Action ran successfully and in the overview I can see that the deployment was…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,407 questions
asked 2024-07-21T04:35:36.3066667+00:00
Jordan 20 Reputation points
commented 2024-07-26T19:20:28.9766667+00:00
Jordan 20 Reputation points
6 answers One of the answers was accepted by the question author.

How Do I Package and install a Released compiled version version of my .Net Framework?

This might be a simple question. I searched online and there was a lot of information that seemed to be just a distraction. How Do I Package and install a Released compiled version version of my .Net Framework? Do I just need to pass along the compiled…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 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.
10,648 questions
asked 2024-07-17T16:04:37.3133333+00:00
William Thompson 120 Reputation points
commented 2024-07-26T18:48:50.47+00:00
William Thompson 120 Reputation points
2 answers

The HttpClient documentation and usage

I am trying to use the HttpClient class in my code. I am using .NetFramework 4.7.2. When I look up how it can be used in my C# code, I go to https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpclient?view=netframework-4.7.2 The problem is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 questions
asked 2024-07-25T19:39:38.4566667+00:00
William Thompson 120 Reputation points
edited a comment 2024-07-26T17:02:44.8066667+00:00
William Thompson 120 Reputation points
0 answers

What is the replacement of Android.Support.V7.Graphics.palette in Maui world

I am using the following lines of code to extract the theme color of the bitmap image in Xamarin, and I am not able to find how to replace this with the working code in Maui. palette = Android.Support.V7.Graphics.Palette.From(bitmap).Generate(); var…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
asked 2024-07-26T16:18:06.6166667+00:00
khatauli 1 Reputation point
0 answers

What is the replacement of Android.Support.V7.Graphics.palette in Maui world

Hi Maui experts, I have a following piece of code in Xamain app, which I want to port over to Maui, but don't seem to find the alternative. The intent is to extract the main theme color from the bitmap image. Any ideas? palette =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
asked 2024-07-26T16:13:10.8666667+00:00
khatauli 1 Reputation point
1 answer

How to maintain Authentication State with Blazor 8 Server Interactive?

I have a setup a full example project here with a kludge where I have to manually call it to grab the state on every page. The problem is if the user refreshes the page then it will redirect to login because the Authorize will hit before the…

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,500 questions
asked 2024-07-25T14:02:27.5666667+00:00
Greg Finzer 0 Reputation points
commented 2024-07-26T16:03:36.7766667+00:00
Bruce (SqlWork.com) 61,731 Reputation points
0 answers

How to save files into Specific folders in Android

I am working on migrating the Xamarin Forms App to .NET MAUI 8. I wanted to save files in the Android folder as given in the below Package for backward compatibility. https://github.com/jamesmontemagno/MediaPlugin How can I achieve this in Maui .NET 8?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
asked 2024-07-26T13:21:47.3433333+00:00
Chinmay Dole 140 Reputation points
0 answers

Digital signature exe, slow startup

After I used the certificate to digitally sign my client program, it took me 20 seconds from double clicking the program to start to running to the first line of the main function. If I don't sign, I can immediately open the client. What is the reason…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,873 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 questions
asked 2024-07-26T09:29:41.7666667+00:00
Chaip 0 Reputation points
commented 2024-07-26T12:32:01.3833333+00:00
Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor
2 answers

Is it able to use collection expression to initialze a OrderedDictionary?

Here is the introduction for OrderedDictionary. My question is, is it able to write code something like below to initialize a OrderedDictionary? OrderedDictionary orderedDictionary = [{"testKey1", "testValue1"},…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 questions
asked 2024-07-26T06:48:16.44+00:00
William Liu 326 Reputation points
answered 2024-07-26T12:31:01.0733333+00:00
DennisRichi 0 Reputation points
1 answer

Unnessary folders after pulish in windows

Hi, Which folder are no need after publish : dotnet publish -f net8.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true /p:PackageCertificateThumbprint="c01ba45666762f3615cf6813aeb4dc4b1919541d"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
asked 2024-07-17T08:51:34.1133333+00:00
Dani_S 3,336 Reputation points
commented 2024-07-26T12:19:33.36+00:00
Dani_S 3,336 Reputation points
0 answers

Incorrect assessment result for Develop an ASP.NET Core web app that consumes an API

I attempted the assessment and successfully completed all the tasks. I am very sure that my result is calculated incorrectly. The result says I failed to Interact with an API which does not make any sense as I would not be able to proceed to other…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2023-11-10T18:01:12.33+00:00
Sheikh Saqib 20 Reputation points
edited a comment 2024-07-26T12:18:14.68+00:00
Fernie Monroy 0 Reputation points
1 answer

Dotnet Maui iOS app occasionally crashes on TestFlight on some devices

The MAUI app works fine on Android and most iOS devices, but a few users have reported that it crashes immediately after launch. However, I couldn't reproduce the error in my local environment. It is built with the latest: Xcode: 15.4 .Net 8.0.7 MAUI…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
asked 2024-07-24T16:32:53.43+00:00
MT 5 Reputation points
edited a comment 2024-07-26T11:54:51.1233333+00:00
MT 5 Reputation points
1 answer

net maui windows platform when maximaze or minimize the page I want to hide and show contents ?

net maui windows platform when maximaze or minimize the page I want to hide and show contents ? when my listing s detailpage opened small size how can i create events for my seconwindow page. maximize show some contents and then minimize back again…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
asked 2024-07-23T00:58:52.5833333+00:00
Sami 901 Reputation points
commented 2024-07-26T11:36:57.62+00:00
Sami 901 Reputation points
1 answer

Cannot switch from one tabbed page to other tabbed page, NotSupportedExceptionUnable to find the default constructor on type Microsoft.Maui.Controls.Platform.FragmentContainer.Please provide the missing constructor.

Hi In my project the Main page is a tabbedpage and when we switch from the main page to another page which is also a tabbed page we are seeing System.NotSupportedException: 'Unable to find the default constructor on type…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
asked 2024-07-19T13:57:05.1266667+00:00
dedeepya yarlagadda 40 Reputation points
commented 2024-07-26T10:44:25.1933333+00:00
dedeepya yarlagadda 40 Reputation points
0 answers

Navigation.PopAsync() is giving Java.Lang.IllegalArgumentException: 'No destination with ID 57 is on the NavController's back stack. The current destination is Destination(0x6) class=crc6452ffdc5b34af3a0f.NavigationViewFragment'

Hi, I have pushed a page into navigation stack using private async void OnAddDeviceTapped(object sender, EventArgs e) { Devices = new ObservableCollection<Test.Model.DeviceInfo>(_dbContext.GetAllDevices()); var addDevicePage = new…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
asked 2024-07-22T10:11:21.8366667+00:00
dedeepya yarlagadda 40 Reputation points
commented 2024-07-26T09:16:40.7333333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 39,391 Reputation points Microsoft Vendor
4 answers

Dynamic Folder Names with AjaxFileUpload

I'm attempting to replace the upload /download pages of our very old ASP classic web site with a web forms app. Keeping as much of the back end stuff the same is important as there is code (mostly VBA in Word, Excel and Outlook) in our daily operation…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,417 questions
asked 2024-07-18T17:04:20.35+00:00
Ken Krugh 116 Reputation points
commented 2024-07-26T08:14:09.76+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
1 answer

how to add serial number in quickgrid blazor

how to add serial number in quickgrid blazor

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,500 questions
asked 2024-07-23T17:19:21.51+00:00
Rahul Salokhe 0 Reputation points
edited an answer 2024-07-26T08:11:18.1733333+00:00
Jerry Fu - MSFT 576 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

flayout navigation - how to deal with rasing memory?

Hi, I used flayout navigation. when navigate beween pages it consume alot of memory. In net 8. Not relase the previous page. Does to use GC.Collect()? Is allowed ? Thanks, public void Navigate(string navigateTo) { if (navigateTo ==…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
asked 2024-07-14T14:42:45.7166667+00:00
Dani_S 3,336 Reputation points
commented 2024-07-26T07:58:08.7766667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 72,251 Reputation points Microsoft Vendor
2 answers

How to create a custom voice for use with System.Speech.dll?

How can I create a custom voice that I can then use with the Speech Synthesizer that comes with System.Speech.dll? Please provide me with step by step instructions.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 questions
asked 2024-07-24T21:42:55.72+00:00
Siddharth Jain 1 Reputation point
answered 2024-07-26T07:54:13.5633333+00:00
James Wood 0 Reputation points
0 answers

Getting foldable device info in Maui such has hinge rect info, and if the device is foldable or not

Hi there, In my xamarin android app, which I am moving to Maui, which relies on some foldable device info such as if the device is foldable or not, and if it is, what is the hinge width (such as surface duo). In Xamarin, I used jetPack apis, but it does…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
asked 2024-07-26T02:14:40.1233333+00:00
khatauli 1 Reputation point
commented 2024-07-26T07:23:58.9133333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 72,251 Reputation points Microsoft Vendor