23,985 questions with .NET-related tags

Sort by: Updated
2 answers

Cant install .NET Framework 3.5 error code 0x800F0922

I need to install the .NET Framework 3.5 but appears the error code 0x800F0922. It tried to follow the instructions in the page of "How to solve this problem": ".NET Framework 3.5 installation errors: 0x800F0906, 0x800F081F,…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,657 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,125 questions
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,908 questions
asked 2020-11-26T09:20:48.467+00:00
oscar ayora 1 Reputation point
commented 2022-01-31T15:38:23.883+00:00
Martijn 1 Reputation point
0 answers

ToolbarItem IconImageSource original colors on Android

ToolbarItem image is using mono color instead of its original colors. Here is my code: <ContentPage.ToolbarItems> <ToolbarItem IconImageSource="logo.png" Order="Primary" …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-01-29T21:53:40.53+00:00
Young Calabria 61 Reputation points
commented 2022-01-31T15:28:42.19+00:00
Young Calabria 61 Reputation points
0 answers

How to user Azure Key Vault with an Entity Framework connection string

I am trying to encrypt my app service's connection string via Azure Key Vault and this guide and I am getting the following error: The specified named connection is either not found in the configuration, not intended to be used with the EntityClient…

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,124 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,395 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,277 questions
asked 2021-11-08T21:12:39.267+00:00
Max Brooks 1 Reputation point
commented 2022-01-31T14:14:10.337+00:00
Yunus, Mohammed 1 Reputation point
1 answer One of the answers was accepted by the question author.

Why is my iOS build much bigger than my Android build in debug and release mode?

I get the following results on Android when I click on Build-->Archive for Publishing: Shrinking not enabled: Estimated App Store Size: 70,66 MB Dex Compiler: d8 Code Shrinker: / Shrinking enabled: Estimated App Store Size:…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-01-23T11:54:49.883+00:00
Kim Strasser 661 Reputation points
accepted 2022-01-31T11:48:57.3+00:00
Kim Strasser 661 Reputation points
1 answer

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 Client not authenticated to send mail. [ZR0P278CA0017.CHEP278.PROD.OUTLOOK.COM]

Getting error while sending email using .net and web.config has the following details- The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 Client not authenticated to send mail.…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,188 questions
asked 2021-04-24T08:20:16.127+00:00
SGH 1,221 Reputation points
commented 2022-01-31T11:26:51.307+00:00
ctilwani 1 Reputation point
3 answers

How to use existing .net framework 4.8 class library in .NET 6 project?

We have .NET 6 Blazor Server-side project in Visual Studio 2022. We would like to use .Net Framework 4.8 class library in .NET 6. In this class library, we are using System.Windows.Form and we cannot recompile the class library with .NET Standard 2.0. …

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,396 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,277 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,125 questions
asked 2022-01-31T09:33:55.023+00:00
Jay Vansjalia 1 Reputation point
answered 2022-01-31T11:23:31.357+00:00
cleric145-6909 11 Reputation points
0 answers

How to replace EF Core .Contains in LINQ query?

