Microsoft Q&A

.NET

15,331 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

15,331 questions with .NET-related tags

Sort by: Updated
2 answers

Taking too much time to Load all files from the folder in ASP.NET Web page.

I am loading the files from the server folder in a web page. But, the head ache is, it's taking too much time to load all the files from the specific folder. Hardly it will be taking 30 to 45 mins to load all the files. End user can't wait till load all…

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.
555 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,486 questions
asked 2023-05-22T12:32:03.3233333+00:00
Gani_tpt 1,321 Reputation points
commented 2023-06-06T09:54:25.9533333+00:00
Lan Huang-MSFT 15,216 Reputation points Microsoft Vendor
0 answers

Different dialog opening position behavior when starting application from Explorer vs. Command Line/VS/...

Hello, we have noticed a problematic difference in the automatic positioning of modal dialogs in our Windows application when using multiple monitors: When our application was started from cmd.exe, PowerShell or a different application (like Visual…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,164 questions
asked 2023-06-06T07:41:23.4666667+00:00
Sebastian Fischer 0 Reputation points
commented 2023-06-06T09:53:52.55+00:00
Hui Liu-MSFT 17,456 Reputation points Microsoft Vendor
1 answer

How to change the UI when the model's view property changes?

Hi all. Recently I started to study the mvvm pattern and ran into a problem. How to change the UI when the model's view property changes? There is a model public class Setting { public string AliasCertificate { get; set; } =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,164 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,428 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,205 questions
asked 2023-06-01T08:55:34.15+00:00
Влад Тигинян 0 Reputation points
commented 2023-06-06T09:52:03.3533333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 20,446 Reputation points Microsoft Vendor
0 answers

Net maui runtime loading problem ?

I have created languageconverter as above binding from C# listing...Firstly binding values by Text="{DynamicResource Key=welcome}" like that.. it is working as expected but when loaded page with custom collectionview is not changing language…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,428 questions
asked 2023-06-02T16:18:57.21+00:00
Sami 281 Reputation points
commented 2023-06-06T09:47:07.3366667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 20,446 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to check if the record exist with same value in the database before insert

Hi, In my Blazor Server application, I am inserting a list of data into a database as follows; public async Task AddStockAsync(List<GameBank> gameBank) { await _oyunPalasContext.GameBanks.AddRangeAsync(gameBank); await…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
981 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
521 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,160 questions
asked 2023-06-03T11:32:44.3633333+00:00
Cenk 886 Reputation points
edited a comment 2023-06-06T09:45:57.34+00:00
Karen Payne MVP 31,001 Reputation points
1 answer

Net Maui carouselview time span problem

All working fine but check and please correct the first image show and quickly passing second image must be same as the others time span .. how we can solve it? Thanks public Carousel() private void Carousel_Loaded(object sender, EventArgs e) { …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,428 questions
asked 2023-06-06T03:07:48.3666667+00:00
Sami 281 Reputation points
answered 2023-06-06T09:43:17.13+00:00
Saadia Sajjad 81 Reputation points
1 answer One of the answers was accepted by the question author.

How to bind asp-items to the model in a select element appended by js dynamically?

$("#List").append("<tr>" + "<td> <select name='dm' asp-items='"+Model.dmdata+"'>" + "</select></td>" …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,160 questions
asked 2023-06-04T01:20:40.3366667+00:00
Alick Wang 141 Reputation points
accepted 2023-06-06T09:42:26.3466667+00:00
Alick Wang 141 Reputation points
3 answers

Using MS Graph to send email from singe predefined/pre-set mailbox within .net web application

We need our application to send emails via MS Graph using a set single mailbox. I have the following, but this is not working, with the following: 'Exception of type 'Microsoft.Graph.Models.ODataErrors.ODataError' was thrown'. Digging into the details…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,349 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,486 questions
Microsoft Graph Applications API
Microsoft Graph Applications API
A Microsoft API that enables you to manage these resources and actions related to applications in Azure Active Directory.
564 questions
Microsoft Graph Mail API
Microsoft Graph Mail API
A Microsoft API that supports accessing data in users' primary mailboxes and in shared mailboxes.
804 questions
Microsoft Graph SDK
Microsoft Graph SDK
A Microsoft software developer kit designed to simplify building high-quality, efficient, and resilient applications that access Microsoft Graph.
886 questions
asked 2023-06-05T11:36:52.11+00:00
Julian Cram 0 Reputation points
edited the question 2023-06-06T09:38:09.28+00:00
CarlZhao-MSFT 23,436 Reputation points
1 answer

How to use .net framework

************** JIT 调试 ************** 要启用实时(JIT)调试, 该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置 jitDebugging 值。 编译应用程序时还必须启用 调试。 例如: <configuration> <system.windows.forms jitDebugging="true"…

.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,000 questions
asked 2023-06-05T18:50:19.24+00:00
爱荣 高 0 Reputation points
answered 2023-06-06T09:14:01.53+00:00
Jiachen Li-MSFT 13,976 Reputation points Microsoft Vendor
1 answer

Entity Framework - Db design suggestion

I have two models with many-to-many relationship: public class Person { public int PersonId { get; set; } public string Name { get; set;} public virtual ICollection<Hobby> Hobbies { get; set; } = new List<Hobby>(); } and public…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
521 questions
asked 2023-05-26T10:20:03.1633333+00:00
Eliya Amanoeel 0 Reputation points
commented 2023-06-06T09:09:56.1766667+00:00
Jack J Jun 23,661 Reputation points Microsoft Vendor
1 answer

How to make a mapping from c# method to a SQL function

Goal: Get value from DBFunction TestBool by using user-defined function mapping (EF UDF binding) Problem: I don't get enough information about how to make the DbFunction TestBool (C# code) to be working. What part of the code am I missing. I need a…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
521 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,205 questions
asked 2023-05-21T15:59:57.3233333+00:00
JJ TT 141 Reputation points
commented 2023-06-06T09:08:40.5666667+00:00
Jack J Jun 23,661 Reputation points Microsoft Vendor
0 answers

No forms appearing in custom template VS 2022 Mac or PC

I have been looking over the material for the new templating engine, https://learn.microsoft.com/en-us/dotnet/core/tutorials/cli-templates-create-item-template and https://github.com/dotnet/templating/tree/main, and have created a .template.json file…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,164 questions
asked 2023-06-02T18:42:29.7566667+00:00
Gregory Lange 0 Reputation points
commented 2023-06-06T09:01:30.47+00:00
Jack J Jun 23,661 Reputation points Microsoft Vendor
1 answer

Why is Select().Contains() ok while Any() is not?

Hi all; I first tried the following code: var statesIndirectDelete = await States .Where(s => deletedCountries.Any(c => c.Id == s.CountryId)) .ToListAsync(); and that gave me the error: System.InvalidOperationException The LINQ expression…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
521 questions
asked 2023-06-05T03:30:01.6166667+00:00
David Thielen 966 Reputation points
answered 2023-06-06T08:51:47.39+00:00
Jack J Jun 23,661 Reputation points Microsoft Vendor
0 answers

CollectionView template not support RTL

Hi, CollectionView template not support RTL. I attached the file:עברית.txt Please see the code: The results is: txt.עיברית <CollectionView ItemsSource="{Binding Data}"> <CollectionView.ItemTemplate> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,428 questions
asked 2023-05-29T12:48:07.0333333+00:00
דני שטרית 841 Reputation points
commented 2023-06-06T08:31:50.6366667+00:00
Liqun Shen (Shanghai Wicresoft Co Ltd) 155 Reputation points Microsoft Vendor
1 answer

NAAN Rupee Customer care free helpline Number/ 8101414284,,//8961182879 call me call NAAN Rupee Customer care free helpline Number/ 8101414284,,//8961182879 ...

Du jg xh vjy sy jt sy hd duv dh

Azure Object Anchors
Azure Object Anchors
An Azure mixed reality service that automatically aligns and anchors three-dimensional content to objects in the physical world.
20 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
9,514 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,012 questions
asked 2023-06-06T08:29:38.72+00:00
Txhxudu Ray 0 Reputation points
answered 2023-06-06T08:30:35.66+00:00
Txhxudu Ray 0 Reputation points
0 answers

How to get the system installed font family in XForms application based on the platforms

Please help me to get all installed fonts in XForms platforms(android,iOS and UWP). I have seen so many articles to use System.Drawing.Text but did not find any references. So, please help me to get a list of all installed font families for the combo box

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,012 questions
asked 2023-06-05T10:01:58.0833333+00:00
Mohana Priya Raja 0 Reputation points
commented 2023-06-06T08:25:10.5533333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 20,446 Reputation points Microsoft Vendor
0 answers

Difficult to Paste Copied Value into Input Text Field for Email or OTP on Azure B2C authentication Page while testing on iOS Device.

We are developing an app for a user. User can access the app after successful registration. For the registration, we have integrated AZURE B2C Sign Up Policy. Everything is integrated successfully and working fine, but When any user who is using iPhone,…

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,780 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.
3,284 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,012 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,205 questions
asked 2023-06-06T08:04:33.8833333+00:00
Sanjay Yadav 0 Reputation points
edited the question 2023-06-06T08:19:59.3166667+00:00
AnnaXiu-MSFT 15,166 Reputation points
1 answer

Xamarin.iOS Visual Studio 2022 Archive failing (Cardinal Nuget)

I specify and advance that I am able to run the app in Debug, it works fine and i can Distribute the app too. After Cleaning the project and rebuilding it, I'm trying to publish my Xamarin iOS App (In Release iPhone myApp.iOS) and i am getting this…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,012 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,171 questions
asked 2023-06-05T10:04:36.54+00:00
gafoooo 0 Reputation points
answered 2023-06-06T08:15:35.58+00:00
gafoooo 0 Reputation points
0 answers

ChannelFactory resolving an address for a different tenant

We have a multi tenant architecture in the cloud. I have noticed a strange behavior where often App1 of tenant 1 calls App2 of tenant 2. Below is a generic code snippet that calls App2 from App1. Logging of addresses from App1 shows the correct values.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,164 questions
asked 2023-06-06T08:10:50.89+00:00
Rohit Kamble 0 Reputation points
edited the question 2023-06-06T08:12:51.1366667+00:00
Rohit Kamble 0 Reputation points
0 answers

How can I exclude transitive dependencies that are not needed in the project when publishing my application?

Hi there, I'm building my first real c#.net app using Windows Forms and I used ChatGPT a lot for this as I'm only using Visual Studio Code and have no good way to kickstart my project in any other way. This all worked fine and I came to a point where I…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,473 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,164 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,205 questions
asked 2023-06-05T08:51:34.61+00:00
Schmidlin Tizian 0 Reputation points
commented 2023-06-06T08:08:02.78+00:00
Jiale Xue - MSFT 4,101 Reputation points Microsoft Vendor