24,053 questions with .NET-related tags

Sort by: Updated
3 answers

How do I install .NET on a Windows 11 machine

How do I install .NET on a Windows 11 machine?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,412 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,264 questions
asked 2024-05-08T21:59:29.1766667+00:00
Marsha Harner (Applause App Quality LLC) 0 Reputation points Microsoft Vendor
answered 2024-05-09T14:13:49.4566667+00:00
Kapil Arya 7,756 Reputation points MVP
2 answers One of the answers was accepted by the question author.

ViewModel Inheritance

Hi friends, I am trying to use inheritance in my ViewModel Class by adding the viewmodel EmployeeEditViewModel but I get a compilation error stating Class 'PayerEditViewModel' cannot have multiple base classes: 'ObservableObject' and…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,917 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.
10,298 questions
asked 2024-05-08T15:24:59.8466667+00:00
Tom Meier 120 Reputation points
accepted 2024-05-09T14:04:00.5966667+00:00
Tom Meier 120 Reputation points
0 answers

How to fix StackOverflowException after upgrading from .Net 6 to .Net 8

Hello,   I have upgraded 5 projects in my solution from .Net 6 to .Net 8 using upgrade assistant in Visual Studio. When I run the solution, StackOverflowException is being thrown and Swagger is not loading. Looks like onchangetokenfired() method is being…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,412 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,201 questions
asked 2024-04-26T06:39:38.71+00:00
Abhishek, Burra 0 Reputation points
commented 2024-05-09T13:41:15.6+00:00
Abhishek, Burra 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to fix Error CS0029 Cannot implicitly convert type 'void' to 'System.Collections.Generic.List<Vase.Models.Person>'

var user = from u in conn.Table<Person>() querywhere u.name == "WALE" select u; return user.FirstOrDefaultAsync().Wait(); I got error in the bold line. i cant figure what i did wrong pleas help

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,917 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.
10,298 questions
Entity Framework Core Training
Entity Framework Core Training
Entity Framework Core: A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.Training: Instruction to develop new skills.
3 questions
asked 2024-05-07T00:20:57.27+00:00
Gbenga Banuso Odumosu 0 Reputation points
commented 2024-05-09T13:28:20.9566667+00:00
Gbenga Banuso Odumosu 0 Reputation points
0 answers

ADFS Authentication Issue in .Net 8

I have an existing ASP.NET MVC application that relies on ADFS authentication. I'm currently upgrading it to .NET 8. As part of the upgrade process, I prioritized implementing the authentication functionality first. However, I'm encountering an issue…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,412 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,201 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,200 questions
asked 2024-05-03T06:09:59.2233333+00:00
Vijayan, Neethu 0 Reputation points
edited a comment 2024-05-09T13:12:58.1666667+00:00
JasonPan - MSFT 4,376 Reputation points Microsoft Vendor
0 answers

How To used stored location in database with location calculate distance method

I am working on MAUI to calculate distance between two locations. I have stored the first et of location in an sqlits database. Using Location calculate distance method, I got error Severity Code Description Project Path File Line Suppression…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,286 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,917 questions
Windows Maps
Windows Maps
A Microsoft app that provides voice navigation and turn-by-turn driving, transit, and walking directions.
246 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,556 questions
asked 2024-05-09T13:07:16.15+00:00
Gbenga Banuso Odumosu 0 Reputation points
0 answers

image not loading in modal popup imageurl in asp.net c#

i am trying to load image in image button through modal popup. The problem is modal popup is showing, but image not loading which means it is blank window. i am storing all the images in different server and application hosted in another server. what is…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,286 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.
10,298 questions
asked 2024-05-05T17:01:04.1133333+00:00
Gani_tpt 1,586 Reputation points
commented 2024-05-09T13:01:58.9066667+00:00
Gani_tpt 1,586 Reputation points
1 answer

Simulate dead lock with sampfore slim

