10,311 questions with C#-related tags

Sort by: Updated
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,931 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,311 questions
asked 2024-05-12T21:27:18.04+00:00
Phunction 206 Reputation points
3 answers

double roundoff error in calculations

All of these following code statements should yield the same value, but the second to fourth statement have a second to last digit rounding error in c#. The first statement is correct and fifth to last are correct. Do you know this is…

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,311 questions
asked 2024-05-10T16:47:06.63+00:00
Lawrence254 0 Reputation points
answered 2024-05-12T16:12:59.84+00:00
Bruce (SqlWork.com) 57,166 Reputation points
2 answers

This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.

Server Error in '/' Application. Configuration Error __Description:__An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,417 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,289 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,206 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,311 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.
303 questions
asked 2024-05-12T12:11:59.8466667+00:00
Dhananjay Dangadi 0 Reputation points
answered 2024-05-12T15:51:20.3333333+00:00
Bruce (SqlWork.com) 57,166 Reputation points
1 answer

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,289 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,311 questions
asked 2024-05-05T17:01:04.1133333+00:00
Gani_tpt 1,586 Reputation points
commented 2024-05-12T13:17:22.8033333+00:00
Gani_tpt 1,586 Reputation points
3 answers

How to fill a ListView?

Dear all, I'm a beginner in C#. Could anyone tell me how to fill a ListView?

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,311 questions
asked 2024-04-30T05:22:04.94+00:00
BenTam 1,581 Reputation points
edited a comment 2024-05-12T12:50:39.38+00:00
BenTam 1,581 Reputation points
0 answers

how to read ObservableCollection to an array

I may be doing this the wrong way, I want to read all the Line in my listview to be able to add them to an array. xaml <ListView ItemsSource="{Binding MyItems}" IsGroupingEnabled="True" GroupShortNameBinding="{Binding…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,647 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,311 questions
asked 2024-05-11T13:45:01.4433333+00:00
tim 120 Reputation points
edited the question 2024-05-12T12:28:37.09+00:00
tim 120 Reputation points
1 answer

Update Workload Problem/ NuGet Package unable to be installed.

**I have created 3 Projects: FrontEndProject and it is a Blazor Project and this is the csProj:** <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,209 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,404 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,311 questions
asked 2024-05-10T04:54:17.63+00:00
Muhammad Ghozlan 0 Reputation points
commented 2024-05-12T08:52:09.4633333+00:00
Muhammad Ghozlan 0 Reputation points
2 answers One of the answers was accepted by the question author.

Select Delete commands

Hello, I've been given this samples for insert into and update: Using command As New OleDbCommand("INSERT INTO Table (Column1) VALUES (?)", connection) command.Parameters.AddWithValue("@param1", field1) …

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,311 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,581 questions
asked 2024-05-02T14:23:13.35+00:00
StewartBW 345 Reputation points
commented 2024-05-12T01:05:03.17+00:00
Karen Payne MVP 35,196 Reputation points
1 answer

COM timeout Excel

Microsoft 365 Excel version 2403. C# application (WPF on .Net 8) using excel COM interop ("automation") which adds a menu in the Excel application and setsup a click handler (in WPF). All works normally just fine, but when debugging and say…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,499 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,311 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,532 questions
asked 2024-04-24T07:13:01.6266667+00:00
Magne 126 Reputation points
commented 2024-05-11T21:38:21.4033333+00:00
RLWA32 40,851 Reputation points
0 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,931 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,311 questions
asked 2024-05-11T02:31:41.49+00:00
wire_jp 201 Reputation points
edited the question 2024-05-11T21:33:15.48+00:00
wire_jp 201 Reputation points
1 answer

Does NumberBox.Value NaN not equal double.NaN?

