24,714 questions with .NET-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

How to change code "Foreach" to Loop.

@page "/" @rendermode InteractiveServer @inject NavigationManager Navigation <h1 style="color: blue;">Anda!!</h1> <p></p> Welcome to your new app. <p></p> @foreach (var image in images) { …

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,470 questions
asked 2024-06-28T14:53:36.5233333+00:00
MIPAKTEH_1 260 Reputation points
accepted 2024-06-30T05:34:39.3666667+00:00
MIPAKTEH_1 260 Reputation points
1 answer One of the answers was accepted by the question author.

can not set background color in .net ios?

I created .net ios (not xamarin.ios and MAUI). Window = new UIWindow(frame: UIScreen.MainScreen.Bounds); var rootView = new MainController(); Window.RootViewController = rootView; Window.MakeKeyAndVisible(); in MainController View.BackgroundColor =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 questions
asked 2024-06-26T04:57:45.58+00:00
mc 4,006 Reputation points
accepted 2024-06-30T02:29:50.17+00:00
mc 4,006 Reputation points
1 answer One of the answers was accepted by the question author.

How to debug ASP.NET Core's source code using Rider?

So, I'm trying to debug ASP.NET Core's source code (specifically Mvc slnf as it's what I mostly use in my day to day) using Rider but every time the debugger hits a break-point it tries to start for 1-2 seconds and then process stops/crashes. I've also…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,328 questions
asked 2024-06-29T18:10:45.0966667+00:00
mario 20 Reputation points
edited a comment 2024-06-29T21:05:49.2266667+00:00
mario 20 Reputation points
2 answers

Blazor web app is not working for any events, button click or dropdown selection in .NET 8

I have the following component, but none of the events are being triggered in .NET 8. I suspect this issue is due to the new rendering modes introduced in .NET 8. @using MyFirstBlazorWebApp.Components.UI <PageTitle>Dynamic Marvel…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,470 questions
asked 2024-06-29T08:45:02.86+00:00
Rikam Palkar 41 Reputation points
edited an answer 2024-06-29T19:44:52.4966667+00:00
Bruce (SqlWork.com) 59,966 Reputation points
1 answer

how to recognize invoice/tax image using camera ?

I am using .net ios. I want to use invoice /tax recognize image . you may say I can use VisionKit. but it require IOS 16. I want to use may iOS 11? how to do it in oc(not swift)?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 questions
asked 2024-06-28T15:28:37.0866667+00:00
mc 4,006 Reputation points
edited an answer 2024-06-29T19:17:49.7033333+00:00
Bruce (SqlWork.com) 59,966 Reputation points
0 answers

How to fix typemaps.x86_64.ll Xamarin.Android.Common.targets(

Hi. When compiling a project to a virtual android device, an error occurs. It works fine on a physical device. I have used many virutal devices, Api 30-34, x86-64, nowhere works. I installed the Android SDK through Rider. Applications in Android Studio…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,317 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 questions
asked 2024-05-22T11:37:21.8733333+00:00
Rinat Sibogatov 0 Reputation points
commented 2024-06-29T17:13:28.6533333+00:00
Shuqing Wang 0 Reputation points
1 answer

Only one app running in MAC?

Hi, Does this code work on MAC, only one app running ? Thanks, public partial class App : Application { private static Mutex mutex = new Mutex(true, Assembly.GetEntryAssembly().GetName().Name); public App() { if…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 questions
asked 2024-06-26T12:02:14.2933333+00:00
Dani_S 3,186 Reputation points
commented 2024-06-29T16:06:24.9833333+00:00
Bruce (SqlWork.com) 59,966 Reputation points
0 answers

EF Core .Net 8 error after TLS 1.0 was disabled.

The admins where I work have disabled TLS 1.0 but now all of a sudden, my .Net 8 app is getting the following error: Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
717 questions
asked 2023-12-05T17:06:22.9333333+00:00
Lange Gregory 20 Reputation points
commented 2024-06-29T13:43:40.4933333+00:00
Umut Çömlekçioğlu 0 Reputation points
1 answer One of the answers was accepted by the question author.

Is it possible to use await in an event?

I tried to use await in this event: CrossMediaManager.Current.MediaItemFinished += (s, e) => { customDialog.Cancel(); await ResumeSong(7, TimespanIngamemenuPosition); }; public async Task<bool> ResumeSong(int resumesong,…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,806 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 questions
asked 2024-06-27T13:16:09.2433333+00:00
Kim Strasser 811 Reputation points
accepted 2024-06-29T12:44:02.2+00:00
Kim Strasser 811 Reputation points
2 answers

Is it possible to play videos on Android with a native video player?

In one project the following code for Xamarin MediaManager works. But I have another project where I use the same code and there it is not working. The problem is that the video is not correctly displayed in full screen because there is a small free area…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 questions
asked 2024-06-22T10:01:05.73+00:00
Kim Strasser 811 Reputation points
commented 2024-06-29T12:42:21.44+00:00
Kim Strasser 811 Reputation points
1 answer

Send email from a .Net Framework Winforms application and service using Microsoft accounts.

Hello. We provide a .Net Framework Winforms application with a service. Both share code which allows our customers to send email from their own email accounts, currently using MailKit, although we could use another client if necessary. Where they want…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,867 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 questions
Microsoft Entra
asked 2024-06-28T11:56:45.4266667+00:00
Fortecho Solutions Ltd 0 Reputation points
commented 2024-06-29T11:25:47.6733333+00:00
Fortecho Solutions Ltd 0 Reputation points
1 answer One of the answers was accepted by the question author.

Executable for Iphone

I use the below command to generate apk file for android . keytool -genkey -v -keystore bmicalc.keystore -alias key -keyalg RSA -keysize 2048 -validity 10000 dotnet publish -f:net7.0-android -c:Release /p:AndroidSigningKeyPass=maui@23 …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 questions
asked 2024-06-28T13:17:43.84+00:00
Maui Learner 560 Reputation points
accepted 2024-06-29T07:32:00.4033333+00:00
Maui Learner 560 Reputation points
1 answer

How to find where .pkg file store the installed app

I Use the following command to create a .pkg: .NET CLICopy dotnet publish -f net8.0-maccatalyst -c Release Publishing builds the app, and then copies the .app to the bin/Release/net8.0-maccatalyst/ folder or the .pkg to the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 questions
asked 2024-06-25T09:23:23.6533333+00:00
Dani_S 3,186 Reputation points
edited an answer 2024-06-29T06:38:41.47+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,321 Reputation points Microsoft Vendor
1 answer

Problem with rewrite the Backgrounding event

Hi, In continue to https://video2.skills-academy.com/en-us/answers/questions/1690214/register-close-button-in-mac All my work in pages stop working. Working with http + tasks. it fire the close button event and close the app. Thanks in advance,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 questions
asked 2024-06-18T06:41:00.6+00:00
Dani_S 3,186 Reputation points
commented 2024-06-29T05:51:03.6266667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,321 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

show only filter record data in asp.net

Hello This is my MS SQl Data SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Table1]( [ID] [int] IDENTITY(1,1) NOT NULL, [F1] [varchar](50) NULL, [F2] [varchar](50) NULL, [F3] [varchar](50) NULL, [F4]…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,392 questions
asked 2024-06-26T18:08:46.73+00:00
RAVI 996 Reputation points
accepted 2024-06-29T05:35:53.3433333+00:00
RAVI 996 Reputation points
1 answer

Problem with DependencyService in .NET MAUI for iOS: Cannot get an instance of IFileHelper, always return null

I'm working on a .NET MAUI application that uses DependencyService to get the local path to a file on iOS. Although I have followed the instructions to correctly register my IFileHelper implementation, I always get an exception stating that an…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 questions
asked 2024-06-28T08:50:23.5133333+00:00
Gerson Jose Rodriguez Quintero 51 Reputation points
answered 2024-06-29T04:20:30.33+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,321 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to resolve InvalidCastException error in sample code listed in "Use an EventCallback to handle events across components" Blazor training module.

This question is related to the following Learning Module

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
16 questions
asked 2024-06-28T09:12:00.0733333+00:00
Ade Ade-Hall 25 Reputation points
edited the question 2024-06-29T02:01:21.3733333+00:00
Pradeep M 1,385 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

https://try.dot.net not working?

Hi, I'm following the tutorial and link to https://try.dot.net from page https://video2.skills-academy.com/en-us/training/modules/dotnet-introduction/4-build-your-first-app isn't working. This question is related to the following Learning Module

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
8 questions
asked 2024-06-27T15:11:34.16+00:00
Dessauvages Cathy 20 Reputation points
edited the question 2024-06-29T01:55:50.9866667+00:00
Pradeep M 1,385 Reputation points Microsoft Vendor
2 answers

How to detect a device

Hi, I'm currently working on .net core web API project . There is a moment that I can't figure out. I had to detect the device which user used when signed in. I used "user-agent" first but this only says if its smartphone, Desktop etc. And only…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,328 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.
10,550 questions
asked 2024-06-27T20:25:13.6533333+00:00
Atilla Rüstəmli 20 Reputation points
commented 2024-06-29T00:27:08.61+00:00
SurferOnWww 2,326 Reputation points
1 answer One of the answers was accepted by the question author.

Navigation help with .Net Maui app

I am trying to figure out a way to navigate. Right now I have the main page as a shell page with some content, from here I launch Tabbed Page sections, there are several and each page contains 5-6 tab pages. This does not work in Android as you can't…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 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.
10,550 questions
asked 2024-06-27T20:48:22.0333333+00:00
Phunction 226 Reputation points
accepted 2024-06-28T23:30:30.77+00:00
Phunction 226 Reputation points