Microsoft Q&A

.NET

13,091 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,091 questions with .NET-related tags

Sort by: Updated
0 answers

iOS device works as not expected

I published MAUI APP to Testflight but, the app installed from Testflight works with some problems Title of FlyoutItem in Shell does not appear Carousels does appear CollectionView does not show data on iOS emulator all of them works well. on App…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
912 questions
asked 2023-02-06T02:46:09.28+00:00
Nam Pham 21 Reputation points
edited a comment 2023-02-08T06:05:47.4033333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,821 Reputation points Microsoft Vendor
2 answers

Create client credential for Azure AD's App registration

I created a new ASP.NET Core MVC 6.0 web application >> and i define it to use Azure AD for authentication, as follow:- then i were asked to create owned application, so i created one named "ad" as follow:- and inside my application's…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,604 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,762 questions
asked 2023-02-03T15:04:51.97+00:00
john john 681 Reputation points
commented 2023-02-08T06:03:10.1766667+00:00
Shweta Mathur 11,166 Reputation points Microsoft Employee
1 answer

The Active Directory App created using visual studio does not have any "Certificate & Secrets".. is this fine?

I created a new ASP.NET Core MVC 6.0 web application >> and i define it to use Azure AD for authentication, as follow:- then i were asked to create owned application, so i created one named "ad" as follow:- and inside my application's…

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,762 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,604 questions
Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
354 questions
asked 2023-02-04T18:13:06.6466667+00:00
john john 681 Reputation points
commented 2023-02-08T06:02:36.1333333+00:00
Shweta Mathur 11,166 Reputation points Microsoft Employee
1 answer

How to call the server map path filename that generated randomly

This is a C# code for a Web Form page named "upload.aspx" which allows the user to upload a PDF file and store it in the server. The file uploaded must be a PDF file, and all the text boxes must be filled before submission. The file name is…

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,024 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,211 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.
411 questions
asked 2023-02-06T17:34:11.35+00:00
Sunny 0 Reputation points
commented 2023-02-08T05:47:24.31+00:00
Lan Huang-MSFT 9,281 Reputation points Microsoft Employee
0 answers

How to program the OnBackButtonPressed Xamarin

Hello I implented the the Mediapicker in my xamarin page, but if I am in the menu for "Picking up Photo" I try to click on Back Button to turn back to the previous Mainpage but it doesnt work because the BackButton is not defined. Please…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,824 questions
asked 2023-02-02T11:14:10.31+00:00
Wanderer in der tiefen Nacht 0 Reputation points
commented 2023-02-08T05:41:07.6933333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,831 Reputation points Microsoft Employee
0 answers

Learning EF - Error running Scaffold-DbContext

I am learning how to user Entity Framework where the models are built from an existing SQL server. I ran this command in the package manager: Scaffold-DbContext “Server=xxx; database=Contoso; user id = cnnxxxxx; password = xxxx”…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
429 questions
asked 2023-02-07T22:47:49.0433333+00:00
Stephen Ng Qui Sang 0 Reputation points
commented 2023-02-08T05:39:54.6666667+00:00
Jack J Jun 19,551 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

WCF Error : Cannot obtain Metadata from WCF service

