Microsoft Q&A

.NET

12,963 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,963 questions with .NET-related tags

Sort by: Updated
0 answers

I can't use class on layered architecture

I'm working on a web.api for library otomation project. I'm using layered architecture on project. a485553e-89a6-4fa9-8dd5-1c40de6d40e2.jpg image is my architecture. I couldn't access User.cs class on DataAccess layer. I defined with "usign"…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
424 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,553 questions
asked 2023-02-02T07:05:02.2466667+00:00
ömercan künye 0 Reputation points
1 answer

What is the recommended way of passing parameter info between tabs in a Shell app using MVVM?

I've got a Shell app (I'm not targeting mobile if it makes a difference) that has a main page where the user picks an item from a collectionview, and some strings are passed to the first tab in a TabBar. So, the user is either seeing the MainPage or a…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
899 questions
asked 2023-01-21T23:37:31.07+00:00
TerryH 0 Reputation points
commented 2023-02-02T06:58:25.82+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,496 Reputation points Microsoft Employee
1 answer

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.
620 questions
asked 2023-02-01T17:18:26.21+00:00
Andrew Porter 1 Reputation point
edited the question 2023-02-02T06:55:49.5833333+00:00
Tianyu Sun-MSFT 13,071 Reputation points Microsoft Employee
0 answers

Why is Android is not automatically scroll ViewElement into view when keyboard appear?

In .net-Maui, When I add a ViewElement in a scrollView and the keyboard appear, the keyboard is hidding the ViewElement. If I remove the ScrollView it works fine, but then I can't scroll the content. On Xamarin, Android will automatically scroll the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
899 questions
asked 2023-02-02T06:53:20.55+00:00
Severin Brinch Jørgensen 0 Reputation points
0 answers

How to convert existing solution to use Shell

I have a solution that does not use Shell. I would like to change it so that it uses shell. I created a new solution and copied the AppShell.xaml and .cs. I changed the namespace to the correct namespace. I then changed the app.xaml.cs to: …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
899 questions
asked 2023-01-31T14:51:43.6833333+00:00
Lloyd Sheen 756 Reputation points
commented 2023-02-02T06:51:22.3933333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,496 Reputation points Microsoft Employee
0 answers

Session is not clearing after signing out from application razor pages

Hi, I want to clear my sessions,once i logout from my application. Now when i logout from application and click the back button,its navigating to the previous page. My logout button is given as a menu in _Layout page like this <li…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,553 questions
asked 2023-01-31T04:04:24.65+00:00
Blooming Developer 196 Reputation points
commented 2023-02-02T06:43:12.13+00:00
Zhi Lv - MSFT 18,786 Reputation points Microsoft Employee
1 answer

How to fix canonical issues with WordPress on App Services

I need to redirect www.example.com to example.com. I have a custom domain with SSL, https enforced. Http requests are being redirected to https and working as expected. Where, or how, do I configure a redirect to get the www.example to redirect to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,553 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,319 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
4,622 questions
asked 2023-01-28T13:29:04.7433333+00:00
Joe O 0 Reputation points
edited the question 2023-02-02T06:40:06.3266667+00:00
GitaraniSharma-MSFT 27,161 Reputation points Microsoft Employee
0 answers

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,810 questions
asked 2023-02-01T17:24:30.1866667+00:00
Charles Mills 26 Reputation points
commented 2023-02-02T06:21:44.6466667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,496 Reputation points Microsoft Employee
3 answers

EF Core - Getting records randomly based on a certain criteria

Hi there, I would like to get data one by one (TOP 1) where all the statuses of all related BulkID = 1 randomly. Here is what I tried but didn't work as I wanted. Select TOP 1 BulkId, ProductCode from BulkPurchases where status = 1 group by…

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,515 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
424 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,965 questions
asked 2023-02-02T05:25:23.99+00:00
Cenk 666 Reputation points
answered 2023-02-02T06:19:31.5633333+00:00
打玻璃 1,526 Reputation points
1 answer

EF Core 6 - Adding records based on a condition

