Microsoft Q&A

.NET

20,620 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,620 questions with .NET-related tags

Sort by: Updated
1 answer

Message handler called outside of the Windows message loop. Please explain.

Initial conditions: Simple Windows Forms application (c#, .NET 4.6.1), dialog box containing among other controls, a combo box. The combo box contains several items. On using a certain control on the dialog's surface (e.g. pressing a button), the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,628 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,045 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.
8,965 questions
asked 2023-09-19T12:22:44.3966667+00:00
Milinovici, Gleb 0 Reputation points
commented 2023-09-25T08:17:01.1366667+00:00
Milinovici, Gleb 0 Reputation points
0 answers

How to run AI model in a Blazor frontend

Hi, What is the best way to run a AI model (programmed in Python) that has been deployed in Azure as a managed endpoint in the Blazor frontend of each user of a Blazor website? Is there a way to run the AI model in the Blazor frontend in a simple and…

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,077 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,919 questions
Azure Managed Applications
Azure Managed Applications
An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
93 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,104 questions
.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
131 questions
asked 2023-09-21T17:27:39.8233333+00:00
Héðinn Steingrímsson 0 Reputation points
commented 2023-09-25T08:14:00.14+00:00
santoshkc 5 Reputation points Microsoft Vendor
3 answers

What is the alternate IDE in place of Visual Studio MAC to support the .NET8 in the MAC system for the development of native .NET SDK style IOS projects ?

Hi Team, As we already know Visual Studio for MAC is going to retire in Aug 31, 2024. We are working on Migration of Xamarin Native Projects(Xamarin.Android and Xamarin.IOS) to .Net-Android /.Net-IOS Style Projects. What will be the alternate IDE for…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,148 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,045 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,777 questions
asked 2023-09-18T05:53:58.22+00:00
Sheetal Rodrigues 0 Reputation points
edited a comment 2023-09-25T07:57:17.4933333+00:00
Tianyu Sun-MSFT 20,686 Reputation points Microsoft Vendor
1 answer

How to get the data from start date to end date

How can I find data from database between two dates. Problem-1. How can I find the data from the database between the two dates if I consider the parameters. Problem-1. If I use date as parameter then my datatable doesn't show data. Problem-2. I want to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
asked 2023-09-24T17:33:46.7466667+00:00
jewel 461 Reputation points
edited a comment 2023-09-25T07:45:58.9133333+00:00
JasonPan - MSFT 2,456 Reputation points Microsoft Vendor
0 answers

ASP.NET CORE <> JWT

I want to add JWT Token authroization for https://github.com/KalyanAllam/VisitsApi and call the api in https://github.com/KalyanAllam/PatientPortal/blob/master/PatientPortal/Controllers/VisitsNewController.cs

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
asked 2023-09-25T07:01:43.4466667+00:00
Dotnet Engineer 260 Reputation points
edited the question 2023-09-25T07:40:34.2933333+00:00
Dotnet Engineer 260 Reputation points
1 answer One of the answers was accepted by the question author.

How to fix the 'An unhandled error has occured. Reload. x'

Because of this, i cant click nor navigate my components

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,104 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,846 questions
asked 2023-09-21T06:08:32.7733333+00:00
Neil Hyakkimaru 0 Reputation points
accepted 2023-09-25T07:38:11.04+00:00
Neil Hyakkimaru 0 Reputation points
4 answers One of the answers was accepted by the question author.

ASP.NET CORE WEBAPI Custom Filter <> Bearer Token

Seeing this article [http://dotnet-concept.com/Tutorials/2020/1/5800875/Web-API-Tutorial-Csharp-Part-3-Implementing-basic-Bearer-authentication-in-Web-API-application] I created a custom filter CustomAuthenticationAttribute , I am trying use Custom…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
asked 2023-09-23T04:54:58.3533333+00:00
Dotnet Engineer 260 Reputation points
commented 2023-09-25T07:36:42.4166667+00:00
Dotnet Engineer 260 Reputation points
0 answers

Text Getting Cut Off From Animated Label in WPF VB.NET Application

Hello, I have an application that has a text crawl in it. I am having some trouble getting the text crawl to go without chopping of the text. I want the crawl to scroll across the screen without reducing the width of the label. The animation works fine,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,045 questions
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,475 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,304 questions
asked 2023-09-09T17:43:34.66+00:00
Austin Althouse 26 Reputation points
edited a comment 2023-09-25T07:27:44.4733333+00:00
Hui Liu-MSFT 21,376 Reputation points Microsoft Vendor
2 answers

ComboBox Control how to define MaxLength of input Text

Hi, a client asked me a change. I have an app with several STANDARD ComboBoxes Control. Until this morning they were all defined with IsEditable="False". Now I have to give the possibility to the user to input a value even if it is not in the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,045 questions
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,475 questions
asked 2023-09-08T12:51:39.2933333+00:00
Dimitri Garmaise 291 Reputation points
commented 2023-09-25T07:17:57.5833333+00:00
Hui Liu-MSFT 21,376 Reputation points Microsoft Vendor
0 answers

how to use script files in blazor project inside index.html?

I have a blazor webassemly project , I want to use javascript files , I put them in wwwroot folder and call them in index.html by thos way <script src="/js/bracket.js"></script> I am sure the path is correct but also not working…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,045 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 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,104 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.
8,965 questions
asked 2023-09-25T07:15:58.0533333+00:00
Haneen Al-fakhry 0 Reputation points
0 answers

ServiceHost is freezing on multiple calls

Hi, I need to configure WCF for very fast parallel queries. Right now, the ServiceHost is melting just after 900 requests. It freezes and only after shutdown of a current instance it produces some calls of contracts, but only like 130 - 200 calls will…

Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
291 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.
8,965 questions
asked 2023-09-25T07:09:34.99+00:00
Rada Matěj 0 Reputation points
edited the question 2023-09-25T07:13:03.83+00:00
Lan Huang-MSFT 17,806 Reputation points Microsoft Vendor
0 answers

Pending Navigations still processing when navigating from page constructor or OnNavigated method in MAUI

I am using MAUI with .NET 7 and I want to implement login flow. Basic case I have is to have only 2 pages: Dashboard and Login. Third page is Loading page that will have no layout, just serves as a routing page. Flow is: Loading page is the first one…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,846 questions
asked 2023-09-24T09:50:19.78+00:00
Milos Ciprijanovic 0 Reputation points
commented 2023-09-25T07:09:21.62+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 53,756 Reputation points Microsoft Vendor
1 answer

Transfer the WebApi application to another PC, test it, without a development environment?

Hello, @AgaveJoe https://learn.microsoft.com/en-us/iis/application-frameworks/scenario-build-an-aspnet-website-on-iis/configuring-step-1-install-iis-and-asp-net-modules The target machine needs a host like IIS to host Web API. We have no idea how your…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,633 questions
asked 2023-09-24T16:42:14.5033333+00:00
Markus Freitag 3,361 Reputation points
commented 2023-09-25T07:02:13.2066667+00:00
Lex Li (Microsoft) 3,816 Reputation points
1 answer

How to get user name for Blazor server applications (EasyAuth)?

I configured azure app service using EasyAuth. I tried to get the user name in the article below, but the username was returned null. The EasyAuth is working…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 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,104 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,617 questions
asked 2023-09-21T06:31:02.0733333+00:00
takeolexus 60 Reputation points
commented 2023-09-25T06:52:29.1+00:00
JasonPan - MSFT 2,456 Reputation points Microsoft Vendor
1 answer

ASP.NET Core MVC: Unable to set focus on input element on view load

I am trying to set focus using javascript on the first unfocused input element of MVC view in a load window event listener. But element is focused only after page reloading. Attached browser - MS Edge I tried reloading the page programmatically using…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
689 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
985 questions
asked 2023-09-24T21:57:19.01+00:00
Stanislav Panferov 45 Reputation points
edited an answer 2023-09-25T06:37:03.1533333+00:00
AddWebSolution 161 Reputation points
0 answers

key for ticket in asp ticket store for login

I am doing app with login with ticket store. Problem is that I wish to obtain new key to be in cookie each time it is used. So I wish new key after each use. I tried to log out and log in controller to get new key but it fails to work. It gives me same…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
asked 2023-09-24T17:17:09.4166667+00:00
jacek.sniadecki2022 0 Reputation points
commented 2023-09-25T06:19:01.99+00:00
Brando Zhang-MSFT 2,166 Reputation points Microsoft Vendor
0 answers

how to use ForcedSampleCount in DX11.1.

Dear Microsoft Official, I hope this email finds you well. I am writing to seek your guidance regarding the usage of ForcedSampleCount in DX11.1. I have been working on a project that involves DirectX 11.1 and I am currently facing some challenges with…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
3,039 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,045 questions
asked 2023-09-22T01:48:29.0566667+00:00
DAVIDE VENCENT 0 Reputation points
commented 2023-09-25T06:16:51.0066667+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
1 answer

Visual Studio 2022 Xamarin iOS Cannot Automatically Restart App After Build

I use Microsoft Visual Studio Enterprise 2022 (64-bit) - Current Version 17.6.4. I have created a new blank project and connected it with iMac 2012 Catalina xCode 12.4 and Mac Book Pro 2018 Ventura xCode 14.3.1. Everytime I Build the app, at the first…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,148 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,777 questions
asked 2023-09-22T05:36:28.29+00:00
Yohanes AI 0 Reputation points
commented 2023-09-25T05:59:08.68+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,331 Reputation points Microsoft Vendor
1 answer

HttpListener used on Xamarin.IOS app. "Safari cant open the page because it couldn't connect to the server" error only on iOS 17 devices.

Our project uses the latest Xamarin and our app has a function that creates a HTTP server to store a html and config file, and we use SfSafariViewController to view the contents on the html file. However, after the release of iOS17, this function does…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,148 questions
asked 2023-09-20T06:21:25.29+00:00
ZNXJH 0 Reputation points
commented 2023-09-25T05:52:11.2433333+00:00
ZNXJH 0 Reputation points
1 answer

Use a different Blazor project inside the MAUI application

Hi there, I'd like to use a different project (within the same solution) to be used inside a MAUI webview. The structure looks like: Solution Blazor application MAUI wrapper application The MAUI wrapper application should start the Blazor…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,045 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,104 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,846 questions
asked 2023-09-20T18:24:09.8633333+00:00
Gerwim 0 Reputation points
commented 2023-09-25T05:39:22.11+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 21,196 Reputation points Microsoft Vendor