Microsoft Q&A

.NET

20,679 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,679 questions with .NET-related tags

Sort by: Updated
3 answers

Is there a way we can integrate .NET MAUI onto existing swift code project

I have an project which was developed in Swift using Xcode. Is there a way we can integrate .NET MAUI on to existing Swift project ?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 questions
asked 2023-03-23T01:01:48.7966667+00:00
Sam 0 Reputation points
answered 2023-09-27T23:38:53.54+00:00
Ruffin 0 Reputation points
2 answers

Conditional validation depending which MVC button pushed

I have a scaffolded form in MVC with two buttons, Save and Submit. I want conditional validation: Save, no validation; Submit, validation. In the cshtml I have: ... <td> @Html.EditorFor(model => model.DSCRPTN, new { htmlAttributes = new…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
987 questions
asked 2023-09-25T13:56:00.5533333+00:00
J Fisher 0 Reputation points
commented 2023-09-27T23:30:23.21+00:00
Bruce (SqlWork.com) 44,621 Reputation points
1 answer

MAUI: Listview isvisible property is not working from the code behind?

I am trying to show the selected image or file on my UI on a listview. So initially the listview's IsVisible I set to false and after picking item I set the IsVisible property to true. My problem is after picking item the listview is not visible on 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-19T14:24:15.5166667+00:00
Sreejith Sreenivasan 391 Reputation points
commented 2023-09-27T22:59:25.7633333+00:00
Rob Caplan - MSFT 5,212 Reputation points Microsoft Employee
0 answers

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,057 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,640 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,986 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
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,107 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-27T21:39:25.2366667+00:00
Ryan Hill 20,966 Reputation points Microsoft Employee
1 answer

How to fix ASP.NET Core with angular API 500 Internal Server Error when uploading file in Development Environment in azure app Service

I am trying to upload a file to the wwwroot folder, but it shows an API status code 500 internal server error in the development environment. It works on my local machine but not in my development environment.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,568 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
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,640 questions
asked 2023-09-27T15:11:44.74+00:00
Jithu Sebastian 0 Reputation points
commented 2023-09-27T21:32:50.24+00:00
Lex Li (Microsoft) 3,821 Reputation points
3 answers

Reinstall .NET Framework

Hello, i have problem with .Net framework, We have Windows Server 2019 and now after start ServerManager or for example azure tool for sync i get error about that i need .NetFramework 4.0 But when i dowload last version from MS and run install i get…

.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 2022-04-19T10:45:47.12+00:00
Jartymyk Tomas 1 Reputation point
commented 2023-09-27T21:00:56.2866667+00:00
1 answer One of the answers was accepted by the question author.

WPF custom animation thread

Hello, I have a small simple WPF application (I am learing by doing). I made some custom drawing on a Canvas declared in XAML, by using code in the corresponding C# file. Now I want to access the canvas from another thread to be able to apply geometric…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,057 questions
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,478 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
5,995 questions
asked 2023-09-16T17:21:29.6333333+00:00
Daniel Santos 20 Reputation points
accepted 2023-09-27T20:59:14.6566667+00:00
Daniel Santos 20 Reputation points
2 answers

How to deploy ASP.net application with OAM authentication in Azure PaaS

Team, we are supporting Asp.net application with SQL server and its hosted in On-premises server. we are planning move to Azure PaaS environment. we have challenge is Application using OAM authentication to deploy the application. Is It possible to…

Azure SQL Database
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,640 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,640 questions
asked 2023-09-27T13:11:16.7566667+00:00
Bandhan, Arunkumar 0 Reputation points
answered 2023-09-27T20:39:50.3933333+00:00
Bruce (SqlWork.com) 44,621 Reputation points
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,478 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,986 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
edited the question 2023-09-27T17:55:02.0233333+00:00
Lars Larsson 16 Reputation points
1 answer One of the answers was accepted by the question author.

Package Source v2 feed error

I have try to download a package on package manager with https://nuget.org as the source but it output a error as feed back. How can I fix that error? Severity Code Description Project File Line Suppression State Error [Package source] The V2 feed…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,057 questions
asked 2022-01-27T07:02:09.657+00:00
Wilson Au-Yeung 21 Reputation points
commented 2023-09-27T17:35:52.5833333+00:00
Serge-Thomas 0 Reputation points
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,107 questions
asked 2023-09-27T11:26:14.95+00:00
Haviv Elbsz 1,226 Reputation points
edited a comment 2023-09-27T17:15:29.9+00:00
AgaveJoe 520 Reputation points
0 answers

.Net Maui unresolved error

Hi Friends has anyone received this error or know what the problem is? Do you think I may have a corrupt file? Error MAUIG1001 An error occured while parsing Xaml: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 18, position…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 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,986 questions
asked 2023-08-18T14:09:07.3466667+00:00
Ronald Rex 1,331 Reputation points
commented 2023-09-27T16:16:56.0833333+00:00
Robert Evans (REDMOND) 0 Reputation points
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,630 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,986 questions
asked 2023-09-23T11:43:45.1433333+00:00
Shaifali jain 220 Reputation points
commented 2023-09-27T15:14:58.9233333+00:00
KOZ6.0 560 Reputation points
0 answers

Establishing SSL trust to SQL Server with an AWS Lambda (Linux Client)

Hey all. I'm trying to connect to a SQL Server 2019 instance from an AWS lambda. I'm using a self-signed certificate for the SQL instance. Our lambda is using Entity Framework Core 7.0.5 in .NET 6 (also tested Microsoft.Data.SqlClient 5.1 with the same…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
586 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,057 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,969 questions
asked 2023-09-27T15:08:52.2+00:00
Farrell, Erik 0 Reputation points
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,630 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,986 questions
asked 2023-09-26T10:44:39.0333333+00:00
Shaifali jain 220 Reputation points
edited an answer 2023-09-27T15:05:20.2833333+00:00
KOZ6.0 560 Reputation points
0 answers

Visual Studio Community Version 17.7.4 Http Test 401 Errors

Since upgrading my Visual Studio Community edition to Version 17.7.4, I noticed that the method of sending requests in an http test document has changed in the UI from a green play button to a “Send Request” link. More importantly, since this update all…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,568 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,804 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.
299 questions
asked 2023-09-27T14:23:59.85+00:00
John Reynolds 0 Reputation points
0 answers

How to fix Severity Code APT2062 failed linking references.

Hi There, When I try to run the .Net Maui project on android Emulator I found run time error say that. "Severity Code Description Project File Line Suppression State Priority Error APT2062 failed linking references.C:\ ProgramFiles \dotnet \packs…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 questions
asked 2023-06-04T06:50:00.33+00:00
Ahmed Thabet 20 Reputation points
commented 2023-09-27T13:40:04.85+00:00
Niladri Padhy (ZEN3 INFOSOLUTIONS AMERICA INC) 0 Reputation points Microsoft Vendor
0 answers

Problem encountered while configuring the automatic provisioning profile for Xamarin iOS in Visual Studio 2023 in window 11

I've successfully generated a new API key for setting up my Apple account in Visual Studio Xamarin. I've added the new API key, which you can observe below. However, when I opt for 'Bundle signing' with Automatic provisioning, it encounters an error.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,158 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,057 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,986 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
Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
407 questions
asked 2023-09-27T13:29:15.9166667+00:00
Sanjay Kumar Jha 91 Reputation points
0 answers

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,057 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,640 questions
asked 2023-09-27T13:21:04.1433333+00:00
siva_dev 1 Reputation point
edited the question 2023-09-27T13:24:39.48+00:00
siva_dev 1 Reputation point