Microsoft Q&A

.NET

21,134 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

21,134 questions with .NET-related tags

Sort by: Updated
1 answer

Unable to fetch the azure key Vault secret in .net sharepoint application

Whenever I am trying to retrieve the azure key vault secret in .net sharepoint application, I am getting the below exception for the below mentioned code . Tried to update all the nugget packages with the expected version but, still unable to…

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,023 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.
9,197 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,165 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
8,305 questions
asked 2023-10-17T10:36:39.33+00:00
M R, MEGHA 0 Reputation points
commented 2023-10-26T06:26:26.5333333+00:00
RaytheonXie_MSFT 25,116 Reputation points Microsoft Vendor
1 answer

Load info of document and setting is not load

Hi, The results of this code empty Document and setting folder ? Why? How is can be solved ? private void AddSubdirectoriesAndFiles(Item parentNode, DirectoryInfo directory) { try { // Get the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,963 questions
asked 2023-10-24T09:03:05.7533333+00:00
דני שטרית 1,501 Reputation points
commented 2023-10-26T06:24:07.9266667+00:00
דני שטרית 1,501 Reputation points
1 answer One of the answers was accepted by the question author.

Unable to change headercell backcolour of datagridview

HI experts , i am trying to change the back color of header cells in my custom datagridview to something else . for that i have used this.ColumnHeadersDefaultCellStyle.BackColor = Color.FromArgb(168, 201, 170); …

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.
9,197 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,679 questions
asked 2023-10-25T03:45:48.4+00:00
ankit goel 666 Reputation points
accepted 2023-10-26T06:23:33.4533333+00:00
ankit goel 666 Reputation points
1 answer

Won't allow agree to Xcode and Apple SDKs Agreement

Hi VS 2002 Version 17.8.0 Preview 5.0 on pc. Trying to pair with mac comes up with 'Xcode and Apple SDKs Agreement'. I scroll down to the bottom and select Agree but it says I did not agree and does not pair with mac. The confusing part is it mentions…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,963 questions
asked 2023-10-25T22:13:07.09+00:00
-- -- 861 Reputation points
commented 2023-10-26T06:20:23.66+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 55,776 Reputation points Microsoft Vendor
0 answers

Issues happening only on Release build but debug build is working fine.

Severity Code Description Project File Line Suppression State Error XAGJS7028 System.IO.FileNotFoundException: Could not load assembly 'Xamarin.AndroidX.AppCompat, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,963 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,165 questions
asked 2023-10-25T15:25:56.58+00:00
Palani Sutharsan 1 Reputation point
commented 2023-10-26T06:19:18.6933333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 55,776 Reputation points Microsoft Vendor
0 answers

ZipFile.ExtractToDirectory with rename

Hi, Can you please give code how to implements ZipFile.ExtractToDirectory with rename? i.e 1.Extract zip file that contain folder in it not flatten the files. if file in folder exists rename them, if there are subfolder that not exists in root folder…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,963 questions
asked 2023-10-26T06:15:16.0933333+00:00
דני שטרית 1,501 Reputation points
3 answers

.NET Framework 4.7.2 or a later update is already installed on this computer.

Good morning, for 2 weeks I have been trying to install version 4.7.2 of the .NET Framework for running applications on Windows server 2016, but it shows me the following error message: ".NET Framework 4.7.2 or a later update is already installed on…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,165 questions
Windows
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.
3,219 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,058 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
10,848 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,181 questions
asked 2023-10-24T14:40:24.2633333+00:00
Bryann Vallejo 0 Reputation points
commented 2023-10-26T06:11:20.2233333+00:00
Jiachen Li-MSFT 20,346 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How i can Extract zip file to flatten files only ? if file exist rename it?

Hi, How i can Extract zip file to flatten files only ? if file exist rename it? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,963 questions
asked 2023-10-20T09:15:18.71+00:00
דני שטרית 1,501 Reputation points
commented 2023-10-26T06:07:46.9633333+00:00
דני שטרית 1,501 Reputation points
0 answers

Handle unhandled exception in MAUI

Hi, I used .Net 7 , vs 17.4 in windows. Is there place where i can treat unhandled exception in MAUI app like IN WPF ? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,963 questions
asked 2023-10-25T04:58:34.8066667+00:00
דני שטרית 1,501 Reputation points
commented 2023-10-26T06:05:44.8+00:00
דני שטרית 1,501 Reputation points
0 answers

ML.net builder tutorial question

Hello, I'm trying this tutorial: https://learn.microsoft.com/en-us/dotnet/machine-learning/automate-training-with-model-builder but in this page: https://dotnet.microsoft.com/en-us/learn/ml-dotnet/get-started-tutorial/data When I press the brows button,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,165 questions
asked 2023-10-25T22:26:51.76+00:00
Saeed Pooladzadeh 221 Reputation points
edited the question 2023-10-26T06:03:23.6266667+00:00
dupammi 560 Reputation points Microsoft Vendor
0 answers

Partial in Ef Migration

How can I add properties from the Main project to the Domain project's OrderItem? I tried adding a CS file directly in the main project, but migration gave me an error saying "[InverseProperty] attribute on property 'OrderItem.Order' is not valid.…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,015 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,646 questions
asked 2023-10-26T05:58:57.6966667+00:00
Mrbanad 20 Reputation points
1 answer

setting autopost to true and hiding and showing label and dropdown list based off seperate dropdown llist

this is probably simple and i'm probably missing one thing to get it to work. i have a label and dropdown list with their default properties for visbility set to false. on the webform there is another dropdown list with 2 entries i populated and assigned…

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.
635 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,351 questions
asked 2023-10-26T04:28:53.3466667+00:00
Joseph Hedbon 61 Reputation points
answered 2023-10-26T05:47:00.1233333+00:00
Lan Huang-MSFT 18,811 Reputation points Microsoft Vendor
1 answer

Showing text under bullets in .Net MAUI app

Hi Team, I have a requirement where in XAML page of .Net MAUI app, I need to show text in bullets. Using label control I am able to show text in bullet but for second row text of the bullet, it is coming below the bullet which is not correct behaviour…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,963 questions
asked 2023-10-20T11:20:22.1333333+00:00
salilsingh-9961 221 Reputation points
answered 2023-10-26T05:44:33.5333333+00:00
Viorel 104.7K Reputation points
0 answers

Process cannot be executed on XMA server. There was an error unzipping the file <zip file>: The given path's format is not supported.

Hi When publishing archive on Visual Studio on a pc paired to a mac, I am getting the error; Process cannot be executed on XMA server. There was an error unzipping the file C:\T\2023-09-13\5ede2715.zip: The given path's format is not supported. I have…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,963 questions
asked 2023-09-13T16:47:16.4266667+00:00
-- -- 861 Reputation points
commented 2023-10-26T05:32:58.92+00:00
-- -- 861 Reputation points
2 answers

Other issue to CK Editor

Hi, To the thread below, https://learn.microsoft.com/en-us/answers/questions/1389276/issue-to-ck-editor regarding the last update in the following, how to refer to str within code behind?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,676 questions
asked 2023-10-19T05:21:58.82+00:00
Peter_1985 2,276 Reputation points
edited a comment 2023-10-26T04:57:29.88+00:00
Peter_1985 2,276 Reputation points
0 answers

Would a recent update to IIS change how Application_Start is executed in an ASP.NET web application?

We're seeing some systems fail where the Application_Start is not being executed. The only difference I'm seeing so far is in the OS and IIS versions. Windows 10 systems seem to work while Windows 11 and Server 2022 do not. The weird detail here is…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,676 questions
asked 2023-10-25T14:14:19.3533333+00:00
Vincente Formica 0 Reputation points
commented 2023-10-26T04:30:46.5366667+00:00
Yurong Dai-MSFT 2,076 Reputation points Microsoft Vendor
0 answers

DataGridView with Wrap text in Cell but without newline

hi experts , I am trying to wrap the long text in my datagridview cell by using the dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None; dataGridView1.DefaultCellStyle.WrapMode = DataGridViewTriState.True; but what…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,679 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.
9,197 questions
asked 2023-10-25T16:15:39.4733333+00:00
ankit goel 666 Reputation points
commented 2023-10-26T04:21:50.69+00:00
ankit goel 666 Reputation points
2 answers One of the answers was accepted by the question author.

vb.net and excel

i've used vb.net and visual studio before and have some basic coding experience(manipulate pdf's using syncfusion, import resource,etc) I'm trying to be able to retrieve value from ecxel cells when i user select certain check boxes. for example the…

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.
635 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,351 questions
asked 2023-10-18T00:02:27.9966667+00:00
Joseph Hedbon 61 Reputation points
accepted 2023-10-26T04:19:53.3266667+00:00
Joseph Hedbon 61 Reputation points
1 answer

RedirectToAction doesn't bring the ReturnUrl

Hi All, This is still related to my previous question, why my RedirectToAction doesn't bring the ReturnUrl? return RedirectToAction("/", "Home", new { user.userId }); My result is:…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,015 questions
asked 2023-10-25T12:33:13.55+00:00
winanjaya 121 Reputation points
commented 2023-10-26T04:00:08.3066667+00:00
XuDong Peng-MSFT 6,621 Reputation points Microsoft Vendor
1 answer

what is alternate for WindowsImpersonationContext and WindowsIdentity methods

I have updated my application from .net 4.6.1 to .net 6.0. Now it gives me an error of WindowsImpersonationContext and WindowsIdentity methods not found. I believed this support is removed from .net 6.0. is there any alternative for this.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,165 questions
asked 2023-10-25T12:01:45.51+00:00
Rohit Kanugo 0 Reputation points
commented 2023-10-26T03:43:29.7266667+00:00
Rohit Kanugo 0 Reputation points