Microsoft Q&A

.NET

20,657 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,657 questions with .NET-related tags

Sort by: Updated
0 answers

MVC CORE GET API FAILS

Call to api https://visitsapi.azurewebsites.net/api/Auth/ fails getting 404 error Please visit here for github code https://github.com/KalyanAllam/JWTApiCall/ The source code for https://visitsapi.azurewebsites.net/api/Auth/…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,563 questions
asked 2023-09-26T16:47:03.1233333+00:00
Dotnet Engineer 280 Reputation points
edited a comment 2023-09-26T18:01:51.5633333+00:00
AgaveJoe 520 Reputation points
0 answers

App permissions denied, even when manually set

I have been updating my app to comply with Googles requirements of API level, and permission use. It seems that no matter what I try, I cannot get any permissions in my app. I have tried two different methods (code below). I am never prompted to approve…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,156 questions
asked 2023-09-26T17:59:39.9433333+00:00
Jesse Knott 666 Reputation points
1 answer

How can I do a [MemberNotNull] for an Entity Framework IncludeAll() method I wrote?

I have the following helper method. This includes all complex properties in my Event DbSet (actually there's 9 properties but I reduced it for clarity): public static IQueryable<Event> IncludeAll(this IQueryable<Event> source) { return…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
585 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-16T17:40:21.58+00:00
David Thielen 1,406 Reputation points
commented 2023-09-26T17:49:12.3+00:00
David Thielen 1,406 Reputation points
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
edited a comment 2023-09-26T17:33:24.3766667+00:00
AgaveJoe 520 Reputation points
0 answers

The download links in this article doesn't work: https://support.microsoft.com/en-au/topic/microsoft-net-framework-4-8-language-pack-offline-installer-for-windows-4bee217e-4096-6922-eba9-3e3c27342ff6

I click the links provided in this article: https://support.microsoft.com/en-au/topic/microsoft-net-framework-4-8-language-pack-offline-installer-for-windows-4bee217e-4096-6922-eba9-3e3c27342ff6 but none of the language pack works for me. Please advise.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,636 questions
asked 2023-09-26T17:32:00.72+00:00
ling lin 0 Reputation points
3 answers One of the answers was accepted by the question author.

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,563 questions
asked 2023-09-24T17:33:46.7466667+00:00
jewel 481 Reputation points
accepted 2023-09-26T17:01:54.8233333+00:00
jewel 481 Reputation points
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-26T17:00:57.4666667+00:00
KOZ6.0 395 Reputation points
2 answers

How to fix - You must install or update .NET to run this application

root@ubuntu:/etc/systemd/system# /usr/bin/dotnet /var/www/MinAPI/WebApi.dll You must install or update .NET to run this application. App: /var/www/MinAPI/WebApi.dll Architecture: x64 Framework: 'Microsoft.AspNetCore.App', version '5.0.0' (x64) .NET…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,051 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,563 questions
asked 2023-06-13T08:40:17.94+00:00
Bashar Muhanna 20 Reputation points
commented 2023-09-26T16:43:49.89+00:00
CalebDewey-3553 0 Reputation points
0 answers

How do I programmatically "restart" an Android app in.Net maui?

How do I programmatically "restart" an Android app in.Net maui? I have been trying to restart the application when the system reboot in .net maui app AndroidManifest.xml BootBroadcastReceiver.cs using global::Android.App; using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,862 questions
asked 2023-09-25T15:57:33.59+00:00
San Sheva Santhanaraj 0 Reputation points
commented 2023-09-26T16:26:16.28+00:00
Rob Caplan - MSFT 5,212 Reputation points Microsoft Employee
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,788 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,959 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-26T16:23:34.21+00:00
Mesh Ka 140 Reputation points
2 answers

Help with Microsoft.Graph upon upgrading from version 4.x.x to 5.x.x

I understand that Microsoft Graph Client Library, Microsoft.Graph, API is quite different when upgraded from 4.x.x to 5.x.x. I use this library for accessing OneDrive files. I have no problem with MSAL authentication that precedes file access but would…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
2,077 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,862 questions
asked 2023-03-10T20:04:48.7733333+00:00
dg2k 1,246 Reputation points
answered 2023-09-26T16:02:57.7+00:00
COM-ADD 0 Reputation points
1 answer One of the answers was accepted by the question author.

Property not being set

Hi In my MAUI app I am calling OnItemTapped method from a command. I have implemented IsBusy logic in OnItemTapped to avoid it being executed again until it is done. At the end of OnItemTapped method I am setting IsBusy to false. However IsBusy…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,862 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-25T02:26:21.6533333+00:00
-- -- 841 Reputation points
accepted 2023-09-26T15:53:15.5733333+00:00
-- -- 841 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,563 questions
asked 2023-09-25T13:18:05.5+00:00
Dotnet Engineer 280 Reputation points
commented 2023-09-26T15:49:35.7766667+00:00
Bruce (SqlWork.com) 44,301 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,563 questions
Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
177 questions
asked 2023-09-26T11:24:01.6533333+00:00
Hamza Taha 25 Reputation points
commented 2023-09-26T15:31:44.63+00:00
Bruce (SqlWork.com) 44,301 Reputation points
1 answer

c# Graph Api > 5..0.15 Content.GetAsync() not working any more

// https://learn.microsoft.com/en-us/answers/questions/1025116/how-to-download-a-mail-graph-api-c?orderby=oldest Stream mimeContentStream = await _graphClient.Users[{someUseriD}].Messages[{aMessageId}].Content.GetAsync(); string mailFile =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,051 questions
Microsoft Graph Mail API
Microsoft Graph Mail API
A Microsoft API that supports accessing data in users' primary mailboxes and in shared mailboxes.
905 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-08-11T09:45:01.1066667+00:00
Uwe Schöneis 10 Reputation points
answered 2023-09-26T15:20:09.11+00:00
jcq 1 Reputation point
1 answer One of the answers was accepted by the question author.

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 61 Reputation points
accepted 2023-09-26T15:13:03.5+00:00
BabyHai 61 Reputation points
1 answer

how to fix To prevent possible data loss before loading the designer, the following errors must be resolved: ?

|Here is the call stack:at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.CreateVariableKindUnknownException(XmlElementData xmlElement, String name)at …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,629 questions
asked 2023-09-09T17:39:10.5133333+00:00
cdog78 0 Reputation points
answered 2023-09-26T15:05:33.86+00:00
cdog78 0 Reputation points
0 answers

Server 2022 - Maui app with net .7 is not working

Hi, I installed Maui app on server 2019 with this command and its works but on server 2022 its not work: dotnet publish -f net7.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,862 questions
asked 2023-09-26T15:03:25.4466667+00:00
דני שטרית 1,181 Reputation points
1 answer One of the answers was accepted by the question author.

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,629 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,051 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-19T12:22:44.3966667+00:00
Milinovici, Gleb 20 Reputation points
commented 2023-09-26T14:45:04.73+00:00
Milinovici, Gleb 20 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,862 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