Microsoft Q&A

.NET

13,627 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,627 questions with .NET-related tags

Sort by: Updated
0 answers

ASP.net: Data field used in gridview is not showing as column but turns into title in another field

Hi. I have a SQL datasource that returns 5 columns and a gridview to show them, but one of the columns does not show as a column in the gridview but turns into title (showing when holding the mouse over) in one of the other columns. It keeps doing it no…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,282 questions
asked 2023-03-07T07:47:55.6666667+00:00
Kurt Jensen 0 Reputation points
commented 2023-03-07T08:10:32.6466667+00:00
Kurt Jensen 0 Reputation points
1 answer

IIS Centralized Cert Store and dfs share in different domain

Hi, We are trying to use the Centralized Cert Store to a DFS share in a different domain. the DFS share works in our internal networks but in a DMZ networked machine, CCS is throwing an error even though file explorer can get to it. Is there…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
778 questions
Internet Information Services
asked 2023-03-06T17:41:10.5033333+00:00
Lance Lyons 66 Reputation points
edited an answer 2023-03-07T08:01:22.9766667+00:00
TengFeiXie-MSFT 86 Reputation points Microsoft Vendor
0 answers

Restore punctuation to unstructured text using C#

Hi, I am looking to restore or add punctuation properly in unstructured text using C# or ML.Net. I found option available in python called "rpunct". But I want to implement it in .net core Web API project. The "rpunct" is working as…

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,338 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
778 questions
asked 2023-03-07T07:56:26.4833333+00:00
Thamotharan 21 Reputation points
0 answers

Programmatically Change Field Name at runtime

Is there a way to change the FieldName of a model at runtime instead of using resource files? I'm trying to develop a multi-language set of forms where the FieldName is loaded from a database rather than a resource file. The reason for this is the…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
691 questions
asked 2023-03-02T01:52:21.3766667+00:00
Kmcnet 301 Reputation points
commented 2023-03-07T07:55:51.3733333+00:00
Lan Huang-MSFT 10,156 Reputation points Microsoft Vendor
0 answers

Need expected Output in MVC

I have table below Create table #Sections (SecID int,SecName varchar(50)) Insert into #Sections values (1,'Brand') Insert into #Sections values (2,'Shirst') Create table #Category (Cat Int, Cat_Name varchar(50)) Insert into #Category values…

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,338 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
691 questions
asked 2023-03-07T07:52:40.0133333+00:00
akhter hussain 2,596 Reputation points
1 answer

Unable to see CollectionView after msix creation

Hi there, I'm quite new on maui and i have a problem regarding datas inside a collectionview. (Please find two images attached). My dev pc is a Win11 with VS2022 (.NET7). I have no error/warning shown in the event log, no crash at all. When…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
998 questions
asked 2023-03-06T22:42:00.6566667+00:00
Pierre LAURENT 0 Reputation points
commented 2023-03-07T07:18:12.54+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 12,816 Reputation points Microsoft Vendor
1 answer

Issue creating a database at run (with EF) time with Managed Identity (not user/pass)

When we are running EF Core´s MigrateAsync() command with a connection string that has Active Directory Managed Identity in it, it fails when the database doesn't already exist. We have this EF Core github issue where Arthur Vickers mentions that maybe…

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,338 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
778 questions
Azure SQL Database
asked 2023-03-02T12:28:06.14+00:00
Sturla 156 Reputation points
answered 2023-03-07T07:16:25.5+00:00
ShaktiSingh-MSFT 5,496 Reputation points Microsoft Employee
1 answer

how to fix System.IO.FileNotFoundException: 'Could not load file or assembly 'DocumentFormat.OpenXml, Version=2.19.0.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17' or one of its dependencies. The system cannot find the file specified.'

I tried to run a excel file in my application and it is showing me the error mentioned below System.IO.FileNotFoundException: 'Could not load file or assembly 'DocumentFormat.OpenXml, Version=2.19.0.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17'…

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,338 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
778 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,365 questions
asked 2023-02-28T06:24:09.2133333+00:00
Dineshkumar.S 326 Reputation points
answered 2023-03-07T07:09:37.4366667+00:00
Dineshkumar.S 326 Reputation points
1 answer

How do you invoke a simple dialog from a razor page

I am new to ASP, trying to learn how to develop a Razor Server application that contains a simple modal dialog within a razor page. I have taken the following steps from Visual Studio 2022 with ASP.NET Core installed: Create new Project Select Blazer…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,739 questions
asked 2023-03-07T00:31:19.04+00:00
Mark Smith 0 Reputation points
commented 2023-03-07T07:07:15.2066667+00:00
Farid Uddin Kiron MSFT 191 Reputation points Microsoft Vendor
0 answers

how to call direct3d in .net?

there is nothing in Windows.Graphics.DirectX I can call in .net I want write 2d game in .net and directx

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,338 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
778 questions
asked 2023-03-07T03:01:12.5033333+00:00
打玻璃 1,591 Reputation points
commented 2023-03-07T07:02:48.5133333+00:00
Jack J Jun 20,781 Reputation points Microsoft Vendor
0 answers

