25,023 questions with .NET-related tags

Sort by: Updated
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
answered 2024-07-26T09:32:47.71+00:00
SurferOnWww 2,491 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
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,228 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
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-26T08:31:40.64+00:00
Jerry Fu - MSFT 576 Reputation points Microsoft Vendor
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,228 questions
asked 2024-07-19T13:57:05.1266667+00:00
dedeepya yarlagadda 40 Reputation points
commented 2024-07-26T08:31:32.38+00:00
dedeepya yarlagadda 40 Reputation points
1 answer

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
commented 2024-07-26T08:25:08.9766667+00:00
William Liu 326 Reputation points
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,228 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,228 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
0 answers

How long has the player tapped on the iOS/Android display screen? How can I measure the time?

In my game the player needs to tap on the iOS/Android display screen to make a gameplay action. I want to find out how long the player pressed his finger against the display screen. For example, if the player pressed his finger 1 second on the screen…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,886 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,228 questions
asked 2024-07-22T14:08:15.7066667+00:00
Kim Strasser 876 Reputation points
edited a comment 2024-07-26T07:16:19.0266667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 29,381 Reputation points Microsoft Vendor
0 answers

Using Xamarin.Google.UserMessagingPlatform with MAUI for presenting a GDPR consent message

I am trying to present a GDPR consent message in a MAUI app using the Xamarin.Google.UserMessagingPlatform NuGet package. I'm targeting Android 34 on .NET 8. I have used both this: https://stackoverflow.com/a/71299843/7360423 and this:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,228 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,645 questions
asked 2024-07-25T08:45:20.6933333+00:00
Costas Athan 46 Reputation points
commented 2024-07-26T06:49:15.36+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 39,391 Reputation points Microsoft Vendor
1 answer

Will Azure Face Liveness Detection be available on .NET MAUI ?

We want to use Azure Face Liveness Detection on .NET MAUI, however the only available supported methods are Kotlin/Java , IOS, and JavaScript for Web Application. Is there any upcoming SDK for .NET MAUI ,if so, when is the expected date of release. Thank…

Azure Face
Azure Face
An Azure service that provides artificial intelligence algorithms that detect, recognize, and analyze human faces in images.
158 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,228 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,645 questions
asked 2024-07-24T15:18:32.8233333+00:00
Maroun ElKady 0 Reputation points
commented 2024-07-26T06:43:20.1866667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 39,391 Reputation points Microsoft Vendor
2 answers

How to repair the visual studio community bottom windows ?

I can't get rid of one of them and return to the default where there is one window at the bottom. I tried the dock on each window i tried to reset the templates or environment, i can't remember but i found in google something. but everything i tried…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 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,886 questions
asked 2024-07-09T15:43:25.0366667+00:00
Chocolade 516 Reputation points
commented 2024-07-26T06:28:14.0666667+00:00
Jiachen Li-MSFT 29,106 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Relase of NET 9

Hi, When is the realse of NET 9 ? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,228 questions
asked 2024-07-25T11:46:14.73+00:00
Dani_S 3,336 Reputation points
accepted 2024-07-26T06:27:26.6666667+00:00
Dani_S 3,336 Reputation points
4 answers

*I cannot call an aspx file from within an MVC5 web app controller method

     Hi, I have two MVC5 webapp projects.     Proja references projb.     When proja instantiates a new projb object called projbObj.     I call a method from projbObj called DisplayLoggingMaint().     But when I debug this, the debug stops at the call…

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-22T19:34:38.8933333+00:00
iqworks Information Quality Works 276 Reputation points
edited a comment 2024-07-26T06:00:51.9533333+00:00
SurferOnWww 2,491 Reputation points
1 answer

403 Forbidden - Links in ASP.NET code behind

I am building my website in ASP.NET Web Forms with User Accounts. I have just the example template that comes with the ASP.NET webforms and I'm going through trying to connect all the 2FA ans SendGrid peripherals. I would really like to read the…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
661 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-23T00:11:39.3533333+00:00
Jeremy Winslow 0 Reputation points
commented 2024-07-26T05:49:38.47+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
1 answer

About MVC support please

<div class="row" id="education-seminar-forms-BilgisayarBilgi"> @for (int i = 0; i < Model.tBL_BilgisayarBilgisis.Count; i++) …

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-19T17:44:19.46+00:00
kadir 60 Reputation points
commented 2024-07-26T05:48:17.7+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
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,228 questions
asked 2024-07-24T16:32:53.43+00:00
MT 5 Reputation points
commented 2024-07-26T05:44:28.43+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 29,381 Reputation points Microsoft Vendor