24,053 questions with .NET-related tags

Sort by: Updated
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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,412 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,918 questions
asked 2024-05-09T08:43:41.3633333+00:00
Federico Navarrete 616 Reputation points
edited the question 2024-05-09T18:05:04.81+00:00
Rob Caplan - MSFT 5,422 Reputation points Microsoft Employee
1 answer

An old ASP.NET WebForms app won't build due to missing references and related

I maintain an old ASP.NET WebForms application, written using VB.NET so long ago that no one knows who started this application. The guy who maintained it, before I was given it, left before I joined. He didn't put anything in any source control, and he…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,285 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,635 questions
asked 2024-05-08T21:06:30.9666667+00:00
Falanga, Rod, DOH 80 Reputation points
commented 2024-05-09T18:02:59.6466667+00:00
1 answer

Blazor Server Side AuthorizationHandler - PreLoad - HttpContext is Null

I have a Multi-Tenant Blazor Server Side application, that uses Pre-Load to use HttpContext in the Razor Pages. I am setting up Authentication and Authorization using Azure Entra. For Authorization I need to Authorize the user against the Tenant. The…

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
asked 2024-05-08T13:56:02.2933333+00:00
Tom McCartan 5 Reputation points
answered 2024-05-09T17:20:34.1633333+00:00
Bruce (SqlWork.com) 56,851 Reputation points
1 answer

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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,918 questions
asked 2024-05-09T13:07:16.15+00:00
Gbenga Banuso Odumosu 0 Reputation points
edited the question 2024-05-09T16:44:21.4+00:00
Rob Caplan - MSFT 5,422 Reputation points Microsoft Employee
1 answer

Custom Hybrid Connection Manager

Hi, I would like to know if we can have a custom hybrid connection manager in .net core code. I would like to connect to on-prem sql server from a cloud deployed .net solution. I am using Azure app service /Relay/Hybrid Connection for the same. I would…

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
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,943 questions
asked 2024-05-08T15:25:31.47+00:00
Santhi Dhanuskodi 145 Reputation points
commented 2024-05-09T15:48:05.7933333+00:00
Bruce (SqlWork.com) 56,851 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
edited a comment 2024-05-09T15:23:49.4533333+00:00
AgaveJoe 26,141 Reputation points
1 answer

in PhoneLineTransportdevice(Windows.ApplicationModel.Calls) RequestAccessAsync() always throw denied by system.

I am creating an app like my phone in Windows so I found this library name Windows.ApplicationModel.Calls use Bluetooth to connect with a phone line(Android/ios) to make and receive calls from Windows but in this first we need to request access from the…

.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 2023-04-26T09:51:20.12+00:00
Aryaveer Chaudhary 0 Reputation points
commented 2024-05-09T15:06:53.93+00:00
Mingping1 Zhang 0 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
commented 2024-05-09T14:33:05.7966667+00:00
Jiya desai 51 Reputation points
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,269 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,918 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
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,918 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

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,285 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,918 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,296 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,918 questions
asked 2024-05-09T10:24:55.66+00:00
Vinothkumar Swaminathan 20 Reputation points
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,321 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