Microsoft Q&A

.NET

13,960 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,960 questions with .NET-related tags

Sort by: Updated
0 answers

i cannot find my az-104 certificaction so i can renew it

i cannot find my az-104 certificaction so i can renew it here u can find my certificaction https://www.credly.com/earner/earned/badge/74b5145a-f82b-4bd5-9d49-8f4b2ce4d59f

.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
112 questions
asked 2023-03-23T13:34:17.52+00:00
64856058 0 Reputation points
edited the question 2023-03-23T13:45:06.0266667+00:00
64856058 0 Reputation points
0 answers

Entity Framework, nullable, and no warnings or hacks

I am trying to get my model constructors written so that nullable works, with no warnings, and no having to assign default! - in other words, to do it all right. BTW, if I'm wrong on any of this, please let me know. I'm mostly there. What's left is…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 questions
asked 2023-03-19T18:39:22.8866667+00:00
David Thielen 666 Reputation points
commented 2023-03-23T13:42:53.4133333+00:00
Jack J Jun 21,896 Reputation points Microsoft Vendor
0 answers

How to fix Incomprehensible error in the whole of my application?

Hi, some time ago I made a blazor wasm .net core 6 application with VS version 17.2.3 and it works fine. However I opened the code today and I find myself with "red" everywhere, see the image below. Is this a problem with the VS version?…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
878 questions
asked 2023-03-23T13:03:19.51+00:00
sblb 831 Reputation points
edited a comment 2023-03-23T13:33:05.9133333+00:00
AgaveJoe 19,526 Reputation points
1 answer

Http chunk encoding miss end of chunked encoding("0\r\n") or tailer("\r\n") on IIS 7.5

I create a simple ASP .NET Application and write a generic web handler (HelloFilterWithClose.ashx). HelloFilterWithClose.ashx ProcessRequest with setting a HttpResponse.Filter(MyFilter), and it response to http client with write a PDF file to http…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,318 questions
asked 2023-03-22T09:35:26.2833333+00:00
linq.x 1 Reputation point
edited an answer 2023-03-23T13:26:16.96+00:00
AgaveJoe 19,526 Reputation points
1 answer

.NET 6.0 migration issues leads to MySQL stored procedure calling

Once we migrate .NET core 3.1 applications to .NET 6.0, we get below issue while calling MySQL stored procedure, The LINQ expression could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 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.
979 questions
asked 2023-03-22T14:29:14.39+00:00
Ninad Manjrekar Offcial 0 Reputation points
commented 2023-03-23T12:53:47.5833333+00:00
Jack J Jun 21,896 Reputation points Microsoft Vendor
0 answers

Access Control

Good morning, I am working on a .NET Core 6, SQL Server project and I need some idea of how to implement permissions by fields, let me explain: in a form, for example, that has [Name, Surname, Date, Address, Gender] to be able to assign in an access…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,817 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
726 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
868 questions
asked 2023-03-23T12:15:43.6866667+00:00
Juan A. Reyes Paulino 0 Reputation points
commented 2023-03-23T12:16:53.8966667+00:00
Juan A. Reyes Paulino 0 Reputation points
7 answers

A connection was successfully established with the server, but then an error occurred during the login process Error from .Net core WebAPI

Hi, I've an application that uses WebAPI in .Net core 6 and uses Kestrel server. When calling HttpPost request, the code tries to inject data in DB but fails with error: The certificate chain was issued by an authority that is not trusted. Inner…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,817 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
9,064 questions
asked 2021-12-14T12:23:52.077+00:00
Amit Potdar 86 Reputation points
commented 2023-03-23T12:08:31.7433333+00:00
Saeed Pourali 0 Reputation points
1 answer

C# try catch exception class

How does try catch exception class work? Can you give an example?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
868 questions
asked 2023-03-13T15:20:52.9533333+00:00
Jordan Halgunseth 1 Reputation point
commented 2023-03-23T12:03:45.1033333+00:00
Jack J Jun 21,896 Reputation points Microsoft Vendor
1 answer

in C# before the Nullable(?) was invented,Which can be null?which can't be null?

in C# before the Nullable(?) was invented,Which can be null?which can't be null? and Why are we need to worried about null or not null?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,817 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,520 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
868 questions
Universal Windows Platform (UWP)
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
492 questions
asked 2023-03-23T08:43:50.02+00:00
兰树豪 261 Reputation points
edited an answer 2023-03-23T11:43:27.9266667+00:00
AgaveJoe 19,526 Reputation points
0 answers

How can I resolve a mono_wasm_set_is_debugger_attached error in published Blazor WASM app on Edge?

