Microsoft Q&A

.NET

20,789 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,789 questions with .NET-related tags

Sort by: Updated
1 answer

If I publish Blazor WASM, and try to access any newly created routable component such as "/test", I am getting 404

Hi, I have Blazor WASM project, I've added new component called "Test.razor", it routes to @page "/test" If I run project through Visual Studio and try to access component through route, it works properly. e.g.…

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,116 questions
asked 2023-10-04T18:52:39.6266667+00:00
Rikam Palkar 41 Reputation points
edited a comment 2023-10-04T22:00:26.21+00:00
Bruce (SqlWork.com) 45,121 Reputation points
2 answers

No me deja crear proyectos ASP.NET y me sale el error HRESULT E_FAIL de una llamada a un componente COM

Hola, les quería preguntar si existe una solución para este error que me esta saliendo a la hora de crear un nuevo proyecto asp.net Framework pero si me deja usar el resto de proyectos. intente reparando, quitando modificaciones y reinstalando pero no se…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,646 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,834 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,043 questions
asked 2023-10-03T21:50:09.91+00:00
Varpu 0 Reputation points
answered 2023-10-04T21:31:03.5333333+00:00
Varpu 0 Reputation points
1 answer

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,594 questions
asked 2023-09-24T17:17:09.4166667+00:00
jacek.sniadecki2022 0 Reputation points
edited a comment 2023-10-04T21:27:32.7233333+00:00
Bruce (SqlWork.com) 45,121 Reputation points
0 answers

Hi, can someone help me figure out how to refactor the following code:

Hi, Im trying to figure out the best way to refactor the following code, could someone please help? The HasFlag method returns a bool. Any help would be much appreciated! var paymentResult = new MakePaymentResult(); switch (request.PaymentScheme) …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,078 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,043 questions
asked 2023-10-04T20:29:01.2766667+00:00
Aaron s1992 0 Reputation points
edited the question 2023-10-04T21:13:29.5633333+00:00
Aaron s1992 0 Reputation points
1 answer

Fade background behind a form

Good Morning , I have a form named form1 in which there is a panel named panel1 . I am using this panel to open rest of the forms of my project . form 2 , Form3 , form 4 and form5 . in which form3 is actually a login form . Now , form2 contains a button…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,643 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,043 questions
asked 2023-07-16T07:40:39.1733333+00:00
OmkarHcl 146 Reputation points
commented 2023-10-04T20:18:22.74+00:00
Karen Payne MVP 33,071 Reputation points
0 answers

How to override methods using Maui Handlers

I have a question, when I used Xamarin there was an option to override control's methods using Renderers. Now. MAUI has the concept of Handlers. How can I migrate that functionality to MAUI? I see there's code to change the control's appearance…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,889 questions
asked 2023-10-04T16:38:57.1966667+00:00
Junior Saravia 20 Reputation points
edited the question 2023-10-04T20:02:40.48+00:00
Rob Caplan - MSFT 5,227 Reputation points Microsoft Employee
0 answers

sélection de choix de réponse dans un Microsoft Forms

Good morning, I created a Microsoft Forms. In this Forms, there are 5 questions with a drop-down list for answers. And the answers appearing in the list, is the same answer choice for all 5 questions. The user should not be allowed to choose the same…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,643 questions
asked 2023-10-04T02:44:15.9+00:00
vicgazelle 0 Reputation points
commented 2023-10-04T19:37:11.67+00:00
Viorel 103.2K Reputation points
1 answer

Determine "Recommended" display resolution settings

Got the code that gets a list of the monitors (using EnumDisplayDevices) along with getting all the settings (using EnumDisplaySettings) for each monitor working just fine. However, when I right click my desktop and adjust the resolution one of the…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
8,927 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,078 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,043 questions
asked 2023-10-02T16:02:33.03+00:00
Dave Cotton 41 Reputation points
edited a comment 2023-10-04T19:30:37.5733333+00:00
Dave Cotton 41 Reputation points
1 answer

How to quickly make a temporary separate login/password form to display a closed website on the Internet?

Hi! The site (Net.Core 6) already has a working authentication, but it can only be used if temporary login is allowed. This site needs to be temporarily hidden for everyone on the Internet.It is necessary to make a temporary entrance to the site through…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,594 questions
asked 2023-10-04T14:01:39.5833333+00:00
Volk Volk 301 Reputation points
edited an answer 2023-10-04T18:49:52.69+00:00
Bruce (SqlWork.com) 45,121 Reputation points
1 answer

MAUI: Listview isvisible property is not working from the code behind?

