24,305 questions with .NET-related tags

Sort by: Updated
0 answers

EF Core 3.1 - System.InvalidOperationException: 'The entity type 'Pntbec03' requires a primary key to be defined. If you intended to use a keyless entity type call 'HasNoKey()'.'

Hello . I need to handle a EF Core Entity relating to a table , but without having EF managing all its columns , but just a subset of them. I have scaffolded the small database to which the table belongs into a DbContext , and I though I could create…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
705 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,472 questions
asked 2024-05-29T13:46:26.23+00:00
leo del ciello 66 Reputation points
1 answer

How to insert new,update, delete existing record in single row of gridview

I am developing ASP.NET application and i am using gridview in that. Here, i am not using any textbox controls outside of the gridview to save the record. everything i want to maintain in same row of the records. for example, when page load, if any…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,322 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,406 questions
asked 2024-05-28T14:36:20.12+00:00
Gani_tpt 1,786 Reputation points
edited a comment 2024-05-29T13:36:07.9666667+00:00
Gani_tpt 1,786 Reputation points
0 answers

how to show image2 in gridview

Hello This is my aspx page <asp:TemplateField HeaderText="IMAGE1"> <ItemTemplate> <asp:Image ID="Image1" runat="server" /> </ItemTemplate> …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,322 questions
asked 2024-05-29T13:35:22.69+00:00
RAVI 936 Reputation points
0 answers

Call On Prem Web Application(ASP.Net Web APIs) from Azure environment(.Net Core Web APIs, Azure Function Apps)

Hi All, We are creating REST endpoint with help of ASP.Net core Web API, while working on some feature we have to consume endpoint(APIs) which already hosted and running on prem windows server, so we plan to reuse with all security concerns. New…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,400 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,001 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,249 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,406 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.
307 questions
asked 2024-05-29T13:23:03.68+00:00
Mac Jai 0 Reputation points
1 answer One of the answers was accepted by the question author.

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,995 questions
asked 2024-05-09T13:07:16.15+00:00
Gbenga Banuso Odumosu 40 Reputation points
commented 2024-05-29T13:11:17.41+00:00
Gbenga Banuso Odumosu 40 Reputation points
0 answers

Will VS2022 17.9 get updated for .Net 8 and 6 servicing updates released on May 28?

Components installed with VS2022 (e.g., .Net 8, .Net 6) are not shown separately in Windows settings for Apps or control panel's Programs and Features. These components have been updated as needed through the monthly patch Tuesday updates to VS through…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,472 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,714 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,132 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
980 questions
asked 2024-05-29T11:38:25.6966667+00:00
RLWA32 41,206 Reputation points
edited the question 2024-05-29T13:11:15.8866667+00:00
RLWA32 41,206 Reputation points
2 answers

How to create event for subclassed control

I use GestureRecognizers with Label in lots of places in an app and would like to create a new Label control that basically uses Label as the base and adds a TapGestureRecognizer that invokes an event that can be defined in XAML. I know how to subclass…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,995 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,406 questions
asked 2024-05-28T15:05:06.46+00:00
Lloyd Sheen 1,391 Reputation points
answered 2024-05-29T12:50:56.2366667+00:00
Lloyd Sheen 1,391 Reputation points
1 answer

Custom fonts not working when uploading Maui Android project to Play Store

I have added custom fonts in the font directory of my Maui project's Resources directory and updated the MauiProgram.cs file accordingly. The fonts work fine when I deploy the application using Visual Studio, but when I publish the app and upload it to…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,714 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,995 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,406 questions
asked 2024-05-21T16:58:13.6333333+00:00
Mujtaba Ali Panjwani 0 Reputation points
answered 2024-05-29T12:34:47.2866667+00:00
Anton Moroder 0 Reputation points
2 answers

Where has MapIcon gone in Windows MAUI Maps ?

Hi team. I try to migrate a custom renderer for Maps from Xamarin to MAUI. I need to show a custom icon on the Map in Windows platform (found multiple examples how to do that in IOs and Droid) In Xamarin there was a MapIcon class , derived from…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,995 questions
asked 2024-05-29T10:42:51.1733333+00:00
Andreas Wegener 0 Reputation points
answered 2024-05-29T12:26:54.76+00:00
Andreas Wegener 0 Reputation points
0 answers

How to fix the exception System.Net.Http.HttpRequestException: The SSL connection could not be established

we have SignalR and SignalR.Client libraries used in our project to establish the connection between the client and the server. The services are .NET applications and the client is a mobile application which is also a .NET application. I am got the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,472 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,249 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,322 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
124 questions
asked 2024-05-29T11:57:56.0666667+00:00
Singh, Sheetal 0 Reputation points
commented 2024-05-29T12:17:09.4966667+00:00
AgaveJoe 26,246 Reputation points
0 answers