Hi, How I simulate deadlock with with this code? public async Task<string> GetSessionToken(string developmentApiKey) { await _semLock.WaitAsync(); try { if…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,412 questions
asked 2024-05-02T08:41:24.51+00:00
Dani_S 2,746 Reputation points
commented 2024-05-09T12:56:21.5266667+00:00
Dani_S 2,746 Reputation points
1 answer

New Form is not shown while drag & drop a Custom Control from toolbox to Designer in WinForms in NetCore

In our Control, we have opened a new form to update the content of our control in the Designer. The new Form is not shown in the NetCore but works properly in the NetFrameWork. I have replicated the same issue in a simple control. …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,412 questions
asked 2024-05-03T14:04:08.6633333+00:00
Karkuvel Rajan Shanmugavel 0 Reputation points
commented 2024-05-09T12:50:28.4266667+00:00
Jiale Xue - MSFT 34,201 Reputation points Microsoft Vendor
10 answers

A connection was successfully established with the server, but then an error occurred during the login process Error from .Net core WebAPI

Hi, I've an application that uses WebAPI in .Net core 6 and uses Kestrel server. When calling HttpPost request, the code tries to inject data in DB but fails with error: The certificate chain was issued by an authority that is not trusted. Inner…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,201 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.
12,789 questions
asked 2021-12-14T12:23:52.077+00:00
Amit Potdar 136 Reputation points
edited a comment 2024-05-09T11:19:03.5566667+00:00
LAFRIMI, Mosaab Yassir 0 Reputation points
0 answers

Login with Keycloak integartion on MAUI application

Is it possible to integrate the login feature with keycloak? Currently we are using back end API for login and after that we are redirecting the user to home page. Instead we need to add a login button on the UI and when tapping on it we need to open the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,917 questions
asked 2024-05-09T11:11:20.79+00:00
Sreejith Sreenivasan 691 Reputation points
1 answer One of the answers was accepted by the question author.

Xamarin.Android: Opening an Excel document using Intents in Android 10+ fails

I have the following code for exporting an Excel file. The final result is opened in the Excel App. This is the code for opening the file: if (file.Exists()) Intent intent = new Intent(Intent.ActionView); if (Build.VERSION.SdkInt <…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
asked 2021-05-26T21:14:21.873+00:00
Federico Navarrete 616 Reputation points
edited a comment 2024-05-09T10:56:18.0166667+00:00
Federico Navarrete 616 Reputation points
0 answers

iOS build getting a crash with a report

In iOS I am getting a crash in stimulator after launching splash screen. After it crashed i can see a crash report and it mentioned as signal 6 abort trap : 6 as Termination Reason.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,917 questions
asked 2024-05-09T10:24:55.66+00:00
Vinothkumar Swaminathan 20 Reputation points
1 answer

Compatibility of .NET Standard 2.0 library that uses StoreAPI and WPF .NET 8.0?

I am working with a .NET Standard 2.0 Library that we wrote and use both in a WPF + .NET Framework 4.8 windows application and in a UWP windows application. This .NET Standard 2.0 library has references to Microsoft.Windows.SDK.Contracts version…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,412 questions
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,679 questions
Microsoft Partner Center API
Microsoft Partner Center API
Microsoft Partner Center: A Microsoft website for partners that provides access to product support, a partner community, and other partner services.API: A software intermediary that allows two applications to interact with each other.
317 questions
asked 2024-05-08T17:36:27.52+00:00
Richard Freytag 1 Reputation point
answered 2024-05-09T10:04:27.16+00:00
Hongrui Yu-MSFT 80 Reputation points Microsoft Vendor
0 answers

Trouble Implementing Federated Credentials with Managed Identities in Azure Function App API Authentication

I have an API inside my function app and have been accessing the API using the secrets created in the app registration associated with the function app. Now we're looking to eliminate the secrets and modify it to use managed idenities as the client app…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,317 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,412 questions
asked 2024-04-22T18:40:22.54+00:00
Dheepssika JL 0 Reputation points Microsoft Employee
edited the question 2024-05-09T09:41:50.4466667+00:00
Dheepssika JL 0 Reputation points Microsoft Employee
1 answer

How to get the index of duplicate elements along with the range of empty elements after it. LINQ

hi Dim ComplexArray As String() = Split("A C A B C A B A B C") Dim Arr3D = {({"A", ({"0-2", "5-9", "16-16", "19-20"})}), ({"B", ({"10-12",…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,634 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,580 questions
asked 2024-05-04T15:38:26.2533333+00:00
Mansour_Dalir 1,591 Reputation points
edited a comment 2024-05-09T09:27:27.8833333+00:00
Mansour_Dalir 1,591 Reputation points
0 answers

Google In-Apps always refunded after 3 days in Xamarin.Android/.NET 8

I have built an app originally with Xamarin.Android. I recently migrated it to .NET 8, but I noticed that after they pay, I lose my money since they are auto-refunded. I read in some forums that I had to acknowledge the payment and I did that: public…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,412 questions
asked 2024-05-09T08:43:41.3633333+00:00
Federico Navarrete 616 Reputation points
2 answers

Best Practice For Database Access In Blazor MAUI Hybrid App

I'm porting a project from MVC into a Blazor MAUI Hybrid app with the intent to share common components and data. I have a Razor Class Library which does this, but was wondering if I should also put my SQL Server data access in here as well or keep that…

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,401 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.
12,789 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,917 questions
asked 2024-04-30T17:24:11.6166667+00:00
Daniel Kovach 0 Reputation points
answered 2024-05-09T08:37:05.3666667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,061 Reputation points Microsoft Vendor
7 answers

How to fix Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine In accessdatabaseengine 2016

Team, Kindly please help me to figure out issue regarding Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine I just updated ACCESS DATABASE ENGINE 2010 to ACCESS DATABASE ENGINE 2016 version in my system. so please help…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,412 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.
10,298 questions
asked 2021-07-13T16:59:19.737+00:00
Sagar Pithadiya 6 Reputation points
commented 2024-05-09T08:34:50.21+00:00
Rownak Tanjil 0 Reputation points
1 answer

MAUI: Background color is not updating when changing the mode (iOS)

When changing the mode I am updating the background color and text color of the UI via code. It was working fine on Android side but when I check it on iOS, the Listview background color is not updating properly. Expected Output of light and dark mode is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,917 questions
asked 2024-04-29T13:42:50.5933333+00:00
Sreejith Sreenivasan 691 Reputation points
answered 2024-05-09T08:31:32.6566667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,626 Reputation points Microsoft Vendor