23,884 questions with .NET-related tags

Sort by: Updated
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,671 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,246 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.
765 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,294 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,246 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,164 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,828 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,164 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) 56,021 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,119 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,164 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,254 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,551 Reputation points Microsoft Vendor
1 answer

Delete files when uninstall the application

If I try to uninstall the application I would like the files to be deleted, but if I uninstall the application and reinstall it the contents of the files remain. how could i solve? switch (Device.RuntimePlatform) { case…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
asked 2021-03-26T19:02:52.333+00:00
Stefano M 91 Reputation points
commented 2022-06-03T07:59:05.963+00:00
Susundre, Pradeep [COMRES/CC/IN] 21 Reputation points
2 answers One of the answers was accepted by the question author.

How to utilize re-usable Razor component/view/page (Razor Class Library and ASP.NET Core 6 MVC) through plain html and Javascript?

Hi, I am developing a shareable widget by using Razor Class Library and Razor Component. I want to convert this code in the form of Razor Class Library and then I need to use it in plain html (with JavaScript). See the following url and…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,164 questions
asked 2022-06-01T12:47:19.067+00:00
mehmood tekfirst 766 Reputation points
commented 2022-06-03T07:11:18.8+00:00
mehmood tekfirst 766 Reputation points
1 answer

Pass list of object from view to controller via jquery ajax

First I create a view model like this below public class policyDetailsViewModel { public class Rootobject { public int message_code { get; set; } public Data data { get; set; } } public class Data { public…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,164 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
asked 2022-06-03T00:00:06.1+00:00
zola 1 Reputation point
answered 2022-06-03T06:34:19.563+00:00
Brando Zhang-MSFT 2,956 Reputation points Microsoft Vendor
2 answers

where is the problem in function?

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
asked 2022-06-02T15:00:19.363+00:00
abdullah 1 Reputation point
answered 2022-06-03T06:08:46.567+00:00
Yijing Sun-MSFT 7,066 Reputation points
1 answer

How to add and retreive value from appsetting.json or some other configs in Razor Component though Razor Class Library?

Hi, I need to add some configs like appsetting.json in Razor Class Library? And then I need to get the specific value from this config and need to use in Razor.Component .

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,164 questions
asked 2022-06-02T10:54:57.337+00:00
mehmood tekfirst 766 Reputation points
answered 2022-06-03T05:17:24.097+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
0 answers

WF4 how to enable or disable dropdown(enum) argument based on previous/other dropdown(enum) value

I have two drop down in my codeactivity property, I want to allow the user to select second drop down based on the first drop down selection. Please see my sample code : public enum Services { Human, Web } public enum ServiceType { Soap, …

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,671 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.
765 questions
asked 2022-05-31T15:36:21.02+00:00
Dhanasekar Velayudham 1 Reputation point
commented 2022-06-03T04:55:51.29+00:00
Dhanasekar Velayudham 1 Reputation point
1 answer

How to Share the Data Amount Multiple Razor Components by using in Razor Page through Razor Class Library ?

Hi, I have developed a Widget by using nested Razor Component in Razor Page through Razor Class Library. Now I want to share the data among these nested razor components. How can I share the common data in it ?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,164 questions
asked 2022-06-02T10:18:38.43+00:00
mehmood tekfirst 766 Reputation points
answered 2022-06-03T03:04:45.963+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Maui.Net Graphics

Hi I want to move from Xamarin and Skai Sharp to Maui.Net. How to start with graphics in Maui.Net I tried to create simple graphics app but I dont know how to start. This is XAML code <?xml version="1.0" encoding="utf-8"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,868 questions
asked 2022-06-02T09:01:30.747+00:00
Yusuf 681 Reputation points
accepted 2022-06-03T02:37:13.78+00:00
Yusuf 681 Reputation points
0 answers

Forms Authentication with DirectoryServices - Your login attempt was unsuccessful. Please try again.

A VB.NET application that I inherited authenticates users via Forms Authentication and System.DirectoryServices to query Active Directory using LDAP. The app was originally deployed to IIS 6 (Windows Server 2008) but was recently migrated to IIS 10 on a…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,856 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,570 questions
asked 2022-06-01T20:49:15.637+00:00
Shaheer Asar 1 Reputation point
commented 2022-06-03T01:04:48.43+00:00
Shaheer Asar 1 Reputation point
1 answer One of the answers was accepted by the question author.

How to copy Exif data from one image to another?

In Xamarin Forms I take a picture. At this point it has Exif information. Then I need to rotate it and reduce it's size. Now it has lost most of it's Exif information. Is there a way in Xamarin Forms to read the Exif data from the original image and…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
asked 2022-05-19T19:27:20.817+00:00
WillAutioItrax 201 Reputation points
commented 2022-06-02T23:14:37.67+00:00
WillAutioItrax 201 Reputation points
1 answer

Is it possible to Implement Azure Ad Authentication in webforms without cookie authenticationtype ?

Can we implement the below code without using cookies public void Configuration(IAppBuilder app) { app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType); …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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,472 questions
asked 2022-05-17T19:40:19.423+00:00
Praneeth Kumar Pagunta 1 Reputation point
answered 2022-06-02T18:52:00.257+00:00
2 answers

Command problem

Hi, I see that UserID0.Value is with the proper value 18 and there is the existing record with INT column user_id having the value 18. But it is not getting the record by the following command. Why? SqlCommand cmd = new…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,374 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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,246 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,119 questions
asked 2022-05-31T05:18:53.857+00:00
Peter_1985 2,506 Reputation points
answered 2022-06-02T17:12:39.967+00:00
bet365samcom 1 Reputation point
2 answers One of the answers was accepted by the question author.

Display all months from (today) and go back 14 months

I have a requirement to return a rolling 14 months to the app. I'm creating an WebAPI So, I need to go back 14 months from todays date. I have this so far, but drawing a blank: [HttpGet("[months]") //allows them to define the months to go…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,164 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,246 questions
asked 2022-06-02T13:33:55.99+00:00
TheCoder 91 Reputation points
accepted 2022-06-02T15:05:03.697+00:00
TheCoder 91 Reputation points