Microsoft Q&A

.NET

13,050 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,050 questions with .NET-related tags

Sort by: Updated
4 answers

Creating similar screen in ASP.NET (Web forms)

Hi, I would like to create something similar to this in ASP.NET: Which is the best way to do it? Thanks

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,203 questions
asked 2023-02-03T14:08:07.0766667+00:00
Bill Johnson 1 Reputation point
answered 2023-02-06T09:20:31.4266667+00:00
Lan Huang-MSFT 9,281 Reputation points Microsoft Employee
0 answers

How to fix double permission popup in xamarin ios web view

When I am trying to use camera in a web view, there are two permissions that are asked in iOS. One is the popup created from browser and the other is created from the Phone. Are there are any ways to avoid the browser popup for camera permission?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,820 questions
asked 2023-02-06T09:19:10.4933333+00:00
Anila Mathew 0 Reputation points
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,591 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,009 questions
asked 2023-01-31T14:40:53.22+00:00
Cenk 686 Reputation points
commented 2023-02-06T09:01:15.9433333+00:00
Ruikai Feng - MSFT 246 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,820 questions
asked 2023-02-01T17:24:30.1866667+00:00
Charles Mills 26 Reputation points
commented 2023-02-06T09:01:15.39+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,821 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.
908 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
636 questions
asked 2023-02-06T03:55:53.9666667+00:00
DOTNETVIC 0 Reputation points
answered 2023-02-06T08:59:48.9833333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,746 Reputation points Microsoft Employee
0 answers

Unable to bind the selected image file in Blazor file upload

"This question is updated with minimal sample as my old question doesnt give more info" I am learning blazor and c# fundas with a simple app.This app will allow you tobrowse all kind of files including images.As all kind files we can browse, i…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,591 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.
795 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,009 questions
asked 2023-02-04T02:38:07.29+00:00
RAMAN RAGAVAN 46 Reputation points
commented 2023-02-06T08:57:18.38+00:00
RAMAN RAGAVAN 46 Reputation points
1 answer

Trying to upload excel file size 2 MB, when rows are more than 10000 then reading only 6000 rows and remaining rows are not added.

I am using Asp.net, using FileUpload control trying to read excel file and converting them into StringWriter. IF StringWriter data is processed directly in SQL query I can see all the rows are available but when I run through interface then I can see…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
636 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.
409 questions
asked 2023-01-25T05:26:17.8+00:00
Mohammed Tajudeen 0 Reputation points
answered 2023-02-06T08:53:00.22+00:00
Mohammed Tajudeen 0 Reputation points
1 answer

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.
636 questions
Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
370 questions
asked 2023-02-03T16:21:16.1+00:00
Muhammad Shawkat Khan 0 Reputation points
answered 2023-02-06T08:52:57.83+00:00
Tianyu Sun-MSFT 13,091 Reputation points Microsoft Employee
1 answer

MAUI Exception Line Numbers / Debug Symbols

When I log an exception in my MAUI App (Android), the stacktrace doesn't contain line numbers (only if the debugger is attached!). I need stacktrace line numbers in release builds without attached debugger. Is this still not possible? / do I still…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
908 questions
asked 2023-01-09T19:34:49.977+00:00
Chris Turk 1 Reputation point
commented 2023-02-06T08:51:44.6566667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee
1 answer

BrowserLaunchOptions's Style

Hi, Is it possible to set the properties of the BrowserLaunchOptions in the Resources's Style file? Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
908 questions
asked 2023-01-05T22:54:32.547+00:00
Jassim Al Rahma 1,126 Reputation points
commented 2023-02-06T08:50:40.38+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee
1 answer

Store and Read FontSize from Preferences

Hi, In my app I am allowing the user to set the FontSize of the control using Settings page and I am setting the FontSize this way: Preferences.Set("FontSize", SliderFontSize.Value.ToString()); But then in my Styles file, How can I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
908 questions
asked 2023-01-08T22:13:01.25+00:00
Jassim Al Rahma 1,126 Reputation points
commented 2023-02-06T08:49:57.0133333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee
0 answers

Maui create release version of App

Ok I have an app which I would like to create a release version. I change to Release mode. I then build, took about 5 times before it worked. The errors mean absolutely nothing to me so I just kept on trying as this seems to be the way VS…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
908 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,442 questions
asked 2023-01-07T19:24:12.69+00:00
Lloyd Sheen 781 Reputation points
commented 2023-02-06T08:48:46.0166667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee
1 answer

WebView: intercepting outgoing POST request body.

Hello, I have a login web app embedded in a WebView that returns id tokens through a POST request which I would like to intercept and handle in my .net MAUI application. I am currently able to intercept the outgoing POST request by using the WebView…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
908 questions
asked 2023-01-03T11:03:25.657+00:00
GregoryD 1 Reputation point
commented 2023-02-06T08:48:15.7033333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee
1 answer

How to configure Auto update in MAUI application ?

Hi, Consider we have developed a MAUI application, for deployment of this MAUI application in multiple machine we created a setup file / package following this link -…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
908 questions
asked 2023-01-20T05:42:27.7633333+00:00
Sanket Vinod Solanki 0 Reputation points
commented 2023-02-06T08:43:43.6333333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee
1 answer

.NET 7 MAUI Blazor MacCatalyst App Builds but Fails to Execute

Everything is current (brand new install of Visual Studio, etc). I can build and run the app on Windows and I can build successfully on Mac but when it goes to launch whether it is debug or release it simply says "Execution failed." Which…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
908 questions
asked 2023-01-18T16:27:32.8966667+00:00
Kenney Myers 0 Reputation points
commented 2023-02-06T08:42:28.2033333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee
1 answer

What is the MAUI equivalent of .NET Core's `_Layout.cshtml`?

You see, there's this image which needs to show up on every page of my MAUI app, and if it were a .NET Core app, I'd simply add it in _Layout.cshtml. However, with MAUI, I don't see a way of doing that easily. How would I go about this?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
908 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
636 questions
asked 2023-01-29T15:01:10.3966667+00:00
Uchchay Dugal 21 Reputation points
commented 2023-02-06T08:41:24.64+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee
2 answers

How to bind chart using web api in net maui

Hello to all I am working with chart controls in maui using syncfusion , and devexpess but both we can use only with license agreement.Is there any free chart control for maui. I want to bind my chart control by using web api. <dxc:PieChartView…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
908 questions
asked 2023-01-21T05:49:42.59+00:00
anil kumar 51 Reputation points
commented 2023-02-06T08:38:48.12+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,461 Reputation points Microsoft Employee
2 answers

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…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
219 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,442 questions
asked 2023-02-01T21:25:28.9633333+00:00
EunMin Lee 0 Reputation points
edited an answer 2023-02-06T08:37:05.19+00:00
Jack J Jun 19,381 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,820 questions
asked 2023-02-02T11:14:10.31+00:00
Wanderer in der tiefen Nacht 0 Reputation points
commented 2023-02-06T08:34:15.3266667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,821 Reputation points Microsoft Employee
0 answers

xamarin android emulator android > 9 ? how to make ?

Hello all, I have vs 2022 entreprise installed on my computer all works fine with emulator below android 9 .. i can push my app , debug ans so on .. I've try to make an android 10 / 11 and so on but impossible to start it ,, Of course i have the sdk who…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,820 questions
asked 2023-01-26T09:28:50.3866667+00:00
cristopheB 476 Reputation points
commented 2023-02-06T08:31:37.57+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,821 Reputation points Microsoft Employee