22,997 questions with .NET-related tags

Sort by: Updated
1 answer

How to fix Violation of PRIMARY KEY constraint 'PK_Mytable'. Cannot insert duplicate key in object 'dbo.Mytable' with Transaction (Process ID 181) was deadlocked on lock resources with another process

I am encountering an issue while attempting to call a stored procedure from a .NET Framework application to a Microsoft SQL Server instance. The error message returned is: "Violation of PRIMARY KEY constraint 'PK_Mytable'. Cannot insert duplicate…

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,235 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,100 questions
asked 2024-02-21T06:12:13.96+00:00
BalajiGnanendren-6915 0 Reputation points
commented 2024-02-22T05:00:23.2366667+00:00
BalajiGnanendren-6915 0 Reputation points
0 answers

Find records not in another tables using Linq

Dear experts, i want to find missing records from table1. i.e. fetch rows in table2 when there are no corrospoding matches in table1 i tried follwoing linq query, but its shwoing incorrect. what will be the correct way to do it the join on composite key…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,798 questions
asked 2024-02-22T04:58:33.1066667+00:00
Sushil Agarwal 381 Reputation points
edited the question 2024-02-22T05:00:17.6033333+00:00
Sushil Agarwal 381 Reputation points
1 answer

MAUI clang: error: no such file or directory when build iOS Project

I Create a MaUI project, and edit Project Properties -> Build -> Additional arguments -cxx -gcc_flags "-L${ProjectDir}/lib -lopencv_world490, -force_load ${ProjectDir}/lib/libopencv_world490.a" When build, it occurs error as…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,559 questions
asked 2024-02-19T08:50:22.91+00:00
Junior Jiang 1 Reputation point
edited an answer 2024-02-22T04:45:01.5066667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 24,336 Reputation points Microsoft Vendor
1 answer

Displaying a bitmap AND mouse cursor while dragging

Hi, In VB I can drag and drop an item between two lists without any problems but even after extensive searching I haven't found a convincing method to show the user what is being dragged. This could of course be me using less than optimal search terms…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,142 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,494 questions
asked 2024-02-12T14:26:10.22+00:00
Willy V 0 Reputation points
edited a comment 2024-02-22T03:36:31.2766667+00:00
Jiachen Li-MSFT 23,971 Reputation points Microsoft Vendor
2 answers

Unable to update DOT NET Framework 4.7.2 from DOT NET Framework 4.6.2.

I am trying to update DOT net framework from DOT NET Framework 4.6.2. to 4.7.2 but I am unable to. I am getting the following error HRESULT 0x800f081e. This is on Windows server 2016. I need to install DOT NET Framework 4.7.2. In order to install SQL…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
11,684 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,100 questions
asked 2024-02-01T15:39:50.19+00:00
Evrard 0 Reputation points
commented 2024-02-22T03:31:35.29+00:00
Jiachen Li-MSFT 23,971 Reputation points Microsoft Vendor
1 answer

Build is failing with .net sdk

Hi, We are trying to build our CSPROJ using dotnet sdk 6.0.407 version also tried with 7.0.306 version but getting below error. This is running from jenkins and dotnet is installed on Windows Server. Please guide as we are stuck here. This is the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,142 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,394 questions
asked 2024-02-06T14:46:19.0933333+00:00
Morde, Yogeshwari 0 Reputation points
commented 2024-02-22T03:20:11.02+00:00
Jiale Xue - MSFT 17,351 Reputation points Microsoft Vendor
1 answer

Is the.NET Framework the same as the.NET CLR?

In the company where I work we are migrating a server, but the people who assist us when adding a group of applications only see the versions of the.NET CLR unlike with Windows 7 which says it has the.NET Framework. I would like to know more than…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,142 questions
asked 2024-02-05T05:02:20.2966667+00:00
ABIUD MISAEL BENITEZ FRANCO 0 Reputation points
commented 2024-02-22T03:18:41.24+00:00
Jiale Xue - MSFT 17,351 Reputation points Microsoft Vendor
0 answers

IOS Publish Signing problem

I have ported our Application from xamarin to .net MAUI and I was able to test it on windows, Android Device and IOS Simulator and Mac. Now I want to publish the app. We have the certificates and provisioning profiles add to the remote Mac and In the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,559 questions
asked 2024-02-21T21:16:50.6866667+00:00
Farshad Nabizadeh 0 Reputation points
commented 2024-02-22T03:16:13.26+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 30,186 Reputation points Microsoft Vendor
1 answer

Call new function based on returned value from database

Is there a way to call a function based on the output from the table? Meaning, I'm calling my table and there are at times the column may have a string in it like this { MM;Jan:Q1,Q2,Q3;Feb:Q1,Q2,A3;March;Apr;May.... }, this string can contain { MM, MMM,…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
678 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.
9,923 questions
asked 2024-02-21T19:34:58.5966667+00:00
Cloud Developer 1 Reputation point
commented 2024-02-22T03:11:30.3066667+00:00
Jiale Xue - MSFT 17,351 Reputation points Microsoft Vendor
1 answer

multi filter to apply only two columns Field1 and Field2

Hello This is my code <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> <link…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,163 questions
asked 2024-02-16T11:50:48.8733333+00:00
RAVI 536 Reputation points
edited a comment 2024-02-22T02:07:17.93+00:00
Lan Huang-MSFT 22,751 Reputation points Microsoft Vendor
0 answers