How do I override the default Blazor scaffolding template in Visual Studio 2022

I want to edit the scaffolding template for Blazor CRUD pages, but my changes to the template are not being reflected in the output. I tried researching this issue, and the closest answers I could find are how to edit Razor templates, or MVC component…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,249 questions
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,427 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,714 questions
asked 2024-05-28T21:54:43.2466667+00:00
Andrew Karpinski 0 Reputation points
commented 2024-05-29T11:08:32.7066667+00:00
Brando Zhang-MSFT 3,041 Reputation points Microsoft Vendor
0 answers

Save xml log file in MAC

Hi, In windows I keep in c drive in MAC where i save my log file? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,995 questions
asked 2024-05-29T10:31:16.86+00:00
Dani_S 2,906 Reputation points
0 answers

How to clear the account list in the Web Account Manager list of Accounts displayed by WAM Broker

I have a WPF desktop app that accesses an Azure WebAPI. It uses the MSAL library and when authenticating uses the WAM broker. When the list of accounts is displayed, there is an account of someone that used the computer once when I was logged on to the…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
628 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,472 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,906 questions
asked 2024-05-25T18:43:22.4933333+00:00
Michael 76 Reputation points
commented 2024-05-29T10:20:32.71+00:00
Shweta Mathur 28,196 Reputation points Microsoft Employee
0 answers

StackOverflowException after upgrading from .Net 6 to .Net 8

Hi, 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,472 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,249 questions
asked 2024-05-29T09:57:50.6666667+00:00
Abhishek, Burra 5 Reputation points
1 answer One of the answers was accepted by the question author.

How to disable the font scaling for the Display alert's in Maui - iOS

Hello, Currently I'm disabling the font scaling in iOS by following this. https://learn.microsoft.com/en-us/answers/questions/1661536/how-can-i-prevent-the-device-font-size-effect-of-a Now I want to achieve the same functionality for the display…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,995 questions
asked 2024-05-21T13:40:20.09+00:00
Vaibhav Methuku 80 Reputation points
edited a comment 2024-05-29T09:39:56.06+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,126 Reputation points Microsoft Vendor
0 answers

Ensuring Database Updates on Form Closure: Troubleshooting for Mac.

When I attempt to insert details into the database upon closing the form or upon its disappearance event, the code doesn't execute as expected. However, the same code executes properly when triggered by a button click or when the form appears. I need…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,995 questions
asked 2024-05-06T12:03:23.94+00:00
Sarfaraz Sable 20 Reputation points
commented 2024-05-29T09:36:06.18+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,126 Reputation points Microsoft Vendor
0 answers

App crashes after throwing an error ' Window was already created'

Platform : Android Version : MAUI 8 Description : I was trying to invoke platform specific code by implementing broadcast Receiver for android, When I tried to register the receiver onResume( ) , app crashed with an error "Window was already…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,995 questions
asked 2024-05-29T09:32:36.64+00:00
Manickam, Suraj 260 Reputation points
1 answer

To set an alternate app icon in a .NET MAUI app,Here's how we can achieve this:

Previously, in Xamarin.Forms, we could set alternate app icons by registering multiple icons in the Android manifest and iOS Info.plist files. This allowed us to change the app icon and app name based on an identifier. However, in .NET MAUI, achieving…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,472 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,995 questions
asked 2024-04-30T05:58:18.6366667+00:00
Lakhan Bairawat 0 Reputation points
commented 2024-05-29T09:31:55.2366667+00:00
Lakhan Bairawat 0 Reputation points
1 answer

MVC PDF Generator

Hello everyone, friends, I will have a question for you, I am recording in mvc, when users fill the table, it assigns records to the database, there is no problem in this part, but when it comes to reporting, there is a problem, I cannot properly pdf the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,322 questions
asked 2024-05-29T06:51:00.2666667+00:00
kadir 60 Reputation points
answered 2024-05-29T09:31:00.98+00:00
Lan Huang-MSFT 26,686 Reputation points Microsoft Vendor
0 answers

Microsoft.Maui.ApplicationModel.FeatureNotSupportedException for PhoneDialer and EmailMessage

I am getting below exception for PhoneDialer and EmailMessage features. Microsoft.Maui.ApplicationModel.FeatureNotSupportedException: Specified method is not supported. at…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,995 questions
asked 2024-05-29T09:18:27.9966667+00:00
Sreejith Sreenivasan 691 Reputation points