Hello All, We have a webservice in asp.net wcf (ex.. [http://localhost:56561/ProductOData.svc/]). We are able to add as a service reference in asp.net mvc. However, we are trying to add the same service in asp.net core 6.0 and it is not working. The…

Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
261 questions
asked 2023-02-07T14:43:03.54+00:00
SUMAN7910 0 Reputation points
edited a comment 2023-02-08T05:28:14.8266667+00:00
SUMAN7910 0 Reputation points
1 answer

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"…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,824 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,024 questions
asked 2023-02-03T17:56:31.64+00:00
Karen Cate 0 Reputation points
commented 2023-02-08T05:26:14.6866667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,541 Reputation points Microsoft Employee
1 answer

How to set width of a FlyoutPage.Flyout?

In Shell we have the FlyoutWidth property but in FlyoutPage I cannot find anything similar. I tried WidthRequest on the FlyoutPage.Flyout page and some other fields but none of them worked.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
912 questions
asked 2023-02-03T00:36:33.8733333+00:00
stcmz 0 Reputation points
commented 2023-02-08T05:23:12.7233333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,541 Reputation points Microsoft Employee
0 answers

How to fix the session null issue

I have published the .net 6.0 site on windows iis, As per my analysis when iis worker process reach at 3 GB then it release the memory at that time it clear the current user session.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
641 questions
asked 2023-02-08T05:15:20.0066667+00:00
Shailesh Thummar 0 Reputation points
1 answer

How to remove shared permission individual wise from an external user using One drive API inc#

I have uploaded a file in one drive using MS graph one drive API. I have also shared this item to external users by using one drive API. These two external users also showing in the manage access section as Link User. i want to remove individual Link…

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
60 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
304 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,211 questions
asked 2023-02-02T20:15:59.9266667+00:00
Pradyut Sinha 16 Reputation points
commented 2023-02-08T04:58:45.1433333+00:00
SrinivasaRaoDarna - MSFT 6,241 Reputation points Microsoft Employee
4 answers

Unable to resolve service for type in .NET 5 with entity framework scaffolding

Hi I am trying to do a website using .NET 5 with some entity framework 3.1.21. I get this error on my Comments/index page I read an article on the Microsoft docs I'm pretty sure about this error but I can't find it now. can anyone point me in the right…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,604 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
429 questions
asked 2023-02-07T17:13:46.1933333+00:00
DMO 0 Reputation points
commented 2023-02-08T04:00:17.44+00:00
Michael Taylor 38,271 Reputation points
0 answers

how to use blazor webassembly in razor pages?

how to use blazor webassembly component in razor pages? if I create Count in webassembly how to use it in razor pages? if I do not open that page do not load dll If I open that page then load it. /Pages/Count.cshtml with component Count If I do not open…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,604 questions
asked 2023-02-03T02:56:39.31+00:00
打玻璃 1,546 Reputation points
edited a comment 2023-02-08T03:31:37.9466667+00:00
打玻璃 1,546 Reputation points
1 answer

How to Change the Default .NET Logo and Splash Screen on an iPhone iOS .NET MAUI

Does anyone know why the app icon and splash screen will not change in debug mode on my Local Device, iPhone 12 Max pro? I do not have an Android phone to test with but the icon and splash screen do change on the emulator. This is how the .csproj is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
912 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
641 questions
asked 2023-02-06T03:55:53.9666667+00:00
DOTNETVIC 0 Reputation points
commented 2023-02-08T03:20:08.6366667+00:00
DOTNETVIC 0 Reputation points
0 answers

My Details of MainPageViewModel in MAUI

builder.Services.AddSingleton<MainPageViewModel>(); public class MainPageViewModel : BaseViewModel { private Plato currentPlato; public Plato CurrentPlato { get => currentPlato; set …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
912 questions
asked 2023-02-07T21:40:34.0533333+00:00
Anonymous
commented 2023-02-08T03:17:04.8333333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,831 Reputation points Microsoft Employee
0 answers

SSL Issues with a Blazor App Running On IIS

I have a Blazor Server applictaion running on IIS using an Origin SSL certificate. We also manage our domains through Cloudflare. Everything was working perfectly for roughly two weeks on a new server, and over a month on an older server. Then we started…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
803 questions
Internet Information Services
asked 2023-02-07T15:41:55.66+00:00
Biggers 0 Reputation points
edited a comment 2023-02-08T02:59:15.2566667+00:00
XuDong Peng-MSFT 4,576 Reputation points Microsoft Employee
1 answer

What is the alternative of GetWebLoginClientContext in the current PnP.Framework?

Following this issue, I have copied the code for GetWebLoginClientContext and implemented it in my project. However, I get this out-of-date browser error because the code uses System.Windows.Forms.WebBrowser which uses the old built-in browser. What…

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,024 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
485 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,330 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
1,698 questions
asked 2023-02-03T01:04:49.1433333+00:00
Jack Le 0 Reputation points
commented 2023-02-08T02:56:14.73+00:00
RaytheonXie_MSFT 14,546 Reputation points Microsoft Employee
2 answers

TabbedPage selectedItem doesn't change when change tab programmatically to tab in "More"

Hi everybody, I am working on a TabbedPage which has 6 tabs. <TabbedPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,824 questions
asked 2021-05-18T07:48:04.017+00:00
TRAN HOANG LONG 1 Reputation point
answered 2023-02-08T02:46:19.4533333+00:00
karthik madathiparambhil 0 Reputation points
2 answers

Access to path denied for files in WWWRoot folder

I am trying to access two folders that resides inside wwwRoot. The folders are "BlankPDFFiles" and "FilledPDFFiles". I am trying to get the blank PDF files that resides inside BlankPDFFiles folder and write some data inside the file…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,604 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,024 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
618 questions
asked 2023-02-07T18:26:06.8566667+00:00
Anjali Agarwal 141 Reputation points
edited an answer 2023-02-08T02:13:34.5366667+00:00
Zhi Lv - MSFT 18,891 Reputation points Microsoft Employee
1 answer

Using my android phone as emulator

Hi How can i used my android phone as emulator ? I develop using xamarin android project under visual studio 2022 Thanks

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,824 questions
asked 2023-02-07T19:36:19.0666667+00:00
Shay Wilner 1,406 Reputation points
answered 2023-02-08T01:57:43.2966667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,541 Reputation points Microsoft Employee