When I use NumberBox (WinUI2), I have trouble as follows: if (NumberBox.Value == double.NaN) // It keeps false. { // Some action codes. } Is there any bug about this equation? I would appreciate it if anyone could solve this problem.

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,311 questions
asked 2024-05-11T07:35:25.51+00:00
鲤鱼 秀 45 Reputation points
answered 2024-05-11T07:35:25.5233333+00:00
Q&A Assist
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,209 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,289 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,311 questions
asked 2024-05-06T23:53:29.4066667+00:00
Anjali Agarwal 1,386 Reputation points
commented 2024-05-11T00:35:46.4133333+00:00
Anjali Agarwal 1,386 Reputation points
1 answer

Exception problem

Hi, I've got issue due to this line below. reader = cmd.ExecuteReader(); Can it be owing to no record returned?

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,815 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,311 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,559 questions
asked 2024-05-10T08:22:21.91+00:00
Peter_1985 2,526 Reputation points
answered 2024-05-10T21:41:52.05+00:00
Erland Sommarskog 101.9K Reputation points MVP
3 answers One of the answers was accepted by the question author.

Define Thread

Hello, In this code: Dim ThreadBlah As New Thread(AddressOf BlahThread) vs Dim ThreadBlah As New Thread(New ParameterizedThreadStart(AddressOf BlahThread)) ThreadBlah.Start Private Sub BlahThread(ByVal InParam As Object) ... End Sub I can define…

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,311 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,581 questions
asked 2024-05-10T15:08:53.2166667+00:00
StewartBW 345 Reputation points
commented 2024-05-10T21:29:00.1533333+00:00
StewartBW 345 Reputation points
1 answer

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.
698 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,289 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,815 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,311 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.
303 questions
asked 2024-05-10T16:37:37.01+00:00
Siddangoud Bharamagoudar 61 Reputation points
answered 2024-05-10T16:47:02.4333333+00:00
Bruce (SqlWork.com) 57,166 Reputation points
1 answer

Unauthorized error when logging in with IdentityModel.OidcClient in MAUI

I am responsible for the development of a cross-platform application that must log in with OpenID. This application is developed in Xamarin.Forms, but I have to migrate it to MAUI. To log into the application I use the IdentityModel.OidcClient library.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,417 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,931 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,311 questions
asked 2024-05-09T07:10:13.6466667+00:00
Jalza 736 Reputation points
commented 2024-05-10T15:02:27.53+00:00
Jalza 736 Reputation points
1 answer

Where can I get the syntax, is there a comparison table? How do you do it?

Sample IsValid callback; // define a variable of delegate type IsValid callback = s => s?.Length > 1; // using lambda, define a callback function var result = callback("test"); // invoke the callback code IsValid…

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,311 questions
asked 2024-05-10T14:25:15.3033333+00:00
Noah Aas 140 Reputation points
answered 2024-05-10T14:44:44.0266667+00:00
Jiale Xue - MSFT 34,356 Reputation points Microsoft Vendor
2 answers

Func, Action, Predicate delegates, events in C#

Hello! I am looking for a good short guide on when and how to take what. Do you have any examples or do you know a good site?

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,311 questions
asked 2024-05-09T19:00:01.6066667+00:00
Noah Aas 140 Reputation points
commented 2024-05-10T14:22:03.76+00:00
Noah Aas 140 Reputation points
2 answers

Procedure for a m:n data relationship

Hello! Are there any tools or tips on how to create a data model? Once the data model is there, how best to deal with primary and foreign keys. The based on XML or JSON format. Save and read XML or JSON files. <MappingTable> <Parameters> …

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,311 questions
asked 2024-05-09T07:56:03.26+00:00
Noah Aas 140 Reputation points
edited a comment 2024-05-10T14:18:27.5+00:00
Noah Aas 140 Reputation points
1 answer

Issue with move folder API in Microsoft Graph when Email ID contains "/"

When attempting to move a folder using the following endpoint: Endpoint: https://graph.microsoft.com/v1.0/me/messages/{EmailId}/move I'm encountering an error when the EmailId parameter contains a "/" symbol. Despite trying to encode the Email…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,716 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,311 questions
asked 2024-05-09T04:23:23.2433333+00:00
Waqar Ahmed 0 Reputation points
commented 2024-05-10T12:51:14.53+00:00
Waqar Ahmed 0 Reputation points