Microsoft Q&A

.NET

14,138 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

14,138 questions with .NET-related tags

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

C# String.Split with TrimEntries option returbs zero length entries

The following code reads in the file OK. It splits the text into several lines without end-of-line terminators OK. But even though the Split has the TrimEntries option, it still returns several lines of zero length. Why? How to remove zero-length entries…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,820 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.
7,628 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
911 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
6,747 questions
asked 2023-04-01T21:42:19.3633333+00:00
DonBaechtel-7903 101 Reputation points
accepted 2023-04-01T22:25:30.05+00:00
DonBaechtel-7903 101 Reputation points
0 answers

Error when attempting to open .mdf file in VB.net "The ADO .NET data provider with invariant name 'System.Data.SqlClient' is not registered on this machine."

Hello, I have a project that is due in my Visual Basic programming class in 1 week. I have had constant issues while messaging my professor back and forth and neither of us can figure it out. I have spent four hours today alone trying to discover what…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
9,177 questions
.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
27 questions
asked 2023-04-01T21:35:12.1+00:00
Andie Caswell 0 Reputation points
edited the question 2023-04-01T21:35:38.0433333+00:00
Andie Caswell 0 Reputation points
0 answers

visual studio 2022, run react project open new edge explorer

Hello I have react project with net core api backend When run project (F5) backend project open in actual chrome but react open new instance of Chrome I want to use existing instance of chrome. Any ideas? Thanks package.json: {   "name":…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,857 questions
asked 2023-04-01T21:33:25.18+00:00
Sergio Cascales Puerto 1 Reputation point
1 answer

Unhandled exception rendering component: The input does not contain any JSON tokens.

Hi, I received the message in picture below when I want to rendering the datagrid in sidepanel. I can't display the Action table. The first table is the classe SuiviBE.cs et la seconde table is ActionItem. FYI I use FK It's seems is well define. I run…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
892 questions
asked 2023-04-01T17:08:14.8233333+00:00
sblb 896 Reputation points
commented 2023-04-01T20:36:44.6466667+00:00
AgaveJoe 20,306 Reputation points
3 answers

ASP net core cors put method problem

Hello, I have a problem i wrote a Controler and a website. The website is under the main domain https://abc.com, my services are in subdomains https://subdomain.abc.com. I configured cors, GET and POST methods are working, but PUT makes…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,857 questions
asked 2021-11-10T19:19:57.86+00:00
Stephan Gimm 6 Reputation points
edited a comment 2023-04-01T20:15:16.2933333+00:00
HARISH G 0 Reputation points
0 answers

Create an IoT app on Raspberry Pi using ASP.net

Can someone with experience point me in the right direction? I want to create an IoT device using a Pi with a small touchscreen for a UI. Apparently you can’t use net to create a form on the pi, so it seems my only option is a web form. I don’t have much…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,339 questions
asked 2023-04-01T19:12:26.5+00:00
Ed Jobe 0 Reputation points
3 answers

How to automatically add certificate to another machine using C# .NET?

I have a certificate like in the picture and i want when the user use my app the certificate will be automatically added to their machine. This helps my application bypass the Windows warning screen. I would like to ask about the solution of doing…

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.
7,628 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
911 questions
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
2,926 questions
Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
2,437 questions
asked 2023-03-29T02:06:20.1633333+00:00
365 timviec 40 Reputation points
answered 2023-04-01T19:03:55.0866667+00:00
David Warner 0 Reputation points
1 answer One of the answers was accepted by the question author.

Convert.ToDouble(String) does not throw an overflow exception when max_value is exceeded

I use .NET 8.0 on vscode. In documentation (for .NET 8.0) of Convert.ToDouble(String) there is OverFlow Exception when Double.MaxValue is exceeded, but when I convert a string that represents a value>Double.MaxValue, it doesn't throw an exception, but…

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.
7,628 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
911 questions
asked 2023-03-23T13:50:28.57+00:00
d'ARIENZO SAMUELE 20 Reputation points
commented 2023-04-01T18:29:50.9433333+00:00
d'ARIENZO SAMUELE 20 Reputation points
0 answers

powershell.exe , cmd.exe , icacls.exe unable to start properly 0xc0000142 and terminal also not opening in vscode conpty error , please some one give a solution need to use it very urgently

.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
27 questions
asked 2023-04-01T18:21:45.7566667+00:00
Aarsh Sharma 0 Reputation points
1 answer

Mail functionality breaks in Azure Web Apps

Hello! I have recently started working on an ASP.NET Core application that is to be deployed as an Azure Web App. As part of the App, we need some sort of mailing functionality in order to notify customers upon purchases. However, every part of…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,857 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.
7,628 questions
Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,612 questions
asked 2023-03-28T07:55:33.6666667+00:00
Jareen 0 Reputation points
answered 2023-04-01T18:00:06.7866667+00:00
Bruce (SqlWork.com) 31,816 Reputation points
2 answers

Why Visual Studio reformatting .designer file?

I am using visual studio 2017 express, .designer.vb file is reformatting itself each time when I add new controls to form or when I build the solution? and sometime it simply changes the upper casing of True/False to true/false case! Why Visual Studio…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,820 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,983 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.
7,628 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
911 questions
asked 2023-04-01T11:41:53.42+00:00
test code 1 Reputation point
edited an answer 2023-04-01T16:28:59.0466667+00:00
Lex Li (Microsoft) 3,286 Reputation points
0 answers

502.5 - ANCM Out-Of-Process Startup Failure after I downgrade to 6.0

please check the error: Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,857 questions
asked 2023-04-01T06:00:15.53+00:00
打玻璃 1,596 Reputation points
commented 2023-04-01T16:20:58.15+00:00
Lex Li (Microsoft) 3,286 Reputation points
0 answers

XAMARIN: CS8370 Error for Database Query code

Hi, I'm stuck with some syntax, I'm getting the error code CS8370 (which i believe is just outdated syntax being used) ill post a screenshot of the error, this is the line of code It pulling the error at, Its just a simple query to check if login email…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,937 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,112 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,820 questions
asked 2023-04-01T16:13:03.4+00:00
Haydn Parsons 0 Reputation points
1 answer

Postion of the SidePanel

I tried to implement Blazor.SidePanel component ; https://github.com/Append-IT/Blazor.Sidepanel in new application. The SidePanel should be opened in right side of my screen. so As you see in picture below is put back left on corner The good result…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
892 questions
asked 2023-04-01T14:05:39.83+00:00
sblb 896 Reputation points
answered 2023-04-01T15:54:13.4066667+00:00
sblb 896 Reputation points
0 answers

MAUI fails to deploy Android app

buildoutput.pdf Hi, Ia m trying to deploy my MAUI Android app to my device but keep getting Build Failed and not sure what is the reason. Attached is the build log.. Kindly help.. Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,112 questions
asked 2023-03-29T19:26:50.53+00:00
Jassim Al Rahma 1,266 Reputation points
commented 2023-04-01T15:31:01.5933333+00:00
Lloyd Sheen 936 Reputation points
1 answer

From where to start .NET Core and ASP.NET Core

Dear All, My background - Good knowledge of HTML/CSS/JavsScript/ ASP.NET Forms/ ADO.NET. recently I purchased .NET core book - "Programming Asp.net Core " by Dino to learn .NET core in depth. I studied to the best of my extent and parallely I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,857 questions
asked 2023-04-01T10:40:03.22+00:00
Shyam Kumar 0 Reputation points
answered 2023-04-01T15:21:03.6233333+00:00
Bruce (SqlWork.com) 31,816 Reputation points
1 answer One of the answers was accepted by the question author.

How to dynamically update label text in CollectionView?

Hello! I am writing a xamarin forms app. I have a collection or list of data(items) from database which update dynamically like live scores. How to dynamically update label text or color in CollectionView without reloading the whole page?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,937 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.
7,628 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.
608 questions
asked 2023-04-01T14:27:26.6133333+00:00
Tippu 0 Reputation points
accepted 2023-04-01T14:45:15.89+00:00
Tippu 0 Reputation points
1 answer

I don't know why my background-image does not print

In trying to print an ID card, the background image set from imagebuton inside Datalist does not print. Every other control, like label and image can print except background image. How is it that background image cannot print even after I used…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
911 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
471 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,339 questions
asked 2023-04-01T11:15:45.3833333+00:00
Donald Symmons 1,326 Reputation points
answered 2023-04-01T14:24:29.8433333+00:00
AgaveJoe 20,306 Reputation points
1 answer

Receive complex object FromQuery in .Net 6.0 Web API

Hi all, I have a solution .Net 6.0 Web API project in which I want to use an object like these as model for query string: public class UserParam { public Guid? Id { get; set; } public string? Email { get; set; } public IEnumerable<string>?…

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.
7,628 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
172 questions
asked 2023-04-01T09:54:56.2466667+00:00
Yiyi Chen 20 Reputation points
edited an answer 2023-04-01T12:49:41.72+00:00
AgaveJoe 20,306 Reputation points
0 answers

Why is my background image refusing to print?

In trying to print an ID card, the background image set from imagebuton inside Datalist does not print. Every other control, like label and image can print except background image. How is it that background image cannot print even after I used…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
471 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.
7,628 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
911 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,339 questions
asked 2023-04-01T11:12:55.3066667+00:00
Donald Symmons 1,326 Reputation points