Microsoft Q&A

.NET

13,013 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,013 questions with .NET-related tags

Sort by: Updated
5 answers

How to implement custom elements in blazor 7 (Practical guide) ?

Hi everyone As you know, one of the new features of blazor 7 is custom elements. But there is not enough references & guides which demonstrate how to implement this. for example, I want to create custom element in my blazor server app, then consume…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,578 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.
792 questions
asked 2023-02-03T16:39:26.1333333+00:00
Hamed Vaziri 56 Reputation points
answered 2023-02-03T21:58:51.6466667+00:00
Hamed Vaziri 56 Reputation points
1 answer

4.6.1 migrating to .Net Core 7 – How do I resolve error MC1000- cannot find type System.Management.Instrumentation.InstrumentedAttribute in Assembly ..path \.nuget\packages\system.management\7.0.0\lib\net6.0\SystemManagement.dll – Microsoft.WinFx.Targets

I am migrating a .netFramework 4.6.1 application to core. I have been able to get rid of all of the build errors except this one: Error MC1000 Unknown build error, 'Could not find type 'System.Management.Instrumentation.InstrumentedAttribute' in…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
424 questions
Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
369 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,326 questions
asked 2022-11-29T01:11:01.337+00:00
Dozier, Fletcher [US] (DS) 1 Reputation point
answered 2023-02-03T21:47:03.9733333+00:00
Hardik Patel 0 Reputation points
1 answer

Aes.Create() crashing on Windows Server 2022

Has anyone encounter problems with Aes.Create() throwing an exception "Exception has been thrown by the target of an invocation".   I just migrated to a new server with Windows Server 2022 on it and all of a sudden I am getting this error…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
623 questions
asked 2023-01-24T15:11:46.67+00:00
Matt 0 Reputation points
commented 2023-02-03T21:45:38.2066667+00:00
Viorel 82,746 Reputation points
2 answers

X509Certificate Client Authentication

Hello guys, I have the following code that was working perfectly fine for 3 years already. ServicePointManager.Expect100Continue = true; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 …

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.
407 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.
6,991 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,200 questions
Windows Network
Windows Network
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.Network: A group of devices that communicate either wirelessly or via a physical connection.
238 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,211 questions
asked 2023-02-02T14:44:17.87+00:00
Kuler Master 141 Reputation points
commented 2023-02-03T21:24:26.54+00:00
Kuler Master 141 Reputation points
1 answer One of the answers was accepted by the question author.

[MacOS] Console Application - Issue recognizing the file Path