Maui android is it possible to highlights text in a label

Hello all. in my app I want to highlights text according to the search operation I want the founded words to be in some background color to highlights them. Thank you very much.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
998 questions
asked 2023-03-07T06:34:28.9133333+00:00
Haviv Elbsz 581 Reputation points
edited a comment 2023-03-07T06:59:14.98+00:00
Haviv Elbsz 581 Reputation points
2 answers

Customize Shell template breaks navigation

I'm trying to customize my Shell Flyout and I'm running into a few problems. Problem #1 — Can't style the content's vertical alignment I've managed to style my items and menu items using Shell.ItemTemplate and Shell.MenuItemTemplate, but when I do this…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
998 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,636 questions
asked 2023-03-01T12:25:31.4666667+00:00
Rainer 101 Reputation points
commented 2023-03-07T06:54:17.7366667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 43,386 Reputation points Microsoft Vendor
0 answers

Visual Studio publish fails because of nuget authorization and works after successfull manual msbuild publish

Hello, i was trying to publish a .net 6 project as self-contained with the following publish profile: This resulted in the following error message: The plugin credential provider could not acquire credentials. Authentication may require manual…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
778 questions
asked 2023-03-03T08:49:08.2833333+00:00
Julius Hackel 0 Reputation points
commented 2023-03-07T06:53:50.8733333+00:00
Jack J Jun 20,781 Reputation points Microsoft Vendor
1 answer

Xamarin Forms Custom Video Player

Hello, I want to create my own video player how to create custom player that play a video from url , File and stream? Any one have a docuement about that

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,890 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.
587 questions
asked 2023-03-04T08:50:21.0233333+00:00
Mohammad Jaafar Dhainy 0 Reputation points
commented 2023-03-07T06:53:34.1033333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 43,386 Reputation points Microsoft Vendor
0 answers

How can I create an app icon on iOS?

I don't know how to create an app icon for my iOS application. I have tried to use Assets.xcassets but it's not working in Visual Studio for Mac 17.6 Preview (17.6 build 402) after adding Maui to my .csproj…

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,338 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
998 questions
asked 2023-03-06T12:03:49.5566667+00:00
Kim Strasser 521 Reputation points
edited a comment 2023-03-07T06:53:22.6733333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 16,551 Reputation points Microsoft Vendor
1 answer

How to get Andoid SDK Tools up-to-date?

I'm trying to update my Android SDK Tools, but I don't see a version later than 7.0. How do I update it? I'm using VS 2022 (not the preview version). Thanks.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
998 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,636 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.
587 questions
asked 2023-03-07T00:40:39.7533333+00:00
Technoman 0 Reputation points
answered 2023-03-07T06:42:03.7733333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 43,386 Reputation points Microsoft Vendor
1 answer

UIButtonConfiguration problem updating UIButton

I have a Xamarin.iOS app that uses the new UIButtonConfiguration API for styling buttons. I have a problem with updating the button fields in code, such as color and title. I'm using VS Mac 17.5, Xcode 14.2, Xamarin.iOS 16.2. I've tried the below methods…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,890 questions
asked 2023-03-06T17:57:56.4333333+00:00
Pelister 0 Reputation points
answered 2023-03-07T06:41:23.84+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 16,551 Reputation points Microsoft Vendor
1 answer

How to create dynamic report depend on user input by ASP.NET Core?

I want to build a dynamic report by Asp.net core -EF-, I searched for many ways and ideas, but it doesn't support my idea, I am so disappointed, the core idea of my project is to get tables and columns names from the database and displays them for the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,282 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,739 questions
asked 2023-02-26T09:52:23.6+00:00
Arwa Sami 0 Reputation points
commented 2023-03-07T06:30:36.3166667+00:00
Arwa Sami 0 Reputation points
1 answer

Program does not run even though .NET Desktop Runtime 7.0.2 is installed

I want to run a program called PKHeX. I was told to install .NET Desktop Runtime, so I installed it, but it still looks like the picture above and doesn't work. How do you solve this? Please explain in detail.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
778 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
728 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.
972 questions
asked 2023-03-05T12:27:47.75+00:00
ONNURI 0 Reputation points
edited the question 2023-03-07T06:05:15.2133333+00:00
Jack J Jun 20,781 Reputation points Microsoft Vendor
0 answers

File uploader component not triggering onUploadProgress in Blazor WASM hosted on IIS

I'm using a file uploader component in Blazor WebAssembly and I've implemented the upload action in JavaScript. The file upload works fine when I run the sample locally, but when I host the sample in IIS, the ajax Upload Progress event function doesn'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.
845 questions
asked 2023-03-06T13:10:27.2333333+00:00
Mohan Raj 0 Reputation points
edited the question 2023-03-07T05:57:58.8833333+00:00
Mohan Raj 0 Reputation points