23,857 questions with .NET-related tags

Sort by: Updated
1 answer

prevent "Object reference not set to an instance of an object. " when query returns no results

I have the following method of my Applicant class that runs a query and returns a string. public string GetPhoneFromSmsLog(string UserID) { using (SqlConnection oConn = new…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,251 questions
asked 2022-06-02T16:13:36.373+00:00
M J 661 Reputation points
commented 2022-06-06T02:58:42.967+00:00
Yijing Sun-MSFT 7,066 Reputation points
1 answer

Testing OpenGl Graphics on Android Emulator/Device

Hi, This seems impossible. adb shell dumpsys gfxinfo Only collects around 2 frames. The Android Device Monitor's systrace appears to collect frame data, but always shows no janky frames, which is obviously incorrect given the jerky movement on…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-05-23T09:28:47.17+00:00
Andrew Azz 171 Reputation points
commented 2022-06-06T02:28:50.817+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,291 Reputation points Microsoft Vendor
1 answer

About Location in xamarin forms

How to find if Location is turned on or off in settings through code. i have this xam.plugin. geolocator. i use this code but it is not working. IGeolocator Locator = CrossGeolocator.Current; protected override void OnAppearing() {…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-05-26T14:59:41.78+00:00
Asgar Ali 86 Reputation points
commented 2022-06-06T02:06:30.613+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,291 Reputation points Microsoft Vendor
1 answer

Microsoft Identity Extending tables

hello I am using Microsoft identity in my asp.net core project and i extended the table AspNetUsers by inherit from it a class called appicationUsers, after that i created many tables related to my own project and linked those table with the mentioned…

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.
610 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,156 questions
asked 2022-06-03T14:15:48.037+00:00
lighto22 1 Reputation point
answered 2022-06-06T01:55:49.597+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
1 answer

In C# WPF, is there a way to make it sort to the top of the listview whenever a new item is added?

I'm making a WPF app that implements a folder explorer. And I want to add a new folder item to the top of the folder list view when the new folder button is pressed. So I put a code that adds a sortdirection to sort by date, folder, and filename. …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,670 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.
762 questions
asked 2022-05-31T16:21:57.613+00:00
JunYoungLee 161 Reputation points
commented 2022-06-06T01:44:42.793+00:00
Hui Liu-MSFT 38,191 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How can I redisplay the paragraph break vertical lines in visual studio?

I am working with visual studio 2022. However, the vertical line disappeared as shown in the picture below, probably because I pressed something wrong. However, vertical lines are visible in other code windows as shown on the right. How can I make…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,670 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,231 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
328 questions
asked 2022-06-05T09:32:41.2+00:00
JunYoungLee 161 Reputation points
commented 2022-06-05T23:29:12.95+00:00
JunYoungLee 161 Reputation points
1 answer

Custom claims are not kept after 15 minutes

is in Hello, I developed an ASP.NET MVC application which uses ASP.NET Identity 2 and OWIN to provide authentication. All works perfectly but authentication after I changed cookie duration to 30 days (it was 15 minutes before, the default). I have…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,251 questions
asked 2022-01-05T13:36:19.237+00:00
Jaime Stuardo 51 Reputation points
answered 2022-06-05T22:37:07.413+00:00
Bruce (SqlWork.com) 55,601 Reputation points
1 answer

Download Android device issue in MAUI project

I created the first project of MAUI and choose the Android Emulator. In the window of Android Device Manager, I failed to download the default device Pixel 5 - API 30 with bellow error: Network is not reachable. Please check your connection and try…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,859 questions
asked 2022-06-03T09:40:33.597+00:00
TracyLiang 41 Reputation points
commented 2022-06-05T18:54:34.28+00:00
Rob Caplan - MSFT 5,412 Reputation points Microsoft Employee
8 answers

unable to deploy .net core app on a shared linux hosting

Hi, .net core app is supposed to be a multi platform app. For some reason no shared Linux hosting (like a2hosting.com) is allowing .net core app their linux shared hosting servers.

.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,118 questions
asked 2020-12-11T12:43:00.263+00:00
Mohamed Cisse 1 Reputation point
answered 2022-06-05T16:10:27.487+00:00
Bruce (SqlWork.com) 55,601 Reputation points
3 answers One of the answers was accepted by the question author.

IIS Form Authentication template

Hi, perhaps someone will share the source code of the authentication web page. Perhaps there is a standard page? There is an iis resource where basic authentication is used. After opening the page, a window for entering a name and password appears.…

Internet Information Services
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,156 questions
asked 2022-06-04T06:54:45.36+00:00
Mountain Pond 1,101 Reputation points
accepted 2022-06-05T15:27:10.53+00:00
Mountain Pond 1,101 Reputation points
1 answer One of the answers was accepted by the question author.

Visual studio publish..

so i used visual studio a while back to create simple windows form apps but now that i created one and i try to publish it / build it into a single EXE i dont get the option, i can only pick to publish it online or something or that users have to use…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,826 questions
asked 2022-06-05T00:23:07.62+00:00
mattheo baaij 21 Reputation points
accepted 2022-06-05T10:10:34.253+00:00
mattheo baaij 21 Reputation points
1 answer One of the answers was accepted by the question author.

RAM overflows and the application slows down, when the application is loaded with a large amount of Microsoft Access data (ADO.NET)

Hi I use the following algorithm to load data into my application. XAML: <Window.Resources> <local:DatabaseDataSet x:Key="Database_DataSet"/> <CollectionViewSource…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,670 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,692 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,231 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.
762 questions
asked 2022-06-03T19:55:06+00:00
رضا جافری 1,291 Reputation points
accepted 2022-06-04T15:07:58.373+00:00
رضا جافری 1,291 Reputation points
2 answers One of the answers was accepted by the question author.

How to refresh the child razor component on the bases of provided text box which is resided in parent razor component (by using a razor class library)?

Hi, I need to refresh the child razor component on the bases of provided text box which is resided in parent razor component (by using a razor class library) What I want that ASAP user type 5th character or more in the textbox , a call should go the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,156 questions
asked 2022-06-02T13:49:29.027+00:00
mehmood tekfirst 766 Reputation points
commented 2022-06-04T11:14:14.727+00:00
mehmood tekfirst 766 Reputation points
1 answer One of the answers was accepted by the question author.

Why when using filcesystemwatcher and dictionary with fileinfo it's throwing exceptions on wrong key and file not found ?

Link for the repository on github : https://github.com/chocolade1972/FileSystemWatcher The project size is 92 KB only compressed with winrar. At the top i init with new instance both filelist and dic variables. Then when starting watching…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,670 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,231 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.
762 questions
asked 2022-06-02T21:09:09.583+00:00
Chocolade 516 Reputation points
accepted 2022-06-04T10:55:40.293+00:00
Chocolade 516 Reputation points
1 answer

Passing multiple parameters with MessagingCenter

Hi, I got this from the Microsoft KB that allows to pass a parameter through MessagingCenter MessagingCenter.Send<object, string>(this, App.ShowPINActivation, email_address); but how can I pass two parameters like this: …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 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,231 questions
asked 2022-06-03T21:13:35.82+00:00
Jassim Al Rahma 1,521 Reputation points
answered 2022-06-04T03:47:55.317+00:00
Viorel 112.1K Reputation points
1 answer One of the answers was accepted by the question author.

How to use IFormCollection instead of IFormFile

I have a controller that used to use the IFormFile interface, and I could CopyTo the filestream using the FileName. IActionResult Upload(IFormFile files) { var infile = Path.Combine(env.ContentRootPath, @"wwwroot\images",…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,156 questions
asked 2022-06-03T00:48:44.987+00:00
Coreysan 1,631 Reputation points
commented 2022-06-03T19:24:51.617+00:00
Coreysan 1,631 Reputation points
1 answer One of the answers was accepted by the question author.

VS 2022 C# ComboBox operations using WinForms. Adding data from SQL server and later capturing selected value.

I am looking the way to allocate data from SQL server table. get 2 columns (ProductID (int) and ProductName (string) from database table into ComboBox. show only product name. Capture selected value in drop down of comboBox. The trick is to get…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,826 questions
asked 2022-06-03T13:33:41.2+00:00
Ed Januskis 66 Reputation points
accepted 2022-06-03T18:09:25.93+00:00
Ed Januskis 66 Reputation points
2 answers

Issue in Implementing Windows Authentication and LDAP in .NET 6

Hi Team, We have a intranet web api hosted in Windows box (on prem) which is consumed by our Angular UI and we need to implement Integration Windows Authentication in the API side. I was looking into the MS docs (see below url) and noticed that there…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,156 questions
asked 2022-05-30T19:04:57.923+00:00
Srivastava, Prashant 1 Reputation point
commented 2022-06-03T14:59:37.973+00:00
Bruce (SqlWork.com) 55,601 Reputation points
2 answers

SAP crystal reports runtime engine for .net framework 4 installation issue in windows 11

I am not able to install SAP crystal reports runtime engine for .net framework 4(32 bit Version: 13.0.3.162) in windows 11(Version: 21H2 , OS Build: 22000.556). Error Message: Product: SAP Crystal Reports runtime engine for .NET Framework (32-bit) --…

.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,118 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,145 questions
asked 2022-05-25T12:43:32.567+00:00
anil awati 11 Reputation points
commented 2022-06-03T10:12:49.747+00:00
anil awati 11 Reputation points
1 answer

Implementing request varification tokan

I have read some articles on preventing cross site requests within an webpage by using request verification token in MVC and ASP.NET Core application. But is there a way to implement this token in a classic ASP.NET application

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,251 questions
asked 2022-05-31T06:08:42.537+00:00
Adeel Mirza 121 Reputation points
commented 2022-06-03T08:36:06.613+00:00
Lan Huang-MSFT 25,471 Reputation points Microsoft Vendor