Microsoft Q&A

.NET

13,915 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,915 questions with .NET-related tags

Sort by: Updated
0 answers

How to use a (.a) Library in a .NET Maui iOS project

I was able to use a (.a) library from my xamarin project. i used to add my library this way in the iOS project .csproj <ItemGroup> <NativeReference Include="Native References/MyLib.a"> <Kind>Static</Kind> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,055 questions
asked 2023-03-16T13:01:31.2733333+00:00
Wael Bouchnak 26 Reputation points
commented 2023-03-21T07:48:23.72+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,031 Reputation points Microsoft Vendor
0 answers

Load data and add new data loop through difference

when insert data is finished into a table A and loop through table A to get the value compared with the data on the datagridview, which is table B. table B only retrieves 1 field of information and adds new as many new columns as you like. why when…

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,494 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
490 questions
asked 2023-03-20T09:49:31.4133333+00:00
Dao Duy Luat 0 Reputation points
commented 2023-03-21T07:36:39.73+00:00
Jack J Jun 21,661 Reputation points Microsoft Vendor
0 answers

.NET Maui File Upload Camera Problem

AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="C> <application android:allowBackup="true"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,055 questions
asked 2023-03-20T15:13:37.6033333+00:00
Yunus Ayhan 0 Reputation points
commented 2023-03-21T07:36:27.7+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 43,776 Reputation points Microsoft Vendor
0 answers

Prevent row adding in html table ,on Duplicate Barcode

