Microsoft Q&A

.NET

20,653 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,653 questions with .NET-related tags

Sort by: Updated
0 answers

I'm going nuts over this. I can write to a cookie, and then read it again. But at some point, i want to update the value it holds. Whenever i get the cookie again, i get the initial value, not the updated one. Below is the code i use for write/update and

cookies are not updating hwen i update the clain or updating a permission in do net 6 public class UpdateCookieAuthenticationEvents : CookieAuthenticationEvents { public override async Task…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
585 questions
asked 2023-09-26T11:46:43.92+00:00
usha 0 Reputation points
commented 2023-09-26T14:26:26.4566667+00:00
AgaveJoe 520 Reputation points
1 answer

Maui Hybrid Power Bi embeded report ios issue

What is a proper way to configure power bi reports on ios for Maui blazor hybrid app. My current solution works in web, win, android but not in IOS, on IOS it opens power bi report iframe in safary(instead of rendering in app web view) and does not 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,105 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,861 questions
asked 2023-08-29T11:41:43.5266667+00:00
Sergey 0 Reputation points
answered 2023-09-26T14:22:46.1866667+00:00
Boorlagadda, Chaitanya 0 Reputation points
0 answers

Xamarin Android: Obtain the IMEI from a device with Android 10

One of our customers is updating his Android devices to version 10.0 (API 29). The app that our customer uses is manually installed via APK on each device. The app is NOT released via public stores. Each device is NOT associated with any physical person,…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,155 questions
asked 2023-09-26T14:01:48.5333333+00:00
Carugati 0 Reputation points
1 answer

Unable to open Power BI.api NUPKG file from Visual Studio

Hello Support team, We are trying to open microsoft.powerbi.api.4.16.0 NUPKG file from Visual Studio. It's throwing error - "The file is not displayed in the text editor because it's binary or uses unsupported text encoding". Screenshot…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,051 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,784 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.
242 questions
asked 2023-09-26T11:36:29.72+00:00
Kalpana P 0 Reputation points
answered 2023-09-26T13:54:04.0866667+00:00
Tianyu Sun-MSFT 20,686 Reputation points Microsoft Vendor
0 answers

Steps to upgrade my Xamarin Forms app to .net MAUI using MAC

Hi, I'm trying to upgrade my Xamarin Forms app to .net MAUI using Mac, but i'm unable to add ".net upgrade assistant" into my nuget extension. Could someone please help me with the steps on how to upgrade using Mac system. Thanks in…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,155 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,861 questions
asked 2023-09-26T13:54:00.96+00:00
Raghavendra G R 121 Reputation points
1 answer

Use Azure Function (.Net 6) with JwtBearer middleware

Hello, I couldn't find any official documentation on the following: I want Azure function to use bearer token authentication. Is it possible to use Azure Function (.Net 6) with JwtBearer middleware? So like in an ASP.NET app, set this code into…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,441 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,051 questions
asked 2023-09-19T15:32:07.0833333+00:00
Anita A 25 Reputation points
commented 2023-09-26T13:34:52.38+00:00
MuthuKumaranMurugaachari-MSFT 16,036 Reputation points
2 answers

Empty space occurs in secondary toolbar item MAUI

Here is my toolbar item In secondary toolbar item, empty space occurs before first element. <Shell.ToolbarItems> <ToolbarItem IconImageSource="fontsize" Order="Primary"/> <ToolbarItem…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,861 questions
asked 2023-09-25T15:16:08.6066667+00:00
Gnana 0 Reputation points
answered 2023-09-26T13:08:08.1766667+00:00
Gnana 0 Reputation points
0 answers

I have performance issue when i get int value from redis cache

I use Azure Redis cache in the .net core 7 project and I have an INT value and try to get it in the .net core 7 project. but my problem is that getting the value from the Redis cache takes too long like 500 milliseconds, is there any reason for…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,562 questions
Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
176 questions
asked 2023-09-26T11:24:01.6533333+00:00
Hamza Taha 25 Reputation points
edited a comment 2023-09-26T12:24:44.4866667+00:00
JasonPan - MSFT 2,611 Reputation points Microsoft Vendor
1 answer

Visual studio 2022 Installation error

Can someone help me? I am getting this warning when I try to install .NET development for visual studio 2022 : Couldn't install Microsoft.VisualStudio.Community.Shared.Msi

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,784 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,043 questions
asked 2022-11-19T19:35:11.68+00:00
lambarini 16 Reputation points
commented 2023-09-26T12:16:05.5933333+00:00
Кринський Артур 0 Reputation points
1 answer

Call Webapi JWT

I created API with JWT Token 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,562 questions
asked 2023-09-25T13:18:05.5+00:00
Dotnet Engineer 280 Reputation points
edited the question 2023-09-26T12:11:11.4066667+00:00
Dotnet Engineer 280 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,861 questions
asked 2023-09-19T14:24:15.5166667+00:00
Sreejith Sreenivasan 371 Reputation points
commented 2023-09-26T11:56:48.6633333+00:00
Sreejith Sreenivasan 371 Reputation points
1 answer One of the answers was accepted by the question author.

multi-column drop-down list JavaScript control options

What are my options in selecting a JavaScript control to create a multi-column drop-down list? Environment Net Core 6 / MVC / Visual Studio Community 2022 / Windows 11 (64 bit) Example Code I would like to display more than one column in a drop-down…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,562 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
987 questions
asked 2023-04-21T09:59:36.1866667+00:00
Dean Everhart 1,491 Reputation points
commented 2023-09-26T11:51:30.14+00:00
Saaid Faraz 0 Reputation points
0 answers

Finding parent form and tablelayoutPanel

hello , private void TDlloading_error_Load(object sender, EventArgs e) { HideButtonsInParentFormTableLayoutPanel(); } private void HideButtonsInParentFormTableLayoutPanel() { // Access the parent…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,629 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,977 questions
asked 2023-09-26T10:44:39.0333333+00:00
Shaifali jain 200 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,629 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,977 questions
asked 2023-09-23T11:43:45.1433333+00:00
Shaifali jain 200 Reputation points
commented 2023-09-26T10:26:42.59+00:00
KOZ6.0 395 Reputation points
1 answer

Adding currency symbol to gridview bounfield data

Hello, Please is it possible to add a label control to represent currency symbol beside the amount figure in boundfield? *The currency symbol will be fetched from database field and displayed in a label control Just as seen in this image…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,051 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,635 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.
619 questions
asked 2023-09-26T06:57:40.0433333+00:00
Donald Symmons 2,006 Reputation points
answered 2023-09-26T10:11:23.4033333+00:00
Lan Huang-MSFT 17,806 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Opening the new form and closing the previous

Hi , In my project i am stuck at a point and can not figure out how to open a new form inside a panel of already opened form . So there is a form named father and it has a panel . i am using this panel to open all subsequent forms (children) . there are…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,629 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,977 questions
asked 2023-09-23T11:35:39.78+00:00
Shaifali jain 200 Reputation points
commented 2023-09-26T10:07:48.36+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
1 answer

How can I create a Complex View Like this one in WPF DataGridView C#?

I created this Example and Tried to make it as Simple as Possible so that you can Understand Clearly. I have SQL Server Database Named EmployeesDB that contains 4 Tables as following: 1.       Employees Table which is the Parent Table in this Example. 2.…

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,477 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,784 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.
10,953 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,977 questions
asked 2023-09-20T09:04:32.94+00:00
Mesh Ka 140 Reputation points
commented 2023-09-26T10:00:17.5133333+00:00
Hui Liu-MSFT 21,376 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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,977 questions
asked 2023-09-25T07:09:34.99+00:00
Rada Matěj 20 Reputation points
accepted 2023-09-26T09:42:46.4266667+00:00
Rada Matěj 20 Reputation points
1 answer

How to bind Command in ContextMenuItem

Thanks to @Hui Liu-MSFT and @Peter Fleischer (former MVP) ,now I am able to operate my TreeView and do Drag&Drop on it. Also I can ONLY display ContextMenu by right click on the first level of TreeViewItem, which is required. You can see the…

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,477 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,977 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
688 questions
asked 2023-09-25T10:08:05.2533333+00:00
BabyHai 41 Reputation points
edited a comment 2023-09-26T09:37:27.55+00:00
Hui Liu-MSFT 21,376 Reputation points Microsoft Vendor
0 answers

Unable to run MAUI Android app

Hi, Why I am suddenly getting this error when trying to run MAUI's Android app? /Users/jassim/Downloads/MyApp: Error JAVA0000: Error in…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,861 questions
asked 2023-09-24T20:56:07.6633333+00:00
Jassim Al Rahma 26 Reputation points
commented 2023-09-26T09:36:19.6333333+00:00
Jassim Al Rahma 26 Reputation points