10,377 questions with C#-related tags

Sort by: Updated
1 answer

Open Word Document in .Net

I'm trying to convert a C# Framework 4,.8 application to .Net 8. If I include the line: dynamic MyWordApplication = new Microsoft.Office.Interop.Word.Application(); An error occurs: {"Could not load file or assembly 'office, Version=15.0.0.0,…

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,377 questions
asked 2024-05-24T02:04:11.6966667+00:00
zequion 131 Reputation points
answered 2024-05-24T07:24:09.18+00:00
Hongrui Yu-MSFT 260 Reputation points Microsoft Vendor
2 answers

EF Core doesn't recognize many-to-many relationship

I have a many-to-many relationship, altough EF Core seems not to recognize it. The relationship exists between JobOffer and JobOfferTag. JobOffer inherits from BaseJobOffer. BaseJobOffer.cs public class BaseJobOffer { [Required] …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
702 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,377 questions
asked 2024-05-23T15:23:05.96+00:00
iKingNinja 60 Reputation points
answered 2024-05-24T07:21:04.53+00:00
Hongrui Yu-MSFT 260 Reputation points Microsoft Vendor
2 answers

framework realated question

what is frame in framework for .net applicatons like .net framework 3.5 and what it indicates for frames

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
702 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,312 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,892 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,377 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.
306 questions
asked 2024-05-10T16:37:37.01+00:00
Siddangoud Bharamagoudar 61 Reputation points
commented 2024-05-24T07:17:27.83+00:00
Lan Huang-MSFT 26,516 Reputation points Microsoft Vendor
1 answer

VirtualizingStackPanel Scrollviewer height

I am working a uwp app where i used ListView with VirtualizingStackPanel . In my case i am trying create an alternatives for CVS ListView so each item has a ItemsControl (choosen this because it consume less memory and ScrollViewer). Now if i want…

Universal Windows Platform (UWP)
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,377 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
772 questions
asked 2024-05-22T06:12:58.1066667+00:00
shriram 80 Reputation points
commented 2024-05-24T07:09:36.8633333+00:00
Junjie Zhu - MSFT 15,756 Reputation points Microsoft Vendor
0 answers

Performance Discrepancy Between Templated Control and Direct Implementation

I encountered a performance issue while working on a project where I utilized two identical buttons with all properties set the same. The only difference was in the content: one button utilized a PathIcon inside a Viewbox, while the other utilized a…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
731 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,377 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
772 questions
asked 2024-05-24T05:00:57.4466667+00:00
Muthu S 20 Reputation points
commented 2024-05-24T06:24:29.9+00:00
Xiaopo Yang - MSFT 11,581 Reputation points Microsoft Vendor
0 answers

How to use localized RESX in Blazor WASM?

Hi, all I want is standard "old way" usage of generated static properties of my RESX to localize texts based on CultureInfo and .culture.resx files. I've just figured out, that only difference from .NET Framework is that now in .NET 8 culture…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,458 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,237 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,377 questions
asked 2024-05-22T07:01:50.83+00:00
Rada Matěj 180 Reputation points
commented 2024-05-24T05:47:00.4166667+00:00
Tiny Wang-MSFT 1,746 Reputation points Microsoft Vendor
0 answers

Help with setting the background color when the MenuStrip dropdown menu is opened.

hello. I have organized my menu using MenuStrip. I have overridden the MenuStrip background and color with ToolStripProfessionalRenderer. I am using the MenuStrip with white text on a transparent background. When the dropdown menu is opened, the text of…

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,377 questions
asked 2024-05-22T09:00:16.8533333+00:00
Youngs 20 Reputation points
commented 2024-05-24T04:50:16.9533333+00:00
KOZ6.0 5,215 Reputation points
0 answers

Dropbox on .NET Maui

I am trying to get Dropbox to work in .net maui. I have it working fine in xamarin.ios, it open a browser and get them to login, then when the go back from the browser, the app is receives the redirect in appdelegate.cs to get the auth token and use it…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,971 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,377 questions
asked 2024-05-12T21:27:18.04+00:00
Phunction 206 Reputation points
commented 2024-05-24T03:18:49.1266667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,951 Reputation points Microsoft Vendor
1 answer

REST interface, server for GET,PUT,POST,DELETE

Hello, My goal is to control a Rest Server from a WPF C# desktop app. Get, Push, Pop, Delete should be tested. The server does not require extensive logic, only test data. Later, the customer REST server is connected. How can I achieve this? How should I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,237 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,312 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,377 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.
306 questions
asked 2024-05-23T17:15:44.0466667+00:00
Noah Aas 260 Reputation points
commented 2024-05-24T02:30:05.86+00:00
Tiny Wang-MSFT 1,746 Reputation points Microsoft Vendor
1 answer

Select from table

Hello Using Access mdb with OleDbRader (Access Database Engine) to select all: "SELECT * FROM tabke WHERE clmn = 'blah'" This might return 100 items, how can I use select to read from number 5 to 50, for example? Possible? Thank you all

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,377 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,602 questions
asked 2024-05-24T00:46:41.91+00:00
StewartBW 505 Reputation points
answered 2024-05-24T02:17:25.3433333+00:00
Jiachen Li-MSFT 27,166 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

REST interface, server

Hello, the request is ok. I have a request and would now like to create a test server (mock sever). To see if the interface works and I can develop with test data. All that is required is a defined response. What options do I have to achieve this? I…

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,377 questions
asked 2024-05-17T17:14:13.93+00:00
Noah Aas 260 Reputation points
accepted 2024-05-23T17:12:21.92+00:00
Noah Aas 260 Reputation points
1 answer

Error when uploading CSV files to Azure blob storage using ManagedIdentity with C# and GraphQLAPI. "Total size of resourceFiles is using 147% of available space after processing."

Hello All, I have created a console app using C# where I try to fetch the data from GraphQLAPI and store the data in csv files. post that it would be uploaded to the Azure blob storage using ManagedIdentity. This complete code work fine in my local VS…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,237 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,312 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,743 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,377 questions
asked 2024-05-15T08:40:14.42+00:00
Siddhesh Chavan 0 Reputation points
commented 2024-05-23T16:50:15.2666667+00:00
ShaikMaheer-MSFT 38,126 Reputation points Microsoft Employee
1 answer

How to create backend application using Asp.net C# Web API Core

How to create backend application using web api core application followed by standards using desing pattern, Depedency injection and solid principle I am new to web api core how to start following things JWT token authentical and authorization simple…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,237 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,312 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,377 questions
asked 2024-05-17T06:22:52.4166667+00:00
coder rock 196 Reputation points
commented 2024-05-23T15:29:54.2+00:00
AgaveJoe 26,166 Reputation points
2 answers

Android Emulator waiting for debugger to attach in .net maui app

I upgraded my .net maui app from .net 7 to .net 8 and updated my nuget packages. I built the output solution but deployment was not successful as I had received the error message:- Xaml XC002 erro: Binding could be compiled if x:datatype is specified…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,971 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,377 questions
asked 2024-05-11T02:31:41.49+00:00
wire_jp 206 Reputation points
answered 2024-05-23T14:40:50.9166667+00:00
Chris A 0 Reputation points
0 answers

Moving xamarin.ios to new SKD style issues

I am trying to move my xamarin.ios project to the new SDK style as MS is no longer supporting the previous methods. I am following the steps at https://learn.microsoft.com/en-us/dotnet/maui/migration/?view=net-maui-8.0 But I get multiple…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,971 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,377 questions
asked 2024-04-15T17:54:17.71+00:00
Phunction 206 Reputation points
commented 2024-05-23T14:40:34.79+00:00
Phunction 206 Reputation points
1 answer One of the answers was accepted by the question author.

How to bring app to front, if already open?

How to bring the app to front, if already open? My app is Windows Form application c#

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,856 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,377 questions
asked 2024-05-22T13:25:34.1033333+00:00
Hussnain Fareed 0 Reputation points
edited a comment 2024-05-23T14:05:09.5666667+00:00
KOZ6.0 5,215 Reputation points
1 answer

Get Sql instances in .Net

How can I retrieve a DataTable from Sql Server instances in .Net? In the .Net Framework it was done this way: SqlDataSourceEnumerator instance = SqlDataSourceEnumerator.Instance; DataTable table = instance.GetDataSources(); string…

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,377 questions
asked 2024-05-23T09:46:11.3966667+00:00
zequion 131 Reputation points
edited an answer 2024-05-23T13:53:57.8266667+00:00
Hui Liu-MSFT 41,331 Reputation points Microsoft Vendor
1 answer

How to Disable/Enable Audio Hardware Acceleration in Windows 11?

Hi there, I would like to Disable/Enable Audio Hardware Acceleration programmatically in Windows 11. Is there any way to implement it? Thanks. Best regards, Hank

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,377 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,561 questions
asked 2024-05-21T07:19:37.4966667+00:00
Hank 0 Reputation points
commented 2024-05-23T13:30:04.0133333+00:00
Castorix31 82,036 Reputation points
0 answers

How to upload a analyzed document done with documentAnalysisClient.AnalyzeDocumentAsync call in code, into the training dataset in code, which mimics the 'Mark as to uploaded into the training dataset' button in Azure DI

After analyzing a doc with the documentAnalysisClient.AnalyzeDocumentAsync, I need a way to upload the tested doc directly into the training dataset of its corresponding blob with the already labeled fields. Basically I need to mimic the yellow…

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,377 questions
Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,442 questions
asked 2024-05-23T09:34:07.56+00:00
edited the question 2024-05-23T09:42:03.14+00:00
2 answers

Why is the GetReservations method not running asynchronously?

I am having trouble getting the GetReservations method to run asynchronously in my ReservationListingViewModel class in C#. Can someone please help me understand what I'm doing wrong? And I am also having an issue with using _reservations as private…

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,377 questions
asked 2024-05-20T16:13:30.51+00:00
Tom Meier 140 Reputation points
commented 2024-05-23T09:34:21.6166667+00:00
Jiale Xue - MSFT 36,391 Reputation points Microsoft Vendor