Microsoft Q&A

.NET

20,688 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,688 questions with .NET-related tags

Sort by: Updated
1 answer

How to return error response?

When i aims to call first action method with the accept header is "text/xml".

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,573 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
987 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.
243 questions
asked 2023-09-12T19:02:50.5866667+00:00
Anonymous
commented 2023-09-28T10:02:23.1066667+00:00
Jerry Fu - MSFT 471 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Blazor textarea setting issue

Hello all. how I do set a textarea element so it will have a specific width an height and that it's text will have a horizontal and vertical scrollable . I want that when user type text the line length be when user keying ENTER key. Thank you very much

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,108 questions
asked 2023-09-27T11:26:14.95+00:00
Haviv Elbsz 1,226 Reputation points
commented 2023-09-28T09:57:22.27+00:00
AgaveJoe 595 Reputation points
1 answer

Get line below specific line in textBox multiline (c#)

Hello everyone.  I want to find the value from texBox1 single line in textBox2 multiline and to get the line below the found line from textBox2 in textBox3. For example: If the content in a textBox2 multiline looks like this: 11111111111111 first…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,631 questions
asked 2023-09-28T08:41:01.3366667+00:00
LeaV 41 Reputation points
answered 2023-09-28T09:56:12.6566667+00:00
Jiale Xue - MSFT 10,771 Reputation points Microsoft Vendor
1 answer

System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing.

Hi, Everybody!... I am trying to parse the following XML…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,058 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,639 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.
8,992 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2023-09-27T22:41:28.2466667+00:00
Julio Bello 201 Reputation points
commented 2023-09-28T09:52:45.9433333+00:00
Lan Huang-MSFT 17,881 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to solve DOTNET-ISOLATED|8.0 has been deprecated as a language for Azure Functions

Migrated our previously working Azure Function from Isolated Net 7 to Isolated Net 8 (RC1) and it now fails with "Server Error. There was an unexpected error in the request processing." Diagnose and solve problems shows the following critical…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
586 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,449 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,573 questions
asked 2023-09-22T04:24:33.5866667+00:00
Lindsay Mathieson 25 Reputation points
commented 2023-09-28T09:50:17.3166667+00:00
navba-MSFT 5,010 Reputation points Microsoft Employee
0 answers

Forward Binding i.e. reapply a binding

Is it possible to create an attached property containing a Binding/BindingBase & then apply it to a control i.e. forward a binding thru XAML. Example would be you can have global style that use attached properties & then local styles to set…

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,479 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.
8,992 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.
690 questions
asked 2023-09-27T17:51:57.8433333+00:00
Lars Larsson 16 Reputation points
commented 2023-09-28T09:42:42.02+00:00
Hui Liu-MSFT 21,531 Reputation points Microsoft Vendor
1 answer

issue in opacity of the parent form and panel

Hi , my other problem is there is a scenario in which i have a form named child which is opened inside a panel of a form named father . what i am trying is when i press F2 on my keyboard a new form opens asking for current date . at this moment i want…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,631 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.
8,992 questions
asked 2023-09-23T11:43:45.1433333+00:00
Shaifali jain 220 Reputation points
commented 2023-09-28T09:27:06.8466667+00:00
Jiale Xue - MSFT 10,771 Reputation points Microsoft Vendor
0 answers

staticwebapp.config.json is being ignored

I'm hosting a blazor wasm app in azure static web apps but my staticwebapp.config.json is being ignored. I've tried placing it in the root folder and /wwwroot. I'm deploying through visual studio This is the contents of the json file: { …

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,108 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
546 questions
asked 2023-09-27T11:27:57.19+00:00
Anton 0 Reputation points
commented 2023-09-28T08:59:27.8+00:00
Anton 0 Reputation points
1 answer

Default Certificate could not be created. Publish aborting.

I have been tasked to fix an old VB.NET project. I was succesfully able to get all the forms loaded and the project running. When I try to deploy the project I get "default certificate could not be created. publish aborting." I also started…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,631 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
4,862 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
483 questions
Microsoft 365 Publishing
Microsoft 365 Publishing
Microsoft 365: Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line. Publishing: The process of preparing, producing, and releasing content for distribution or sale.
553 questions
asked 2022-09-09T19:36:31.987+00:00
dstern27 1 Reputation point
commented 2023-09-28T08:51:46.7466667+00:00
Rajat Shresht 0 Reputation points
1 answer

Best Practices for Managing Application State in Blazor WebAssembly?

I am developing a Blazor WebAssembly application and exploring different approaches to managing application state efficiently. Can anyone provide recommendations or best practices for state management in Blazor WebAssembly?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,058 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,573 questions
asked 2023-09-23T16:04:45.95+00:00
Kevin Beasley 0 Reputation points
commented 2023-09-28T08:47:32.5166667+00:00
Farid Uddin Kiron MSFT 451 Reputation points Microsoft Vendor
0 answers

MAUI: How to add splash screen in android platform

I am trying to add splash screen on my new MAUI application. I tried the implementation on this blog but the image is in circle (Android 12 device) and only showing black and white color on the icon. Is there anyway to show the real color of the icon on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 questions
asked 2023-09-25T15:20:10.3266667+00:00
Sakshi Poojary 40 Reputation points
commented 2023-09-28T08:45:37.66+00:00
Sakshi Poojary 40 Reputation points
0 answers

Server 2022 - Maui app with net .7 is not working

Hi, I installed Maui app on server 2019 with this command and its works but on server 2022 its not work: dotnet publish -f net7.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 questions
asked 2023-09-26T15:03:25.4466667+00:00
דני שטרית 1,181 Reputation points
edited a comment 2023-09-28T08:40:31.4433333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,416 Reputation points Microsoft Vendor
0 answers

Visual studio blazor wrap properly values issue

Hi all in visual studio in a blazor project the wrap properly have only the values soft and hard but not also the value off. This caused me problem because I didn't know about the off value . and that waste many time of me. why visual studio don'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,108 questions
asked 2023-09-28T08:21:26.92+00:00
Haviv Elbsz 1,226 Reputation points
1 answer

How can I display a PDF file in MAUI?

I plan to display a PDF file on my MAUI app. I tried following the answer at this link (https://learn.microsoft.com/en-us/answers/questions/1310387/how-to-view-the-pdf-file-from-maui), and I have used the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 questions
asked 2023-09-21T04:30:21.89+00:00
韓 金倫 0 Reputation points
answered 2023-09-28T08:11:46.2733333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,086 Reputation points Microsoft Vendor
1 answer

Entity Framework BulkInsert Temp table without creating

Hi, I am creating Temp Table and inserting data with EF BulkInsert , then I use that temp table in the dynamic script. I need to BulkInsert 100K rows into SQL Server but it was keep loading . I tried to insert insert for loop but I am getting a error…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
259 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,058 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,639 questions
asked 2023-09-27T13:21:04.1433333+00:00
siva_dev 1 Reputation point
edited an answer 2023-09-28T08:10:28.9366667+00:00
Wenbin Geng 321 Reputation points Microsoft Vendor
1 answer

Design pattern ideas for large solution with multiple projects

Hello, I'm starting a new project in my company where 3-5 developers will be working on the same solution. I need help or ideas on how to build the base for this project (net core solution I guess) with Visual Studio and how to organize the multiple…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,573 questions
asked 2023-09-28T00:25:07.58+00:00
Jesus Sanchez 0 Reputation points
answered 2023-09-28T07:59:26.04+00:00
Zhi Lv - MSFT 27,756 Reputation points Microsoft Vendor
1 answer

Load XAML file dynamically

Hello, In my desktop application I have some themes and styles defined like this: <?xml version="1.0" encoding="UTF-8" ?> <ResourceDictionary x:Class="App.Themes.S" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 questions
asked 2023-09-27T12:16:33.2466667+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
commented 2023-09-28T07:50:00.3633333+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
0 answers

Maui mobile app using Signalr is encoding hub name in ConnectionData parameter on iOS 17

We have a mobile app in production built using Maui. The server running the api is it connecting to uses .net framework. There are issues connecting to signalR from iOS17 devices. From debug we can see the following: iOS 17 device sets the connectionData…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,639 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 questions
asked 2023-09-27T11:39:11.9033333+00:00
T_TDSi 0 Reputation points
commented 2023-09-28T07:39:38.98+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,416 Reputation points Microsoft Vendor
1 answer

Finding parent form and tablelayoutPanel

hello , private void TDlloading_error_Load(object sender, EventArgs e) { HideButtonsInParentFormTableLayoutPanel(); } private void HideButtonsInParentFormTableLayoutPanel() { // Access the parent…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,631 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.
8,992 questions
asked 2023-09-26T10:44:39.0333333+00:00
Shaifali jain 220 Reputation points
commented 2023-09-28T07:36:51.8833333+00:00
Shaifali jain 220 Reputation points
2 answers

How can I test a NULL column in DataTable?

I'd like to use the following 2 lines: if (eachrow["ENDDATE"] == null) end = DateTime.Now; else end = Convert.ToDateTime(eachrow["ENDDATE"].ToString()); But if the column "ENDDATE" has a null…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,058 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.
10,980 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.
8,992 questions
asked 2023-09-28T01:02:45.6733333+00:00
Coreysan 1,346 Reputation points
commented 2023-09-28T07:10:24.64+00:00
Jiale Xue - MSFT 10,771 Reputation points Microsoft Vendor