Microsoft Q&A

.NET

20,791 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,791 questions with .NET-related tags

Sort by: Updated
1 answer

How do I get the FreeTextTable.Rank via Entity Framework

Hi all; I'm able to get a list of records using FreeTextTable in Entity Framework as follows: var EventsSqlWhere = $"SELECT top 200 * FROM FreeTextTable(Events, *, {0}, 200) as t INNER JOIN Events u on u.Id = t.[KEY] ORDER BY t.[RANK]…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
592 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
11,037 questions
asked 2023-10-01T21:17:12.57+00:00
David Thielen 1,426 Reputation points
commented 2023-10-05T01:08:34.89+00:00
David Thielen 1,426 Reputation points
0 answers

Add-Migration InitialCreate throws an exception, but is successful

When I run Add-Migration InitialCreate it successfully creates the EF classes. But it also throws the following exception: PM> Add-Migration InitialCreate -context TrackingDbContext Build started... Build…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
592 questions
asked 2023-10-05T00:59:56.8933333+00:00
David Thielen 1,426 Reputation points
1 answer

Sending email function is not sending email

Hi, My send email function is not working on my emulator or on the mobile from the app store. Am I missing something? Like some permissions etc? private async void SendFeedbackEmail() { try { var…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,167 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-04T05:44:13.34+00:00
Matthew Zoljan 80 Reputation points
answered 2023-10-05T00:51:41.63+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,481 Reputation points Microsoft Vendor
1 answer

staticwebapp.config.json is being ignored

I'm hosting a blazor wasm app in azure static web apps but my staticwebapp.config.json is being ignored. I've tried placing it in the root folder and /wwwroot. I'm deploying through visual studio This is the contents of the json file: { …

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
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
557 questions
asked 2023-09-27T11:27:57.19+00:00
Anton 0 Reputation points
answered 2023-10-04T23:44:56.01+00:00
Ryan Hill 21,286 Reputation points Microsoft Employee
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,080 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 a comment 2023-10-04T23:42:30.6866667+00:00
KOZ6.0 1,545 Reputation points
2 answers One of the answers was accepted by the question author.

Reducing opacity of swipe images

How do I reduce the opacity of images in a swiper container, except for the image that is swiped to display in the middle? For example, as the images are swiping through, any image that appear in the middle will be clear while the other ones beside will…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,080 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,646 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
623 questions
asked 2023-10-03T12:11:36.16+00:00
Donald Symmons 2,086 Reputation points
accepted 2023-10-04T23:28:46.5166667+00:00
Donald Symmons 2,086 Reputation points
0 answers

is there any way to force stop the ProcessMessageAsync handler when the thread keeps running in background?

My http function app tried to make a call to Service Bus to collect messages every 5 minutes and cancel after 5 seconds to response the consumer. [FunctionName("QueryHandler")] public async Task<IActionResult> Run( …

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
449 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,473 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,080 questions
asked 2023-10-04T22:44:49.0866667+00:00
ValdoG 0 Reputation points
0 answers

how to get sleep or hibernate (powermode)events in .net maui?

I am trying to find events which gets fired when system goes to sleep mode and comes back. In my application we need to trigger the events which should get called when system goes to sleep mode and come back from sleep mode.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,080 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,890 questions
asked 2023-10-04T21:20:55.91+00:00
Shah, Paridhi 0 Reputation points
edited the question 2023-10-04T22:17:52.33+00:00
Isabela Hoban 91 Reputation points Microsoft Employee
4 answers

Working on a tutorial and cannot find the Web Site Administration Tool.

Hello, I am working on a login tutorial and cannot find the Web Site Administration Tool to use to configure asp.net. Here is a link to the tutorial: https://learn.microsoft.com/en-us/previous-versions/aspnet/yh26yfzy(v=vs.100) I vaguely…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,646 questions
asked 2022-06-29T01:41:15.137+00:00
AlphaCr8tive 1 Reputation point
commented 2023-10-04T22:15:34.76+00:00
Bruce (SqlWork.com) 45,121 Reputation points
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,835 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
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,890 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,080 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,890 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