24,057 questions with .NET-related tags

Sort by: Updated
0 answers

User.identity.getuserid() returns null after signin.

I have a piece of code for login in asp.net C# webform. it uses inbuilt login function, and User.Identity.GetUserId() to catch the userId. But after login the User.Identity.GetUserId() returns null. Below is my login code // Validate the user password …

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,300 questions
asked 2024-05-10T02:12:49.11+00:00
Emeka Okoye 46 Reputation points
0 answers

Touch Events in .NET MAUI

Hi I'm working on a piano keyboard app in .NET MAUI, and I'm encountering an issue with implementing a specific feature. I want users to be able to slide their finger across the keys, triggering a note for each key they pass over. However, I'm only…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,919 questions
asked 2024-05-10T01:53:53.1+00:00
Yusuf 691 Reputation points
1 answer One of the answers was accepted by the question author.

[MAUI]When I use the AudioTrack.Write() ,it stuck the main thread

I created an AudioTrack object named audioTrack, and use the audioTrack.Play(), Then in an Event I use the audioTrack.Write() method, and it stuck the MainThread, I have try to use the async, but it doesn't help. I also try to use Task.Run() to created…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,919 questions
asked 2023-08-30T22:46:07.1933333+00:00
studio XFE 45 Reputation points
accepted 2024-05-10T01:53:16.3933333+00:00
studio XFE 45 Reputation points
2 answers

running asp.net intranet application on localhost asking for authentication

I have an intranet application written int ASP.net core, when I run this application on localhost, I get a pop window asking me to authenticate and once I enter my domain name\my username and password then it authenticates me and lets me run the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,203 questions
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,300 questions
asked 2024-05-06T23:53:29.4066667+00:00
Anjali Agarwal 1,386 Reputation points
commented 2024-05-10T01:44:37.0966667+00:00
Brando Zhang-MSFT 2,961 Reputation points Microsoft Vendor
0 answers

InternalServerError on Azure Web App deployment

Hi, I'm having some trouble figuring out why a deployment for an Azure Web App fails. I've tried deployment to a container app, and an app service, with both GitHub actions workflow and through a web deploy using pubxml. My application runs fine and as…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,203 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,945 questions
asked 2024-05-10T01:30:24.82+00:00
Cesar Vera 0 Reputation points
1 answer

The code generator for identity command failing saying No MSBuild was detected?

The code generator for identity command failing saying No MSBuild was detected?

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
6 questions
asked 2024-05-06T13:47:43.7333333+00:00
Muhammad Naeem 0 Reputation points
commented 2024-05-10T01:24:34.38+00:00
Rita Kovács Sipeki 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,300 questions
asked 2024-05-05T17:01:04.1133333+00:00
Gani_tpt 1,586 Reputation points
edited a comment 2024-05-10T01:16:41.2966667+00:00
Gani_tpt 1,586 Reputation points
1 answer

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,919 questions
asked 2024-05-09T11:11:20.79+00:00
Sreejith Sreenivasan 691 Reputation points
answered 2024-05-10T01:14:47.9633333+00:00
Bruce (SqlWork.com) 56,926 Reputation points
1 answer

How to perform a pivot grid in maui?

Hi, i want to display data from observablecollection in a pivotgrid using .Net Maui 8 like in the picture below. the columns are generated programatically. i write this code in the viewmodel: Stockstcviews =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,919 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,300 questions
asked 2024-05-03T16:24:46.6+00:00
Kaouthar GR AOUICHAOUI 40 Reputation points
commented 2024-05-10T01:13:54.4233333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,061 Reputation points Microsoft Vendor
1 answer

building simple MAUI app causes an error

Type "Shell" was not found. Verify .... It is literrally the first line in AppShell.xaml. I have just created a new application and not edited any pages. The defult pages should be correct and buildable in sample app.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,919 questions
asked 2024-05-06T22:11:05.73+00:00
Tariq Roshan 0 Reputation points
commented 2024-05-10T01:13:36.39+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,061 Reputation points Microsoft Vendor
1 answer

Zindex dosent work

I am trying to make a custom control that resembles a Material Design textbox My app is almost there ContentView x:Class="CustomEntry.Controls.CustomEntry" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,919 questions
asked 2024-05-08T23:17:02.51+00:00
Eduardo Gomez Romero 205 Reputation points
commented 2024-05-10T00:51:29.2166667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,741 Reputation points Microsoft Vendor
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,203 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,793 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,945 questions
asked 2024-05-08T15:25:31.47+00:00
Santhi Dhanuskodi 145 Reputation points
edited a comment 2024-05-09T22:37:55.53+00:00
Bruce (SqlWork.com) 56,926 Reputation points
2 answers

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,286 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,636 questions
asked 2024-05-08T21:06:30.9666667+00:00
Falanga, Rod, DOH 80 Reputation points
commented 2024-05-09T21:05:53.5633333+00:00
Falanga, Rod, DOH 80 Reputation points
1 answer One of the answers was accepted by the question author.

EF6 continually Access__MigrationHistory table leading to SQL errors

Customers have reported slowness in the our application and have seen a large number of errors reported in SQL. The hosted environment’s performance logging tool (NewRelic) has reported an increase in failure rate which the customer suspect is the cause…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,412 questions
asked 2023-04-27T10:31:45.88+00:00
ps-rizwan 21 Reputation points
accepted 2024-05-09T20:22:19.72+00:00
ps-rizwan 21 Reputation points
0 answers

Issues with EF Update Command and Azure Credentials in ASP.NET Core Application

I am encountering errors while attempting to run an Entity Framework (EF) update command (dotnet ef database update) from my ASP.NET Core application. The application is connected to a database hosted on Azure. After executing the EF update command, I am…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
Azure SQL Database
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,203 questions
asked 2024-05-09T18:29:21.49+00:00
Yamen Edel 0 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…

.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,919 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

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,926 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,919 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
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,203 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,300 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