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

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
commented 2023-02-08T02:53:30.9966667+00:00
XuDong Peng-MSFT 4,576 Reputation points Microsoft Employee
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.
640 questions
asked 2023-02-06T03:55:53.9666667+00:00
DOTNETVIC 0 Reputation points
edited a comment 2023-02-08T02:51:17.6866667+00:00
DOTNETVIC 0 Reputation points
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
commented 2023-02-08T02:49:22.9366667+00:00
Nam Pham 21 Reputation points
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,825 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
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…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
429 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
asked 2023-02-07T17:13:46.1933333+00:00
DMO 0 Reputation points
answered 2023-02-08T02:36:30.2566667+00:00
Zhi Lv - MSFT 18,891 Reputation points Microsoft Employee
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,025 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,825 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
4 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 …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,211 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,585 questions
asked 2023-02-03T11:07:51.19+00:00
RAVI 256 Reputation points
commented 2023-02-08T01:50:13.4866667+00:00
Seeya Xi-MSFT 12,821 Reputation points Microsoft Employee
2 answers

How to call a code behind method in razor pages ?

Hello I have razor form . When the user cancel , I need to execute the following method. I have tried the following with no success: <a type="button" href='@Url.Action("Myform","CancelButton_Click")'...> and then…

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-07T14:48:55.5866667+00:00
Butachan 1 Reputation point
edited the question 2023-02-08T01:41:37.5466667+00:00
Zhi Lv - MSFT 18,891 Reputation points Microsoft Employee
0 answers

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,025 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
edited a comment 2023-02-08T01:31:59.75+00:00
Lan Huang-MSFT 9,281 Reputation points Microsoft Employee
0 answers

Asp.net bootstrap 5

Hola... Mi sitio trabaja con asp:menu, conectad a una base de dato, estoy tratando que sea responsive asi que estoy trabajando con bootstrap 5, hasta hay todo bien solo que cuando esta en tamaño tablet no logro activar los sub menu con click. Con java…

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-07T12:27:12.8333333+00:00
Jorge Villegas 0 Reputation points
commented 2023-02-08T01:22:14.8433333+00:00
Lan Huang-MSFT 9,281 Reputation points Microsoft Employee
0 answers

how do you default a dropdown list value in mvc razor using vb.net and c#

hello I am trying to set a default value for a dropdownlist in vb.net and in c# mvc razor view here is how I populate the list here is how I create the drop list in mvc razor the data options for my list are I would like to default the dropdownlist to…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
618 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
640 questions
asked 2023-02-07T23:00:30.67+00:00
AppDev 1 Reputation point
edited the question 2023-02-08T01:14:06.2933333+00:00
Jack J Jun 19,551 Reputation points Microsoft Employee
0 answers

Explainability with ML.NET

I am using ML.NET to train a model using the FastTree regression trainer. I am trying to implement some kind of "explainability", meaning that when a prediction is made using this model I want to explain why the model made that prediction. In…

.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.
111 questions
asked 2023-02-07T19:33:26.3166667+00:00
Angela 0 Reputation points
edited the question 2023-02-08T01:11:33.34+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
commented 2023-02-08T00:39:35.4033333+00:00
SUMAN7910 0 Reputation points
3 answers

How to view and open pdf & images in blazor wasm?

Hi, I would like to make an application with blazor wasm that displays and opens pdf or image files (png...) found in the windows explorer. The problem is that under the windows explorer there are more than 100 000 files. The access to the directory is…

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
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,025 questions
asked 2021-10-27T08:22:00.103+00:00
sblb 831 Reputation points
commented 2023-02-07T23:36:32.05+00:00
Haitham Elhajj 0 Reputation points
0 answers

Activate SpeakerPhone in Xamarin.Forms Android during InBound/OutBound Calls

I posted this and was told to post it to this Forum https://answers.microsoft.com/en-us/feedback/forum/fdbk_commsite-bug/what-to-do-when-microsoft-developer-thread-go-on/1d4d9dc4-75fa-427f-8580-ce8710e86d0f

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,825 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,453 questions
asked 2023-02-07T23:01:44.07+00:00
Universal Camera 286 Reputation points
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
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-07T22:02:49.3566667+00:00
Michael Taylor 38,271 Reputation points
5 answers

Why does Blazor server app takes away memory while being inactive?

We developed a Blazor server app and is going through testing phase. Our clients have some concern. What we notice is that before the app is launched memory is 4784 K, one the app is launched and at the end of rendering the login page it is already over…

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
asked 2023-02-07T13:44:18.7166667+00:00
Balu Raju 26 Reputation points
edited a comment 2023-02-07T21:47:18.8733333+00:00
AgaveJoe 17,311 Reputation points
0 answers

TesserAct implementation help

HI, I would like to make an open source application using Tesseract and xamarin forms. I'm new to app development, but I have an idea that I would like to implement using the phone's camera and OCR. The only problem is that I can't find a recent, simple…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,825 questions
asked 2023-02-07T16:49:49.37+00:00
DJG 6 Reputation points
edited the question 2023-02-07T21:41:57.8166667+00:00
DJG 6 Reputation points