Hi Team, I am facing issue with .Contains, where there are multiple values, how to rewrite this linq query and how to replace .Contains? LINQ Query: return await this.context.Data.Where(f => f.DataId == this.workingDataId && !f.IsActive…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,188 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,277 questions
asked 2022-01-30T05:21:25.173+00:00
Shashank Sivakoti 1 Reputation point
commented 2022-01-31T09:05:02.757+00:00
Viorel 112.5K Reputation points
0 answers

How to update progress bar value in WPF from backend?

I am developing a download manager, and I want to implement a progress bar, I have added that and it is working fine with webclient but now I am using HttpWebRequest and I am updating progress bar value but it is not updating sometimes it throws an…

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,676 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,277 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.
766 questions
asked 2022-01-28T13:45:51.34+00:00
Nehal Chaudhari 41 Reputation points
commented 2022-01-31T08:31:23.31+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
1 answer

What VS options to chooose at the start?

(C#): A few years ago, I wrote a desktop APP in JAVA where the lead-off Class presents a frame (FORM in C#) with a radio button set of choices. Each choice loads a new class with its own frame and so on; there are many others of these. I want to…

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,676 questions
asked 2022-01-28T17:21:19.287+00:00
Robert Glover 1 Reputation point
commented 2022-01-31T08:01:55.767+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
1 answer

WPF application not always responsive to touch?

I have developed a Point-of-Sale solution with WPF using .NET Framework 4.8 running on a touch resistive screen. I am getting complaints from customer that the application doesn't always respond to touch, when for example a button is pressed, or tab item…

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,676 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,277 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.
766 questions
asked 2022-01-29T13:25:38.017+00:00
JohnMartel 41 Reputation points
commented 2022-01-31T07:45:42.77+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
1 answer

Xamarin.Forms Shapes disappeared in UWP

We have created XF shapes (Ellipse, Rectangle) to the ContentPresenter in the Button click event. And we are replacing the content of the ContentPresenter at run time. This is our XAML, <ContentPage…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-01-28T14:48:06.07+00:00
Lakshmi Natarajan 1 Reputation point
answered 2022-01-31T07:29:36.99+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 Reputation points Microsoft Vendor
2 answers

Image is not displaying after adding items to cart

this error is showing in the console. and the url is fine <asp:Image ID="img" runat="server" ImageUrl=<%# Eval("ImageFile") %> /> protected void AllData() { if…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,270 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,277 questions
asked 2022-01-24T14:57:39.963+00:00
Shubham Riyal 1 Reputation point
commented 2022-01-31T07:29:00.497+00:00
Yijing Sun-MSFT 7,066 Reputation points
1 answer

Deploy file during Xamarin deploy

Is there a way to have a file (.json) which exists on my development PC copied to the app storage on my Android?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-01-27T15:07:35.907+00:00
Lloyd Sheen 1,386 Reputation points
commented 2022-01-31T05:27:23.763+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 Reputation points Microsoft Vendor
1 answer

c# wpf XamlParseException

i work a project with visual studio 2022 and i use gifs. i save the canvas and use method XamlWriter but when i load canvas, i give an error "System.Windows.Markup.XamlParseException: "Unable to set unknown member…

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,676 questions
asked 2022-01-27T12:03:37.577+00:00
Zaug 306 Reputation points
commented 2022-01-31T03:22:22.787+00:00
Hui Liu-MSFT 40,266 Reputation points Microsoft Vendor
1 answer

Is there any way at runtime/programmatically to update the [Display(Name = "...")] display attribute?

I have a database with a large number of tables that I have imported into a .net 6 project using scaffolding (database-first). So all of the tables have been created as C# classes with no attributes decorating them, but separate code automatically…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
696 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,395 questions
asked 2022-01-20T11:02:20.363+00:00
Graeme Smith 1 Reputation point
answered 2022-01-30T18:26:43.957+00:00
Karen Payne MVP 35,036 Reputation points
1 answer

Xamarin Forms detect device language has changed

If the user changes the selected language in the Android settings, how can I detect that change in my App and update the content to use / show the correct content from the Resources file? Other apps, such as Settings itself, GMail, etc update as soon…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2021-03-22T13:34:58.243+00:00
Gordon S 501 Reputation points
commented 2022-01-30T15:27:56.507+00:00
pdschuller 1 Reputation point
2 answers

WCF InstancePersistenceCommand Exception

I have a WCF application which consists in some async communications with ecternal services. When we start a new expedient, a new instance is created; it process data and send an xml to a external service and waits for the response. This response…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,395 questions
asked 2022-01-14T20:25:59.847+00:00
Juan Jimenez 1 Reputation point
answered 2022-01-30T14:41:29.507+00:00
Juan Jimenez 1 Reputation point
1 answer

Protecting C# Windows Application from .Net Reflector and creating setup file

People are installing my app on their computers. I should hide the table structure and connection string information for security. I do this with ConfuserEx:…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,834 questions
asked 2022-01-29T12:36:54.557+00:00
Faruk Durak 6 Reputation points
answered 2022-01-30T14:38:08.793+00:00
Ken Tucker 5,846 Reputation points
4 answers One of the answers was accepted by the question author.

System.NullReferenceException in Datagrid.Items (export DataGrid.Items into PDF), in WPF (by C#)

First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). I want to display DataGrid as a table in PDF through the following codes and DataGrid has 10 columns, there is no problem when I add 8 rows but when I add…

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,676 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,277 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.
766 questions
asked 2022-01-27T15:34:51.433+00:00
رضا جافری 1,291 Reputation points
accepted 2022-01-30T13:25:30.733+00:00
رضا جافری 1,291 Reputation points
1 answer

Creating web Apis Auto Gen Services code VIA Poco Classes.

I am seeing to do this all the time create my services and interfaces is their no tool out their at present where it will take a poco class and create a service class based off that or the db context? Im mostly creating web apis using swagger for the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,188 questions
asked 2022-01-29T21:21:22.077+00:00
NOVATROOP77 256 Reputation points
answered 2022-01-30T13:07:52.54+00:00
AgaveJoe 26,136 Reputation points