25,778 questions with .NET-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

Rule is not created expectedly

Hi, What is wrong below? I want to call Command prompt (by running it as Administrator) and further apply firewall rule. It seems relevant rule is not created expectedly. Why? fld1 = "netsh advfirewall…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,892 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,107 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,913 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,723 questions
asked 2021-01-25T07:00:30.773+00:00
Peter_1985 2,666 Reputation points
commented 2021-01-27T01:24:33.237+00:00
Peter_1985 2,666 Reputation points
2 answers

Trying to execute multiple stored procedures in multiple calls in parallel from .net core WebApi

Trying to execute multiple stored procedures in multiple calls in parallel from .net core WebApi Hi. I've been trying to find a way to execute stored procedures in SQL Server in parallel from a web API in .net core. The request are being done by an…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,553 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.
13,785 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,159 questions
asked 2021-01-26T19:56:23.59+00:00
Gabriel Alva 1 Reputation point
commented 2021-01-26T23:07:36.177+00:00
Gabriel Alva 1 Reputation point
2 answers One of the answers was accepted by the question author.

System.Reflection.TargetInvocationException / Lineagradientbrush

Hi Everyone, I'm having a hard time trying to implement a Gradient. In Xamarin Forms I'm using this code, but when I try to run I get System.Reflection.TargetInvocationException Message=Exception has been thrown by the target of an invocation. It…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,348 questions
asked 2020-12-29T07:07:47.227+00:00
Miguel 21 Reputation points
answered 2021-01-26T17:46:23.293+00:00
AUU 1 Reputation point
2 answers

TargetPlatformVersion is -1

Xamarin.Forms recommends TargetPlatformMinVersion >= 10.0.14393.0 (current project is -1) App1 C:\Microsoft\Xamarin\NuGet\xamarin.forms\4.8.0.1451\buildTransitive\Xamarin.Forms.targets 232 Xamarin.Forms recommends TargetPlatformVersion >=…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,348 questions
asked 2020-12-10T12:19:55.693+00:00
Adoo 1 Reputation point
commented 2021-01-26T17:25:40.057+00:00
Joe Manke 1,091 Reputation points
2 answers One of the answers was accepted by the question author.

ImageButton FontImageSource.Glyph and FontImageSource.Color binding in csharp