In the latest version of Microsoft Edge I have an issue where a published Blazor WASM (.NET 6) application it getting errors on launch: Assertion failed: Cannot call unknown function mono_wasm_set_is_debugger_attached, make sure it is exported As far as…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
878 questions
Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
1,442 questions
asked 2023-03-23T11:37:49.34+00:00
T K 1 Reputation point
0 answers

Can you log custom properties with Auto-instrumentation?

Hi, I have a ASP.NET MVC application, I have Application Insights enabled with Auto-Instrumentation and I want to add custom properties on the exception for the Application Insight to pickup, At the moment I have created a Global Exception Handler which…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
726 questions
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
1,930 questions
asked 2023-03-23T11:32:26.02+00:00
Emanuel Zhupa 0 Reputation points
0 answers

Connecting

var Client = require('coinbase').Client; var client = new Client({'apiKey': 'API KEY', 'apiSecret': 'API SECRET'}); client.getAccounts({}, function(err, accounts) { console.log(accounts); });

.NET
.NET
Microsoft Technologies based on the .NET software framework.
868 questions
Azure Active Directory Domain Services
asked 2023-03-23T11:02:53.53+00:00
The World Bank 0 Reputation points
commented 2023-03-23T11:03:27.4966667+00:00
The World Bank 0 Reputation points
0 answers

Samples for Xamarin.iOS projects should be upgraded to .NET SDK-style projects in Xamarin Support Policy

I developed a cross-platform applications with Xamarin.iOS.framework and Xamarin.Mac.framework and Mono.framework. I found some anxious information in https://dotnet.microsoft.com/en-us/platform/support/policy/xamarin. I want to know what's the quickest…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-03-20T02:48:22.8133333+00:00
Sun, Tracy (LNG-SHA) 0 Reputation points
commented 2023-03-23T10:04:15.94+00:00
Sun, Tracy (LNG-SHA) 0 Reputation points
1 answer

After the windows system wakes up from the sleep state, the application cannot continue to download

The application is in the process of downloading (using HttpClient). At this time, I hibernate the windows system and then wake up the system, but the application cannot continue to download (it is in Established). How can I continue to reuse the…

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,520 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
868 questions
asked 2023-03-23T03:41:40.9566667+00:00
zhihao huang 0 Reputation points
commented 2023-03-23T09:57:59.51+00:00
zhihao huang 0 Reputation points
1 answer

The type or namespace name 'Platform' does not exist in the namespace 'Microsoft.Maui.Graphics' (are you missing an assembly reference?)

I am using Visual Studio Community 2022 64 bit 4.8.04161 on Windows 11 Pro. I need to be able to draw an image at a particular location. I am attempting to use the documentation at…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-03-16T20:44:11.47+00:00
Randy Clegg 0 Reputation points
commented 2023-03-23T09:45:42.55+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 43,931 Reputation points Microsoft Vendor
0 answers

making an image box in Razor page

I want to make an image box on my razor page so that users can type or sign their name in that box. I want something like adobe acrobat offers. below is the screen shot: How can I achieve this.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,817 questions
asked 2023-03-23T04:44:53.9833333+00:00
Anjali Agarwal 616 Reputation points
commented 2023-03-23T09:44:33.48+00:00
Ruikai Feng - MSFT 326 Reputation points Microsoft Vendor
1 answer

KeepScreenOn throws error on Android

Hi, I am trying the following: DeviceDisplay.KeepScreenOn = true; inside the App,xaml.cs and it's working fine on iOS but when I run it on Android I get below error: System.NullReferenceException: The current Activity can not be detected. Ensure that you…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-03-15T19:56:19+00:00
Jassim Al Rahma 1,166 Reputation points
answered 2023-03-23T09:38:14.2966667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 43,931 Reputation points Microsoft Vendor
1 answer

Location permission alert is not showing in android in net maui

I am using below code on xaml page but location permission in not working with promt method protected async override void OnAppearing() { base.OnAppearing(); var status = await…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-03-19T17:13:52.1233333+00:00
anil kumar 51 Reputation points
commented 2023-03-23T09:28:15.8166667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 13,501 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Unhandled exception rendering component: '<' is an invalid start of a value

Hi, I used blazor wasm and I just want rendering a datagrid via the controller. Below you will find the detail of the code . Have you an idea how I can fix this problem? Thanks in advance Data is located in LocalDb "ConnectionStrings": { …

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,520 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.
878 questions
asked 2023-03-22T17:54:40.82+00:00
sblb 831 Reputation points
commented 2023-03-23T09:27:46.53+00:00
sblb 831 Reputation points
1 answer

simpler RowDefinitions

Hi, I have the following RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto" How can I make it simpler to have 12 Auto Rows? Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,063 questions
asked 2023-03-21T18:17:39.2066667+00:00
Jassim Al Rahma 1,166 Reputation points
answered 2023-03-23T09:24:14.4733333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 13,501 Reputation points Microsoft Vendor