I am adding row into html table, <div class="row"> <div style="display: inline-block;"> <div> @Html.LabelFor(model => model.Prdno, "Barcode",…

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,494 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
718 questions
asked 2023-03-21T07:09:36.6866667+00:00
akhter hussain 2,781 Reputation points
edited the question 2023-03-21T07:26:53.0366667+00:00
akhter hussain 2,781 Reputation points
0 answers

printing a pdf file embedded on web page

I have a pdf file embedded on a web page. I want to put a print button the web page so that the end user can print the pdf file. How can I achieve this. below is the code for embedding the pdf file on web browser: using (MemoryStream stream = new…

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,494 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
718 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,805 questions
asked 2023-03-20T23:26:04.0566667+00:00
Anjali Agarwal 596 Reputation points
commented 2023-03-21T07:25:01.62+00:00
Farid Uddin Kiron MSFT 201 Reputation points Microsoft Vendor
0 answers

How do I fix APT206 - failed linking file resources and APT2259 'textEnd' is incompatible with attribute iconGravity errors?

I have a Xamarin Forms application that I am migrating to MAUI and I am getting the following 2 errors during compilation. APT2259 'textEnd' is incompatible with attribute iconGravity (attr) flags [start=1, textStart=2]. APT2061 failed linking file…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,055 questions
Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
376 questions
asked 2023-03-20T05:08:57.3866667+00:00
Gorimar, Behzad 0 Reputation points
commented 2023-03-21T07:10:15.53+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,031 Reputation points Microsoft Vendor
3 answers

ASP.NET Core & IONOS SSL Certificate: ERR_SSL_PROTOCOL_ERROR

I am testing an asp.net core web API application with Swagger from Visual Studio 2022 in a windows hosting pack at IONOS. When I create an application of the asp.net core web API and uncheck the "Configure for HTTPS" option, and publish the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,805 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,748 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,766 questions
Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,315 questions
asked 2023-03-20T00:43:11.4233333+00:00
Happy Development 20 Reputation points
answered 2023-03-21T07:00:54.6466667+00:00
DotNetCrazy 0 Reputation points
0 answers

NET MAUI - MediaElement - Not playing Audio Files stored on Google Drive

Hi I am using MediaElement to play Audio Files (.mp4) that are stored on my Google Drive,. But this is failing with error: [0:] MediaManager: Error: Error codename: ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED, Error message: Source error The following is a…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,055 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,494 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.
596 questions
asked 2023-03-19T20:01:32.4066667+00:00
Riffy 266 Reputation points
edited a comment 2023-03-21T06:59:43.9766667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 13,501 Reputation points Microsoft Vendor
1 answer

Are .NET 6 and .NET 7 considered part of the .NET Core framework?

Are .NET 6 and .NET 7 considered part of the .NET Core framework?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
858 questions
asked 2023-03-20T23:11:46.59+00:00
Al Karaptian 0 Reputation points
answered 2023-03-21T06:59:23.8333333+00:00
Jack J Jun 21,661 Reputation points Microsoft Vendor
0 answers

You said: Severity Code Description Project File Line Suppression State Error Unable to copy file “obj\Debug\ResultManagment.exe” to “bin\Debug\ResultManagment.exe”. The process cannot access the file ‘bin\Debug\ResultManagment.exe’ because it is being u

Severity Code Description Project File Line Suppression State Error Unable to copy file “obj\Debug\ResultManagment.exe” to “bin\Debug\ResultManagment.exe”. The process cannot access the file ‘bin\Debug\ResultManagment.exe’ because it is being used by…

.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
490 questions
asked 2023-03-21T03:27:33.3466667+00:00
C.R.Hapuarachchi 0 Reputation points
commented 2023-03-21T06:39:19.9566667+00:00
Jack J Jun 21,661 Reputation points Microsoft Vendor
1 answer

Xamarin Hot Restart: get "Certificate already exists but cannot be found in the local keychain"

First I tried on a borrowed Win 10 PC, installed VS 2022, iTunes, bought the Apple Developer's License and Hot Restart with a local iPhone worked OK. Most times I had to disconnect/reconnect USB to deploy, but otherwise working. So I bought a new Win 11…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,916 questions
asked 2023-03-16T14:21:23.84+00:00
Steve Brooke 0 Reputation points
edited an answer 2023-03-21T06:26:09.11+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,031 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Inserting row from control to table,then some time value getting null

I am inserting rows into table ,some time inserting null values from dropdownlist to table below is image. Code $(document).ready(function () { $("#Search_Prdno").change(function () { var prdno…

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,494 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
718 questions
asked 2023-03-20T16:15:14.7533333+00:00
akhter hussain 2,781 Reputation points
accepted 2023-03-21T06:23:30.3466667+00:00
akhter hussain 2,781 Reputation points
0 answers

How to save a many to many relationship with Entity Framework

Hi, I have a many to many relationship between Flight and Journey, so I have created an intermediate table to create the relationship: the thing is, I have a list of flights and one Journey, so how can I create the code to make the assembly so I can…

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,494 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
477 questions
asked 2023-03-21T00:31:43.34+00:00
Jhon Hernandez 1 Reputation point
edited the question 2023-03-21T06:10:41.56+00:00
Rena Ni - MSFT 1,851 Reputation points Microsoft Vendor
0 answers

What is wrong with the code?

Dear All, Could anyone tell me what is wrong with the following code?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
858 questions
asked 2023-03-21T03:39:12.0033333+00:00
BenTam 796 Reputation points
commented 2023-03-21T06:06:29.8866667+00:00
Jack J Jun 21,661 Reputation points Microsoft Vendor
0 answers

ASP. NETA WEB API not showing on solution node

I'm a novice but in the solution node I have 3 projects, now I want to add the asp. Net web api but upon clicking create it loads succesfully but the project itself is not seen in the solution node, my projects remain 3/3 instead of 4/4 in short heres a…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,805 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,748 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,494 questions
asked 2023-03-20T05:13:52.7666667+00:00
JOHN MARKOUSH G. PALAGINOG 0 Reputation points
commented 2023-03-21T06:03:41+00:00
Zhi Lv - MSFT 21,616 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

issue open new bootstrap modal still show validation error when form loaded ?

I work on blazor app with .NET core 7 . I face issue validation not reset or removed after open new modal . Issue display on step 5 when open New Bootstrap Modal so my scenario as below for details by steps : 1- I click button add New server so bootstrap…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,805 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,494 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
500 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
872 questions
asked 2023-03-19T23:39:47.6766667+00:00
Ahmed Salah Abed Elaziz 65 Reputation points
accepted 2023-03-21T06:01:39.25+00:00
Ahmed Salah Abed Elaziz 65 Reputation points
1 answer

Display random count of items in a screen

I have a screen with random count of buttons. I can place only 3 buttons in a row. How can I move additional buttons to a new row? Like DIVs in HTML. Ex. if you have 2 buttons, they are shown in a 1 row if you have 4 - 3 in 1 row, 1 in 2d row if 7- 3 in…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,055 questions
asked 2023-03-17T18:59:24.8+00:00
Aleksandrs Maksimovs 20 Reputation points
commented 2023-03-21T05:54:33.99+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 13,501 Reputation points Microsoft Vendor
1 answer

How to localizae application display name of iOS developed with .NET MAUI?

Display name is localized on android in (Resources\values) folder and it works as expected. However, I can't get it to work with iOS. What have been done: In info.plist make sure there is this code …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,055 questions
asked 2023-03-16T12:23:51.11+00:00
Muhab Abdulraheem 1 Reputation point
commented 2023-03-21T05:24:43.2033333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,031 Reputation points Microsoft Vendor
1 answer

Access Color inside Resources' Colors

Hi, I am trying to access a Color inside the Resources->Colors.xaml but getting this error: System.Collections.Generic.KeyNotFoundException: The resource 'ConnectedIconLight' is not present in the dictionary. at at…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,055 questions
asked 2023-03-14T18:58:59.2233333+00:00
Jassim Al Rahma 1,166 Reputation points
commented 2023-03-21T05:23:27.69+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,031 Reputation points Microsoft Vendor
0 answers

Unable to archive iOS apps

Archiving iOS app in Visual Studio for Mac does not archive anything without error. I didn't know the cause, so I recreated the project, set the signature and archived it, and it worked normally. However, when I tried to archive the same project the next…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,055 questions
asked 2023-03-09T02:10:08.2533333+00:00
punio 0 Reputation points
edited a comment 2023-03-21T05:22:41.33+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,031 Reputation points Microsoft Vendor