Microsoft Q&A

.NET

20,697 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,697 questions with .NET-related tags

Sort by: Updated
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,869 questions
asked 2023-09-19T14:24:15.5166667+00:00
Sreejith Sreenivasan 391 Reputation points
commented 2023-09-28T19:04:54.7166667+00:00
Rob Caplan - MSFT 5,212 Reputation points Microsoft Employee
1 answer

can we see other users chat messages

can we see other users chat messages but I am not saving any message in DB is this possible and how is possible

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
497 questions
Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
292 questions
asked 2023-09-28T05:25:50.9133333+00:00
Harish Palsande 0 Reputation points
answered 2023-09-28T18:58:32.2033333+00:00
Grmacjon-MSFT 11,666 Reputation points
0 answers

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,576 questions
asked 2023-09-28T14:22:16.5666667+00:00
Dotnet Engineer 320 Reputation points
commented 2023-09-28T17:24:50.67+00:00
AgaveJoe 595 Reputation points
3 answers

How to secure API KEY in .net MAUI?

I am new to .Net MAUI but fairly experienced with ASP.NET CORE and Blazor. I'm developing a MAUI application that will allow a user to integrate with third-party services using API keys. My issue is, I'd like to store API Key securely and nobody can…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 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,998 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.
243 questions
asked 2022-10-16T08:11:56.553+00:00
ASAD ALAM 1 Reputation point
edited a comment 2023-09-28T16:13:55.2966667+00:00
Bruce (SqlWork.com) 44,621 Reputation points
1 answer

How to deploy or use .Net MAUI Blazor app in Tizen browser instead of native apk or .tpk (direct browsing in tizen tv)?

Is it possible to publish or host the .net maui blazor app to the server and browse it in the Tizen TV internet like browsing ? Or Is it only possible by creating .tpk and installing it in developer mode on tizen tv as a native app ? Requirement: To show…

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,110 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 questions
asked 2023-09-28T11:42:30.4+00:00
Mounika Booreddy 1 Reputation point
answered 2023-09-28T16:05:53.1666667+00:00
Bruce (SqlWork.com) 44,621 Reputation points
1 answer

Blazor default template application issue

Hi all. in the default template application of blazor when clicking the button the count variable is increasing by 1. but when navigate to other component and then return to the Counter component the count value is reset to 0 what changes I need to do in…

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,110 questions
asked 2023-09-28T14:59:18.6+00:00
Haviv Elbsz 1,226 Reputation points
answered 2023-09-28T15:39:33.6066667+00:00
Bruce (SqlWork.com) 44,621 Reputation points
3 answers

How to fix this error "warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect."

Good evening , I am trying to build a simple web api using ASP.Net . The app has been showing the error like this after building it - warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,576 questions
asked 2023-06-03T08:29:57.58+00:00
Vaishnavi P 5 Reputation points
edited an answer 2023-09-28T15:23:10.1133333+00:00
Doris Ann Augustine 0 Reputation points
1 answer

How to get all active session of the logged in user in .net core mvc

I'm currently working on a .net 7 mvc project. How can I get all the active sessions of a logged in user in .net core mvc. This is my setup currently: builder.Services.AddDistributedSqlServerCache(options =>     {         options.ConnectionString =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,576 questions
asked 2023-09-28T00:58:48.76+00:00
John Russel Punio 0 Reputation points
answered 2023-09-28T15:18:34.9466667+00:00
Bruce (SqlWork.com) 44,621 Reputation points
0 answers

LINQ and VB 2015 : Select Distinct in Sub-List of Objects...

Hi, this is a simple example about my task. I have a List of Objects, let's say a group of Persons and each Person has a Property which is a List of other type of Objects, let's say Colors. I'd like to get a Distinct List of all Colors kept by all…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,060 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,316 questions
asked 2023-09-28T15:16:16.5533333+00:00
Marco Gregori 41 Reputation points
0 answers

Multiple types of Distributed Cache in ASP.NET Core

I would like to use Redis and In-Memory for IDistributedCache dependency injection. Is this possible? If so, how would you go about configuring this in Startup.cs?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,576 questions
asked 2023-09-28T05:21:08.6233333+00:00
John Russel Punio 0 Reputation points
commented 2023-09-28T15:15:33.91+00:00
John Russel Punio 0 Reputation points
1 answer

issue in opacity of the parent form and panel