Dear community, I have this issue: I deployed a console application (C# - Visual Studio - Unix Executable File). As you will see in the following screenshots, the issue is that running by double-click or using the full path doesn't allow the Terminal to…

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.
6,991 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
623 questions
asked 2023-02-03T13:15:24.28+00:00
Juan Gomez 0 Reputation points
commented 2023-02-03T21:18:39.3133333+00:00
Juan Gomez 0 Reputation points
1 answer

Edmx codegenerator for legacy project

I have been assigned a task required to use VS 2012 edmx generator. Therefore, I have to get a license for VS 2012 although we bought and use VS 2022.   I am looking for a way that I do not have to install VS 2012. But the code won’t generate like VS…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,434 questions
Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
218 questions
asked 2023-02-01T21:25:28.9633333+00:00
EunMin Lee 0 Reputation points
commented 2023-02-03T21:16:48.1733333+00:00
EunMin Lee 0 Reputation points
1 answer

The current .NET security policy prohibits C:\Users\...\File.xlsx from loading custom macros.

I am working on a project in Visual Studio Community 2022. The project is an Excel VSTO Workbook using Visual Basic (Target framework is .NET Framework 4.8). Up until yesterday everything was working fine, I could run and debug my project whenever I…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
623 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
1,969 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,434 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
80 questions
asked 2023-01-19T01:59:19.6166667+00:00
Ricardo Freccero 1 Reputation point
answered 2023-02-03T19:42:40.97+00:00
Abraham Valencia 0 Reputation points
0 answers

SsdtHelper.DeployDacPacWithOptions() fails with System.MissingMethodException: Method not found: 'Void Microsoft.SqlServer.TransactSql'

I have a .NET Framework 4.6.1 (upgrading to 4.6.2 doesn't solve it) project that uses DacServices to deploy my database's SSDT on a Docker container. This eventually uses the following code: using (var fileStream = new FileStream(dacpacPath,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
623 questions
asked 2023-01-23T12:08:46.3933333+00:00
Ron Anoshi 0 Reputation points
commented 2023-02-03T18:52:51.47+00:00
Vijay Gopalakrishna 0 Reputation points
0 answers

Error at Add-Migration CreateIdentitySchema

Error: ...The type or namespace name 'Areas' does not exist in the namespace 'Authentication' (are you missing an assembly…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,578 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
608 questions
asked 2023-02-03T16:33:09.2233333+00:00
Dean Everhart 441 Reputation points
edited a comment 2023-02-03T18:23:06.78+00:00
AgaveJoe 17,131 Reputation points
0 answers

Using transparent PNG for game development?

I'm thinking of developing a game using transparent PNGs but I have a couple issues: I can only get things to animate while they are moving. The images cut into each other leaving empty spots.

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.
6,991 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
623 questions
asked 2023-02-03T17:52:22.6+00:00
Spamzilla 41 Reputation points
commented 2023-02-03T17:56:35.89+00:00
P a u l 7,566 Reputation points
0 answers

Xamarin.Forms ListView: Infinite loop creating a single viewcell

I have this tiny demo that appears to show that ListView continually creates ViewCells, and binds them to one view model instance, until it runs out of memory. Here's the code... From MainPage.xaml: <?xml version="1.0"…

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.
6,991 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,817 questions
asked 2023-02-03T17:56:31.64+00:00
Karen Cate 0 Reputation points
3 answers

Getting lots of Task Canceled Exception while calling .net API from .net 6 WebApp

System.Threading.Tasks.TaskCanceledException: at System.Net.Http.HttpClient.HandleFailure (System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) at…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
623 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.
148 questions
asked 2023-02-03T07:29:13.5766667+00:00
Faijal Vahora 0 Reputation points
answered 2023-02-03T17:27:15.58+00:00
Bruce (SqlWork.com) 28,196 Reputation points
1 answer

How create a Xamarin Android distro than can be sideloaded?

I have done this before. I believe in Android Porject->Properties->Archive I used to be able to create an APK that could then be sideloaded from a shared Windows server onto an Android device. I am now on VS 2022 and it seems the only Archive…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,817 questions
asked 2023-02-01T17:24:30.1866667+00:00
Charles Mills 26 Reputation points
commented 2023-02-03T17:24:36.2966667+00:00
Charles Mills 26 Reputation points
2 answers

asp.net setup doubts

Hello We Have developed one small web application which has aspx page and cs file c# as a code behind. We use database as sql express 2008 R2 Microsoft SQL Server Express Edition with Advanced Services ( sql server management studio …

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
8,555 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,200 questions
asked 2023-02-03T11:07:51.19+00:00
RAVI 256 Reputation points
answered 2023-02-03T17:14:44.19+00:00
Bruce (SqlWork.com) 28,196 Reputation points
2 answers

Security Updates for Microsoft .NET Core (166054) - How do I uninstall older versions of .Net Core

Hi, I am getting multiple vulnerabilities show for machines having older versions of .Net Core installed. I have checked the machines and they do have the old versions in the folder C:\Program Files\dotnet\shared\Microsoft.NETCore.App\versionnumber. If I…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
623 questions
asked 2023-02-01T17:18:26.21+00:00
Andrew Porter 1 Reputation point
answered 2023-02-03T17:02:36.84+00:00
Andrew Porter 0 Reputation points
2 answers

No funcionan los breakpoint .net 2005 en win11

Recientemente actualice mi computadora a win 11, y tengo instalado el .net 2005, y ahora no funcionan los breakpoint en ningún website que tengo, no me marca ningun error simplemente no los reconoce. Ya intente todas las soluciones que he encontrado…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,200 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
3,524 questions
asked 2023-02-02T18:53:28.33+00:00
LauER77 0 Reputation points
answered 2023-02-03T16:49:18.0733333+00:00
Limitless Technology 9,541 Reputation points
0 answers

How to show the last item selected when opening a Picker?

I have a Picker that shows items from an ObservableCollection. All is ok, I see all the values.... and I can select one of them. But when I clic again the picker, it show the list from the beginning. is any way to scroll to the last position…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,817 questions
asked 2023-02-03T16:47:12.7166667+00:00
JRAF 0 Reputation points
0 answers

How to access menu control reference from Master page - home_master.Master

Hello, I have a master page known as home_master.Master which has Menu Control. Now I want to handle Menu control dynamically through another aspx page (Non Master Page) which is located in Sub-folder i.e Admin. My intent is to create a Content…

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.
6,991 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
623 questions
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.
407 questions
asked 2023-02-03T05:58:36.1466667+00:00
Anoop Mathur 0 Reputation points
commented 2023-02-03T16:44:26.6866667+00:00
AgaveJoe 17,131 Reputation points
1 answer

'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.)

I want to receive and display push notifications on my iPhone/iPad but I get the following message in Visual Studio for Mac: 'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.) I use .NET…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
902 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.
6,991 questions
asked 2023-01-30T12:24:14.4933333+00:00
Kim Strasser 361 Reputation points
commented 2023-02-03T16:27:01.13+00:00
Kim Strasser 361 Reputation points
0 answers

Issue upgrade from 3.1 to .net 6

I'm trying to upgrade from 3.1 to .net 6 getting below error. I've installed SDK 6.0.405 but no luck. Severity Code Description Project File Line Suppression State Error MSB3971 The reference assemblies for ".NETFramework,Version=v6.0" were not…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
623 questions
asked 2023-02-03T16:21:16.1+00:00
Muhammad Shawkat Khan 0 Reputation points