Progression of Learning / Practicing Microsoft

If I follow this link, I see that there are instruction to create my own website. Before I start this project, I would like to know if there are other, similar projects available. If so, is there a progression of difficulty to these…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,163 questions
asked 2024-02-22T01:48:08.51+00:00
maureen flannery 1 Reputation point
edited the question 2024-02-22T01:48:47.21+00:00
maureen flannery 1 Reputation point
1 answer

KERNELBASE.dll Exception code: 0xe0434352 Fault offset: 0x000000000002cf19 Faulting process ID: 0x26c0 error

after the clickonce setup. the application gets terminates and in event viewer two erros are generated What may be going wrong ? Applicaton error Faulting application name: Bansal-RM.exe, version: 1.0.0.2, time stamp: 0x656e13f7 Faulting module name:…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,798 questions
asked 2023-12-05T06:40:08.7766667+00:00
Sushil Agarwal 381 Reputation points
commented 2024-02-22T01:46:46.0766667+00:00
Sushil Agarwal 381 Reputation points
1 answer

ASP Project Webpage issue (MS Edge) - Can't Reach Page/Refused to connect

Good Evening, I have built an ASP.NET project in Visual Studio 2022. On the Server Machine, the following localhost link works fine in MS Edge: http://localhost:<#####>/<@@@@@@@@@@>.aspx The following full/public link works fine in Internet…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,142 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,163 questions
asked 2024-02-20T22:52:47.6566667+00:00
Reh23 0 Reputation points
edited a comment 2024-02-22T01:35:16.1633333+00:00
XuDong Peng-MSFT 8,096 Reputation points Microsoft Vendor
2 answers

How to generate Classes and sub Classes list of check box razor page ?

I work on asp.net  core razor pages . i face issue i can't generate classes and subclasses view and action for class and subclass so my scenario is  1- click button will load classes list with checkbox beside every class and status will be unchecked 2-…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,995 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,163 questions
asked 2024-02-21T00:47:50.4466667+00:00
Ahmed Salah Abed Elaziz 350 Reputation points
commented 2024-02-22T01:30:57.6066667+00:00
Ping Ni-MSFT 1,365 Reputation points Microsoft Vendor
0 answers

how to fix error 0x80070005.

this picture shows a error that frequently pops up in different place. firstly I cannot update windows, and secondly I cannot download .NET Framework 3.5 (I know these interrelate) for a few games I have wanted to play. I have tried various online help…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,150 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,100 questions
asked 2024-02-21T09:26:51.6+00:00
Max Frahm 0 Reputation points
edited the question 2024-02-22T01:26:50.2533333+00:00
Jiale Xue - MSFT 17,351 Reputation points Microsoft Vendor
1 answer

Has anyone worked with an Asp.net Core Web API project implementing API versioning in .Net 8.0 and successfully deployed it in IIS?

I've implemented API versioning using Asp.Net Core web API in .Net 8.0 Framework, and it works fine in the debugger with Swagger. But when I deploy my application using IIS, I get an error page saying "Page can't be found". How can I resolve…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,995 questions
asked 2024-02-03T06:59:39.54+00:00
Kesava Subhash Gullapudi 30 Reputation points
edited the question 2024-02-22T01:10:30.6866667+00:00
Jack J Jun 24,266 Reputation points Microsoft Vendor
1 answer

Initialize BlazorWebView on Android in the background

We have a Blazor Hybrid application that uses WebRTC for voice calling. The WebRTC calling piece runs as javascript hosted in the BlazorWebView. We are attempting to connect calls when the app is not started/running. We have setup push notifications to…

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,306 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,559 questions
asked 2024-02-15T16:47:04.3233333+00:00
John Graumann 0 Reputation points
commented 2024-02-22T01:02:01.2666667+00:00
Bruce (SqlWork.com) 52,401 Reputation points
3 answers One of the answers was accepted by the question author.

Resolving "No job functions found" Error in Azure Functions

Hello, I'm encountering an issue with my Azure Functions project that's causing a persistent "No job functions found. Try making your job classes and methods public" error. Despite following the standard guidelines, the error persists. Here are…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,988 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,142 questions
asked 2023-12-25T14:30:05.5166667+00:00
Muhammad Haseeb Rehman 30 Reputation points
commented 2024-02-21T23:04:58.6866667+00:00
Mike Urnun 8,996 Reputation points Microsoft Employee
0 answers

Bypassing "Pick user popup" after Sign out in a .Net 8 Blazor WASM application

How can I modify the logout code in my .Net 8 Blazor WASM application to include the logout_hint parameter? I have already enabled the login_hint optional claim in my client application and have the value of the logged-in user's login_hint optional…

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,306 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,583 questions
asked 2024-02-21T16:05:34.4866667+00:00
Scot Woodyard 0 Reputation points
commented 2024-02-21T21:56:37.1633333+00:00
Scot Woodyard 0 Reputation points
0 answers

mauig1001 error

I recently uploaded this to google play and everything compiled correctly. I am suddenly getting a number of errors, the primary being the following: MAUIG1001 An error occured while parsing Xaml: Name cannot begin with the '<' character,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,559 questions
asked 2024-02-21T20:45:30.6266667+00:00
bryan rohlfsen 0 Reputation points