Hi , my other problem is there is a scenario in which i have a form named child which is opened inside a panel of a form named father . what i am trying is when i press F2 on my keyboard a new form opens asking for current date . at this moment i want…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,631 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,998 questions
asked 2023-09-23T11:43:45.1433333+00:00
Shaifali jain 220 Reputation points
edited a comment 2023-09-28T14:45:28.3633333+00:00
KOZ6.0 560 Reputation points
2 answers

System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing.

Hi, Everybody!... I am trying to parse the following XML…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,060 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,639 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,998 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2023-09-27T22:41:28.2466667+00:00
Julio Bello 201 Reputation points
commented 2023-09-28T14:28:56.64+00:00
Julio Bello 201 Reputation points
0 answers

Azure Cognitive Search - Spell Checker Implementation in C#

I am looking for implementing spell checker for the azure cognitive search in C#. For now I have reviewed the spell checker link from the official Microsoft documentation: https://learn.microsoft.com/en-us/azure/search/speller-how-to-add But there's no…

Azure Cognitive Search
Azure Cognitive Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
401 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,576 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,998 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
1,687 questions
asked 2023-09-28T14:28:44.4133333+00:00
sachin sipl 0 Reputation points
1 answer One of the answers was accepted by the question author.

JWT Bearer Authentication Load to API fails

I created API with JWT Token , I know I need to pass credentials but just for test purposes I used get method instead of post. https://github.com/KalyanAllam/VisitsApi Where Auth Controller generates the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,576 questions
asked 2023-09-27T05:57:10.0133333+00:00
Dotnet Engineer 320 Reputation points
accepted 2023-09-28T14:16:05.8333333+00:00
Dotnet Engineer 320 Reputation points
0 answers

Error while trying to debug Xamarin app iPhone. MT1007: Failed to launch the application:Invalid Service Error

I am trying to debug my xamarin.iOS application in my iPhone. Visual studio 2022 17.7.4 Xamarin iOS : 16.4.0.15 xCode : 13.3.1 mac OS: Monterey 12.6.7 iPhone version (where the app is to be debugged) : iphone 12, 16.6.1 error MT1007: Failed to launch…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,160 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
839 questions
asked 2023-09-28T10:30:26.01+00:00
Gith 0 Reputation points
edited a comment 2023-09-28T14:08:46.7633333+00:00
Tianyu Sun-MSFT 20,686 Reputation points Microsoft Vendor
0 answers

dotnet monitor to prometheus metrics

I get no results from the /metrics url. How can I get metrics to work?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,060 questions
asked 2023-09-28T13:35:04.3133333+00:00
Boaz Davidoff 0 Reputation points
2 answers One of the answers was accepted by the question author.

VS 2022 .net6 core C#. Application.StartupPath is different at run time.

Hi, I am trying to capture my project home directory: string exeFolder = Application.StartupPath; While i test app i am getting path with MyPath"bin\Debug\net6.0-windows". in result i cannot access my report folder with reports. Is there a…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,631 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,576 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,998 questions
asked 2023-09-23T00:46:59.4233333+00:00
Ed Januskis 66 Reputation points
commented 2023-09-28T13:22:39.97+00:00
Ed Januskis 66 Reputation points
0 answers

ArgumentNullException on add-migration com.

Hello, I'm still on my app dev which is a Blazor Wasm with it's API (developped with .Net core 7.0) and I try to create an EF Core migration, but I've got an issue. N.B.: I use environment variables to set my connection string (to change it…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
587 questions
asked 2023-09-28T13:07:03.4866667+00:00
Laurent Guigon 221 Reputation points
0 answers

Environment Variable : ArgumentException: Format of the initialization string does not conform to specification starting at index 0

Hello Houston, I've got a problem! I read somewhere that we can utilize an environment variable to configure the connection string, and we can provide new values in CI/CD pipelines. Consequently, I modified my appsettings.json file to rely on an…

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,110 questions
asked 2023-08-26T17:47:42.6833333+00:00
Laurent Guigon 221 Reputation points
commented 2023-09-28T12:51:58.96+00:00
Laurent Guigon 221 Reputation points
0 answers

Image inside a DataGrid in a FixedDocument Error

I have created this small demonstration project to highlight a problem I have encountered when working with an Image within a DataGrid created in C# and then utilised within a FixedDocument.…

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,480 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,998 questions
asked 2023-09-28T12:40:04.9533333+00:00
BigH61 501 Reputation points