Hi friends, In my Blazor server application, I am inserting BulkPurchaseRequest records into DB as follows. public class BulkPurchaseRequestsRepository : IBulkPurchaseRequestsRepository { private readonly OyunPalasContext _oyunPalasContext; …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,553 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.
787 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
424 questions
asked 2023-02-01T17:33:09.4066667+00:00
Cenk 666 Reputation points
commented 2023-02-02T06:11:30.3433333+00:00
Cenk 666 Reputation points
0 answers

Unable to find OpenReadstream in image upload functionality in blazor

Hi i am trying to get image url from selected images.The challenge i am facing here is i am not supposed to touch the  OnFilesChanged methode directly.I need to create a seperate class and access the original class items.How i can get image url of each…

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,965 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.
787 questions
asked 2023-02-01T09:40:56.8366667+00:00
RAMAN RAGAVAN 46 Reputation points
commented 2023-02-02T06:10:54.75+00:00
Zhi Lv - MSFT 18,786 Reputation points Microsoft Employee
1 answer

Call Windows open popup/alert/dialog platform specific code

Hi, I would like to open from platform specific code an alert in Windows. I know I can do it from await Application.Current.MainPage.DisplayAlert("dad", "dsadas", "cancel"); but I want it from platform specific. So…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
899 questions
asked 2023-02-01T12:18:57.5133333+00:00
vanKraster 126 Reputation points
answered 2023-02-02T06:06:35+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,216 Reputation points Microsoft Employee
0 answers

Upload a file on one drive using microsoft graph api in c# asp.net

Hello, I have one question,I want to upload a file on one drive and it is worked properly in console application but not in web application. Please help me here below is my sample console application…

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.
402 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,643 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,022 questions
asked 2023-02-02T06:06:01.9066667+00:00
Alisha Mulla 0 Reputation points
1 answer

Address Autocomplete

Hello everyone and thanks for the help in advance. I need to develop a page for address input that will be entered by an end user. Obviously, user input is prone to error so I am looking for solutions to validate the input. I know the US Postal…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
596 questions
asked 2023-02-02T02:18:07.7633333+00:00
Kmcnet 201 Reputation points
answered 2023-02-02T05:25:04.3633333+00:00
Lan Huang-MSFT 9,126 Reputation points Microsoft Employee
0 answers

BackgroundService Serilog how to email?

Hi, In my background service, I would like to send error logs. Although there is an error, the email sink does not work. The error is being written to the file and mssqlserver successfully. Can you please share your experiences? Here is the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,553 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,965 questions
asked 2023-01-31T14:40:53.22+00:00
Cenk 666 Reputation points
commented 2023-02-02T05:17:21.9033333+00:00
Cenk 666 Reputation points
1 answer

Change Maui splashscreen

Well the page that describes how to add a splash screen does not work. (GA yeah sure). I copied a jpg to the Resources folder. Changed the <MauiSplashScreen Include="Resources\splashscreen.svg" Color="#5B27D9" /> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
899 questions
asked 2022-09-05T17:55:25.497+00:00
Lloyd Sheen 756 Reputation points
commented 2023-02-02T04:22:25.34+00:00
Xiaoyu Zou 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,553 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.
8,515 questions
asked 2021-12-14T12:23:52.077+00:00
Amit Potdar 56 Reputation points
commented 2023-02-02T03:45:53.9533333+00:00
orlando martinez 0 Reputation points
1 answer

Does the class returned by System.Security.Cryptography.IncrementalHash.CreateHMAC(HashAlgorithmName.SHA256) uses a managed or a native crypto implementation?

I've developed an app with Xamarin for Android and iOS which uses a sha256 hash. I need to know if the class returned by System.Security.Cryptography.IncrementalHash.CreateHMAC(HashAlgorithmName.SHA256) uses a managed or a native sha implementation…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,810 questions
asked 2023-01-30T13:49:17.2833333+00:00
Andreas Gossweiler 0 Reputation points
edited an answer 2023-02-02T03:45:33.2866667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,741 Reputation points Microsoft Employee
0 answers

CommandName IIS: InvalidOperationException: Cannot find compilation library location for package 'System.Security.Cryptography.Pkcs'

Within my launchsettings.json file I created profile for IIS (Not IISExpress). When I run this application, I get the below error: "InvalidOperationException: Cannot find compilation library location for package…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,553 questions
asked 2023-02-01T19:23:33.4466667+00:00
Amit Rawat 526 Reputation points
commented 2023-02-02T03:27:56.6966667+00:00
Qing Guo - MSFT 161 Reputation points Microsoft Employee
1 answer

Play Audio from HTTPS

Hi. How can I play an MP3 audio from HTTPS like https://www.domain.com/my.mp3 using https://github.com/jfversluis/Plugin.Maui.Audio Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
899 questions
asked 2023-01-29T18:29:07.7266667+00:00
Jassim Al Rahma 1,086 Reputation points
commented 2023-02-02T03:24:28.0733333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,741 Reputation points Microsoft Employee