24,073 questions with .NET-related tags

Sort by: Updated
1 answer

Operation is not valid due to the current state of the object.

Hi, Why i am getting this error: Operation is not valid due to the current state of the object. Here is my code: public async void PingAsync() { LabelRoundTrip.Text = "Pinging…"; Ping ping = new Ping(); PingReply pingReply…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 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,306 questions
asked 2022-04-09T16:15:45.76+00:00
Jassim Al Rahma 1,526 Reputation points
commented 2022-04-20T08:35:54.193+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 36,231 Reputation points Microsoft Vendor
2 answers

Invalid Token issue on .NET 6.0 React.js project created by Visual Studio 2022

I have created the .NET 6.0 React.js and ASP.NET Core Web API project with the authentication parameter of individual by using the template of Visual Studio 2022. Even after successful login clicking the Fetch data on the menu bar results the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 questions
asked 2022-04-12T10:12:48.863+00:00
SurferOnWww 1,916 Reputation points
commented 2022-04-20T07:42:35.03+00:00
SurferOnWww 1,916 Reputation points
5 answers One of the answers was accepted by the question author.

problem opening camera with WebView and input type file in Xamarin Forms only Android

Good day to all. I have researched a lot about how to open the camera through a file type input through a WebView in the Android version (it is a Xamarin.Forms project) I have tried two ways, the first one, using the PermissionsPlugin library and…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
asked 2020-12-15T02:01:15.3+00:00
Esteban Orellana 36 Reputation points
commented 2022-04-20T07:34:51.25+00:00
Dan-J 1 Reputation point
1 answer One of the answers was accepted by the question author.

Horisontal CarouselView Header Spacing

I need to add some spacing before the 1st item and after the last item of a CarouselView. When using a CollectionView, I usually use the Header and Footer Template for this.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
asked 2022-04-13T11:33:33.31+00:00
Cristian Miehs 21 Reputation points
commented 2022-04-20T07:31:26.633+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,626 Reputation points Microsoft Vendor
0 answers

How to convert only the edited rows or newly inserted rows of the gridview to Json strings ?

I am trying to convert only the newly inserted rows or the edited rows of the gridview to the json string

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 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,306 questions
asked 2022-04-15T04:56:23.19+00:00
Sarbanshu Sanyal 1 Reputation point
commented 2022-04-20T06:31:05.263+00:00
Yijing Sun-MSFT 7,071 Reputation points
0 answers

.Net core profiler crashing when we allow to load "Corelib.dll"

Hi Team, I have developed my own .NET core profiler using VS 2019. To load my profiler, I have set the environment entry in the web.config file. <environmentVariable name="CORECLR_ENABLE_PROFILING" value="1" /> …

.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,126 questions
asked 2022-04-19T06:02:26.7+00:00
Rajeshwari kanchiraju 1 Reputation point
commented 2022-04-20T06:20:30.71+00:00
Jiachen Li-MSFT 26,751 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How to change email attachment's file's extension?

I am using this class to send an email with a PDF attachment. The class has the following code: using System.IO; using System.Net; using System.Net.Mail; using DevExpress.XtraPrinting; using DevExpress.XtraReports.Web.WebDocumentViewer; …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 questions
asked 2022-04-19T12:03:45.333+00:00
Ionut Dragomir 26 Reputation points
commented 2022-04-20T06:17:42.463+00:00
Ionut Dragomir 26 Reputation points
5 answers One of the answers was accepted by the question author.

GitHub switch remotes in Visual Studio 2022

Hello, I've recently downgraded from Pro to Free and now I can't manage to start pushing my source code toward the new organization repository. What exactly I need to change in order to make it saving Git changes to the new FREE repository? I…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,642 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,306 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,126 questions
asked 2022-04-17T17:28:40.15+00:00
Kuler Master 246 Reputation points
accepted 2022-04-20T06:16:10.66+00:00
Kuler Master 246 Reputation points
3 answers One of the answers was accepted by the question author.

Modification off Index.cshtml file in asp .net core razor pages project

can i add my custom css style in index.cshtml page keeping it default page as generated initially.i want to style the welcome body.i tried to write html and its rendering but when i made a .css file and tried to link that within html page then its not…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,207 questions
asked 2022-04-19T12:24:00.607+00:00
Arnab 66 Reputation points
answered 2022-04-20T05:29:14.157+00:00
Arnab 66 Reputation points
1 answer One of the answers was accepted by the question author.

Coachmark view for Xamarin forms

Hi Support, How can we design Coachmark view in Xamarin Form which will compatible with both iOS and Android. Looking for solution like below.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
asked 2022-04-05T08:10:00.033+00:00
Padhy, Niladri 21 Reputation points
accepted 2022-04-20T04:44:14.43+00:00
Padhy, Niladri 21 Reputation points
1 answer One of the answers was accepted by the question author.

How to get attribute xml from treeview winforms?

There is a xml file. <?xml version="1.0" encoding="utf-8"?> <group name="Student"> <value>A</value> <value>B</value> </group> I need to edit…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,838 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,306 questions
asked 2022-04-15T05:12:04.197+00:00
LooBi 141 Reputation points
accepted 2022-04-20T04:11:07.73+00:00
LooBi 141 Reputation points
2 answers

How to better control the curve in smooth line graph of SSRS ?

I have a smooth line graph. I am trying to understand if I can apply some settings on the curve properties so that the curve does appear as if it had negative Y Axis values. In the attached picture, I have highlighted a portion of the curve where it…

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,681 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,813 questions
asked 2022-04-18T04:21:38.947+00:00
Rao, Avinash 6 Reputation points
answered 2022-04-20T02:49:50.753+00:00
Isabellaz-1451 3,616 Reputation points
0 answers

Xamarin Line Break in label for long words in german

I´m developing an app in xamarin and I have the next scenario. I have a label with maxLines = 3, for some long words in german or french the line break doesn't separate the words syllabels correctly, for example the correct separation of the word…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
asked 2022-04-19T16:05:20.917+00:00
Juan Grullon 1 Reputation point
commented 2022-04-20T02:19:09.627+00:00
JessieZhang-MSFT 7,706 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Changing the Background color of some ListBox Items

The ListBox is defined as follows: <ListBox x:Name="EditableStructs" Grid.Row="5" Grid.Column="1" Margin="930,62,0,40" SelectionMode="Single" Grid.ColumnSpan="2"…

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,681 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,306 questions
asked 2022-04-14T14:32:04.68+00:00
mauede 221 Reputation points
commented 2022-04-19T22:58:23.01+00:00
mauede 221 Reputation points
1 answer

Token strong get changed on fly

Good Day i have a webapi with a function defined like this [HttpPost] [ActionName("MyPush")] public void MyPush([FromBody] PUSH_MESSAGE model) { one of the field is a token , which comes in this format , with some escape…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
asked 2022-04-18T20:24:43.67+00:00
Vuyiswa Maseko 351 Reputation points
commented 2022-04-19T22:28:45.093+00:00
Vuyiswa Maseko 351 Reputation points
1 answer

Publishing .NET 6 application as Arm64

I had an app that was using .NET Framework 4.8 and I was publishing it as AnyCPU. Since I migrated to .NET 6, I now have to export the app as x64/arm64. My issue is that users with arm64 machines are not able to run the arm64 app variant. …

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,681 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,306 questions
asked 2022-04-15T23:00:41.127+00:00
Nicke Manarin 1 Reputation point
commented 2022-04-19T21:29:29.983+00:00
Nicke Manarin 1 Reputation point
1 answer One of the answers was accepted by the question author.

Unable to Write Local or Copy Local file to Web

I have a WebFile that I am successful in using WebClient.DownloadFile in order to load the file on the phone. I then read the File on the phone into an array and display it. I then want to make some changes to the array, write the file on the phone…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
asked 2022-04-15T19:02:13.76+00:00
Bruce Krueger 331 Reputation points
accepted 2022-04-19T16:27:10.367+00:00
Bruce Krueger 331 Reputation points
1 answer

Does an EntityFrameworkCore.SQLServer.InMemory Assembly exist?

Hello, We have a web app that utilizes micro-frontends and we are also utilizing Temporal tables in SQL Server. I have just written the first API accessing a Temporal table and it ran fine (once I realized there is a EntityFrameworkCore.SQLServer…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 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,808 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.
329 questions
asked 2022-04-14T17:12:00.743+00:00
Jack Allread 11 Reputation points
commented 2022-04-19T13:26:52.473+00:00
Tianyu Sun-MSFT 27,431 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to create Animated TabControl in XAML in WPF?

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,681 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,306 questions
asked 2022-04-06T20:53:02.883+00:00
MERUN KUMAR MAITY 511 Reputation points
accepted 2022-04-19T12:16:55.777+00:00
MERUN KUMAR MAITY 511 Reputation points
2 answers

How to sort in C# a tuple that contains several elements?

Hi, I would like to sort in ascending order a tuple starting from its 2nd element: List<Tuple<string, string, string>> tupleSpecial = new List<Tuple<string, string, string>> The 2nd element of this tuple actually represents a…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,697 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,415 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,306 questions
asked 2022-04-11T21:41:16.697+00:00
Edouard Durand 1 Reputation point
commented 2022-04-19T09:00:21.343+00:00
Jack J Jun 24,296 Reputation points Microsoft Vendor