Hi I have an ImageButton and I set a static source: iconCancellaOModificaQuantitaOBarcode.Source = new FontImageSource { Glyph = Library.IconaCancella, FontFamily = "ionicons", …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,348 questions
asked 2021-01-26T08:53:54.11+00:00
Alessandro Caliaro 4,186 Reputation points
accepted 2021-01-26T16:51:58.79+00:00
Alessandro Caliaro 4,186 Reputation points
11 answers One of the answers was accepted by the question author.

C# Task - LazyAsyncResult - NullReferenceException

There is something wrong with the following method: public async Task<ExtendedProductDTO> GetProductByUniqueIDAsync(string id) { var product = await _productRepo.FindFirstOrDefaultAsync(i => i.UniqueID ==…

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,913 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,159 questions
asked 2021-01-22T14:44:52.577+00:00
Sal Datoccio 96 Reputation points
commented 2021-01-26T16:12:18.633+00:00
Sal Datoccio 96 Reputation points
2 answers

How to expose properties of a child control in a Custom Control

Hello, I'm not sure which is the best way for achieve this. I have a custom control which is a grid that contains a Label and an Entry. I want to access the property "Text" of both controls when I use this custom control in my XAML. I…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,348 questions
asked 2021-01-14T17:11:01.48+00:00
p.maravilla 21 Reputation points
answered 2021-01-26T15:21:34.15+00:00
Joe Manke 1,091 Reputation points
1 answer

Xamarin.Auth Google

Hello. I am using Xamarin.Auth library to authorize via Google in android app. When I click on my account, the redirect does not work. What could be the reason? I recorded a video of this problem Download the project

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,348 questions
asked 2021-01-25T11:57:28.76+00:00
commented 2021-01-26T13:47:37.1+00:00
JarvanZhang 23,961 Reputation points
2 answers One of the answers was accepted by the question author.

how i get the column header text when clicked in gridview in asp.net

Hi members how i get the column header text when clicked in gridview please help

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,481 questions
asked 2020-12-31T09:27:40.113+00:00
HOUSSEM MAHJOUBI 286 Reputation points
accepted 2021-01-26T09:48:50.607+00:00
HOUSSEM MAHJOUBI 286 Reputation points
1 answer

Blazor - Progress Indicator - Timer Object

I have a requirement to display the progress of jobs on an application server in a Blazor Server app. Currently I'm using a timer to poll the database for progress and display the results to the user. I have no control over the app server and can't…

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,577 questions
asked 2021-01-22T13:13:55.287+00:00
S Chapman 82 41 Reputation points
answered 2021-01-26T09:21:34.253+00:00
Michael Wang-MSFT 1,061 Reputation points
2 answers One of the answers was accepted by the question author.

WPF: How can I update Text in TextBox in code without losing binding information?

I created a validating WPF user control, derived from TextBox. The Text property in my TextBox is bound using something like <my:MyTextBox Text={Binding ..., Mode=OneWay}. The user may update the displayed text therein, so I can further process…

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,769 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,913 questions
asked 2021-01-23T15:15:32.037+00:00
AxD 666 Reputation points
accepted 2021-01-26T09:07:36.487+00:00
AxD 666 Reputation points
0 answers

Xamarin WEP API Development Enviroment with Android Device

Hi There, I am new to Xamarin and trying to get some pieces up and running in a development enviroment. Stuck at a point where I have a WEB API sample which works fine with Postman but cannot send any messages from my (USB connected) Anroid device…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,348 questions
asked 2021-01-24T02:39:37.517+00:00
AUU 1 Reputation point
commented 2021-01-26T07:20:54.533+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 75,351 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Will Microsoft Support for Xamarin Stop (2021?)

"Where does it leave Xamarin.Native development (Xamarin.iOS & Xamarin.Android)? Both will be incorporated into the .NET 6 Platform and renamed to .NET for iOS & .NET for Android respectively. They’ll get CLI support as well: dotnet new ios…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,348 questions
asked 2021-01-22T19:43:23.457+00:00
Matt 51 Reputation points
accepted 2021-01-26T05:05:01.287+00:00
Matt 51 Reputation points
3 answers

iOS renderer in VS2019 broken

For some reason, I've never been able to get the iOS xaml previewer working. The Android one works. Both simulators work. VS Community 2019 V16.8.2 Xamarin 16.8.000.255 Xamarin Designer 16.8.0.507 Xamarin.ios sdk 14.4.1.3 Message: Something…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,348 questions
asked 2020-12-04T20:47:46.913+00:00
Nick2035 71 Reputation points
answered 2021-01-26T04:08:56.753+00:00
DwightK 1 Reputation point
1 answer

Build Solution vs. Rebuild Solution

Every time when I modify code, I rebuild solution, then use the application file (under Bin > Debug folder) as the final product. Is it correct process? I am not exactly sure the difference among Build Solution, Rebuild Solution and Clean…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,892 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,107 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
999 questions
asked 2021-01-25T03:17:57.24+00:00
VAer-4038 766 Reputation points
commented 2021-01-26T03:14:09.557+00:00
Dylan Zhu-MSFT 6,416 Reputation points
1 answer

Calling and call-recording sdk/nuget for xamarin.forms

I am working on a xamarin. forms, as a part of the requirement I need to allow the user to call other users (like Amazon or Flipcart calls customer before delivery) and also has to record the conversions. I came across Twilio but the support team…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,348 questions
asked 2021-01-22T03:47:51.787+00:00
Sahithi Shaik 1 Reputation point
commented 2021-01-26T02:53:27.197+00:00
JessieZhang-MSFT 7,706 Reputation points Microsoft Vendor
1 answer

EF Core question regarding relations

I'm building a ticket system. I have two models: User and Ticket. A user can have multiple tickets, and is bound to the ticket via the Customer_Id field. Another user, with the role of Practitioner, can also be assigned to the ticket, via the…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
741 questions
asked 2021-01-20T08:21:36.483+00:00
Tobias Groeneveld | TendenZ 1 Reputation point
commented 2021-01-26T02:34:04.33+00:00
Daniel Zhang-MSFT 9,626 Reputation points
5 answers

Dataset.ReadXML too slow (compared to the binary format)

Hello, I have a project in .NET 4.6 that I would like to "upgrade" to .NET Core 5.0 One of the problems I have is that I use the Binary format that is obsolete. In .NET 4.6, it takes a little less than 3 sec. to load (with the binary…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,841 questions
asked 2021-01-22T08:09:50.417+00:00
Marc Al 206 Reputation points
answered 2021-01-25T18:19:14.527+00:00
Marc Al 206 Reputation points
1 answer One of the answers was accepted by the question author.

Shell FlyoutItem AsMultipleItems

in my application I have roles and depending on the role it will have different menu options for example: <FlyoutItem Route="AdminMain" FlyoutDisplayOptions="AsMultipleItems" IsTabStop="False"…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,348 questions
asked 2021-01-25T10:02:57.443+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
accepted 2021-01-25T14:14:05.19+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
1 answer One of the answers was accepted by the question author.

System.IO.FileNotFoundException Problem

Hello, I am trying to use Roslyn compiler: g_ms = new MemoryStream(); g_result = g_compilation.Emit(g_ms); But I am getting this very suspicious error: FileNotFoundException: Could not load file or assembly…

.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,159 questions
asked 2021-01-23T08:59:34.667+00:00
JerryM 1,121 Reputation points
accepted 2021-01-25T13:55:50.043+00:00
JerryM 1,121 Reputation points