I am trying to show the selected image or file on my UI on a listview. So initially the listview's IsVisible I set to false and after picking item I set the IsVisible property to true. My problem is after picking item the listview is not visible on the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,889 questions
asked 2023-09-19T14:24:15.5166667+00:00
Sreejith Sreenivasan 406 Reputation points
edited a comment 2023-10-04T18:30:26.79+00:00
Rob Caplan - MSFT 5,227 Reputation points Microsoft Employee
1 answer

Binding library with xcfranework

How to use xcframework in xamarin ios binding library

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,167 questions
asked 2023-10-02T22:28:48.4033333+00:00
Rishabh Pandey 0 Reputation points
commented 2023-10-04T17:33:27.5866667+00:00
Rishabh Pandey 0 Reputation points
2 answers One of the answers was accepted by the question author.

Background worker not setting textbox.backcolor in UI thread

[windows forms, dotnet 4.8.1 VB] I have several applications that use a common non-indexed "message log" database file to communicate - works great! Each application tells the dashboard app when it starts, reports progress, completes, and is…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,643 questions
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,095 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,322 questions
asked 2023-10-03T16:55:24.0233333+00:00
JBDayrelton 20 Reputation points
commented 2023-10-04T17:16:22.2333333+00:00
JBDayrelton 20 Reputation points
2 answers

NuGet Package restore failed...The underlying connection was closed.., error in VisualStudio ultimate 2012

Hi, Below is machine and VS details: Windows 7 Visual studio Ultimate 2012 Version 11.0.61219.00 Update 5 Microsoft .NET framework version 4.5.50709 Project: MVC 4 project - C# Everything was working fine till today; But my…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,078 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
991 questions
asked 2022-10-01T17:10:31.447+00:00
bharat 1 Reputation point
answered 2023-10-04T15:52:32.28+00:00
Bruce (SqlWork.com) 45,121 Reputation points
1 answer

Push notification on MAUI application using FCM

I am trying to implement push notification on my MAUI application using FCM. I follow this blog and I did everything as per the blog. They suggest to install only 2 NuGet packages, Plugin.Firebase and Plugin.Firebase.Crashlytics. (I installed it by…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,889 questions
asked 2023-09-29T10:06:12.68+00:00
Sreejith Sreenivasan 406 Reputation points
edited a comment 2023-10-04T15:23:19.7233333+00:00
Sreejith Sreenivasan 406 Reputation points
1 answer

Custom Filters (CustomAuthenticationAttribute) in MVC CORE

I created custom filter in MVC5, please suggest if there is some equivalent in MVC…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,594 questions
asked 2023-09-28T14:22:16.5666667+00:00
Dotnet Engineer 385 Reputation points
commented 2023-10-04T14:44:27.6133333+00:00
Dotnet Engineer 385 Reputation points
0 answers

Generating conditional email content

For the content of the email, I'm trying to add content based on the response to a form question. This is what I have & Power Automate doesn't like it. If possible, I want the No response to result in a…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,643 questions
asked 2023-10-04T14:24:07.2166667+00:00
Shana Kelso 0 Reputation points
1 answer

Execute msix with administrator privileges and run script

I am developing a Windows application with .NET MAUI and I am building the msix with Visual Studio, as stated in the .NET MAUI documentation: https://learn.microsoft.com/en-us/dotnet/maui/windows/deployment/publish-visual-studio-folder I don't know if it…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,889 questions
asked 2023-10-03T07:51:25.6666667+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
commented 2023-10-04T14:19:49.6066667+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
0 answers

How to quickly make a temporary separate login/password form to display a closed website on the Internet?

Hi The site (Net.Core 6) already has a working authentication, but it can only be used if temporary login is allowed. This site needs to be temporarily hidden for everyone on the Internet. It is necessary to make a temporary entrance to the site…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,594 questions
asked 2023-10-04T13:58:46.0366667+00:00
Volk Volk 301 Reputation points
0 answers

AMM0000 Error at AndroidManifest.xml in .Net MAUI app

Hi all, Pleas help advising the fix as the Visual Studio compiler cites error AMM0000 at line : <uses-sdk tools:overrideLibrary="com.microsoft.maui" android:minSdkVersion="19" /> in AndroidManifest.xml in .Net MAUI app after I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,889 questions
asked 2023-10-04T13:53:56.9733333+00:00
TD D 0 Reputation points
0 answers

Inquiry Regarding Customizing Tooltip Presentation for Macro Expansions

I am currently working on a development project that involves extensive use of macros, and I have found that the tooltips generated by the "Visualize Macro Expansion" feature do not always provide the desired level of readability and formatting…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,078 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,834 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,201 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
112 questions
asked 2023-10-04T13:44:14.9933333+00:00
Adrian P 0 Reputation points