24,360 questions with .NET-related tags

Sort by: Updated
2 answers

EF Core 3.1 - System.InvalidOperationException: 'The entity type 'Pntbec03' requires a primary key to be defined. If you intended to use a keyless entity type call 'HasNoKey()'.'

Hello . I need to handle a EF Core Entity relating to a table , but without having EF managing all its columns , but just a subset of them. I have scaffolded the small database to which the table belongs into a DbContext , and I though I could create…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 questions
asked 2024-05-29T13:46:26.23+00:00
leo del ciello 66 Reputation points
commented 2024-05-31T08:41:09.6033333+00:00
Hongrui Yu-MSFT 420 Reputation points Microsoft Vendor
1 answer

How to play a web mp4 file with headers in MAUI?

I'm trying to player a web media with community's mediaelement,but there isnot any ways to set http headers. In Android, I can use the factory property in exoplayer,but in windows,I can't find any document about using winui's mediaplayer to player a…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-16T06:52:52.46+00:00
尼龟 杰 150 Reputation points
commented 2024-05-31T08:13:11.4366667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 37,191 Reputation points Microsoft Vendor
1 answer

How to bring app to the top of all other apps in .Net MAUI mac catalyst

I want to bring the application to the top of all other apps, but i have tried all the below codes, but none of them working as expected. code snippet UIWindow window = UIApplication.SharedApplication.Windows[0]; if (window != null) { …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-13T10:22:22.3533333+00:00
Kiran Mohanty 0 Reputation points
commented 2024-05-31T08:12:17.89+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 37,191 Reputation points Microsoft Vendor
1 answer

The type Prism not found in MAUI (prism.form dll not found in MAUI)

public partial class App { private static readonly string StartPage = DebugAppConfig.StartupPage; public App(IPlatformInitializer initializer = null) : base(initializer) { } private Maybe<Uri> LaunchUri { get; set; } =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-01T15:07:58.3333333+00:00
Debasis Patra 0 Reputation points
commented 2024-05-31T08:02:16.62+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 37,191 Reputation points Microsoft Vendor
1 answer

building simple MAUI app causes an error

Type "Shell" was not found. Verify .... It is literrally the first line in AppShell.xaml. I have just created a new application and not edited any pages. The defult pages should be correct and buildable in sample app.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-06T22:11:05.73+00:00
Tariq Roshan 0 Reputation points
commented 2024-05-31T08:01:41.8966667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 37,191 Reputation points Microsoft Vendor
1 answer

Carousel not changing items in real-time, blank slide, grey bar at the bottom on iOS

I am binding an ObservableCollection to a Carousel view and displaying images and text. What I am noticing is that if I change the contents of the ObservableCollection, the Carousel doesn't reflect the change in realtime. I have to swipe through a few…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-29T19:06:17.7066667+00:00
Reza Mohamed 1 Reputation point
commented 2024-05-31T07:53:42.4266667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,356 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

In ScrollView, first entry is becoming focus. i need to stop it.

<ScrollView Grid.Column="1" x:Name="myScrollView" WidthRequest="500" > <Border StrokeThickness="2"> <StackLayout> <Entry x:Name="MainEntry"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-30T18:40:37.5966667+00:00
Sowndarrajan Vijayaragavan 390 Reputation points
accepted 2024-05-31T07:44:15.7633333+00:00
Sowndarrajan Vijayaragavan 390 Reputation points
1 answer

How to check crash log sent by Apple review team for iOS .Net MAUI application.

We have developed an application using .Net MAUI in Visual Studio 2022 on Windows machine. Application is working properly on android devices and also working on iPhone device. We upload an application version on Apple App Store, but it was rejected with…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-27T14:03:37.5866667+00:00
Bhushan Akole 0 Reputation points
edited a comment 2024-05-31T07:17:58.9966667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,356 Reputation points Microsoft Vendor
2 answers

Request targets an app that is not in allowed receiving apps list by WNS

Hello, I have a problem during sending WNS raw notifications to my app on client's computers. I receive this error sometimes, but not for all my clients: 2024-05-29 19:16:06.244 +02:00 [WRN] X-WNS-Debug-Trace: BY3PEPF000195A1 2024-05-29 19:16:06.245…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
735 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,497 questions
asked 2024-05-30T16:48:23.7+00:00
Michał Łeptuch 6 Reputation points
answered 2024-05-31T07:02:49.9666667+00:00
Neuvi Jiang 385 Reputation points Microsoft Vendor
1 answer

How To Download .NET Runtime For MSIX Or Appx?

I Want To Use MSIX Hero On My PC And It Requires .NET Runtime 6.0 but i can run exe's for some reason i cant figure out. i am not looking into figure out how to run exes i just want to know or if there is a way do get .NET Runtime 6.0 for msix (bundle)…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
735 questions
asked 2024-05-20T20:10:07.3866667+00:00
QuickSilver 0 Reputation points
edited an answer 2024-05-31T06:53:20.3733333+00:00
Jeanine Zhang-MSFT 9,341 Reputation points Microsoft Vendor
0 answers

How to remove page navigation animation in .Net MAUI?

I am using Appshell for navigation. Appshell.Xaml.cs Routing.RegisterRoute(nameof(LoginPage), typeof(LoginPage)); In Viewmodel relay command i am call the below AppShell.Current.GoToAsync(nameof(LoginPage)); Animation is moving from left to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-21T05:43:55.4466667+00:00
Sowndarrajan Vijayaragavan 390 Reputation points
commented 2024-05-31T06:51:19.05+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 69,921 Reputation points Microsoft Vendor
1 answer

Certification configuration: I'm not able to verify my domain

Hello, after developing a Blazor Web App I tried to connect the app with my own domain. So I have to verify my domain to bind the certificate to my app. First step (import certificate to key fault) seems to work (step is checked). But I do not see the…

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,435 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,070 questions
asked 2024-05-30T11:31:18.76+00:00
Stefan Brieger 0 Reputation points
commented 2024-05-31T06:48:40.8566667+00:00
Stefan Brieger 0 Reputation points
1 answer

publish app in mac

Hi, How do i publish my app in mac ? In windows i did: dotnet publish -f net8.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-29T07:47:18.4366667+00:00
Dani_S 2,906 Reputation points
commented 2024-05-31T06:46:24.4266667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 69,921 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to implement Session time out in .NET MAUI?

Target platform - Widows We need to close the application, if the application is idle for longer then 30 minutes

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2023-07-05T10:00:36.7433333+00:00
Sowndarrajan Vijayaragavan 390 Reputation points
commented 2024-05-31T06:40:15.0233333+00:00
Ashutosh Mehere 0 Reputation points
1 answer

.Net Maui, ability to access external sd card

With the removal of read and write permissions to external storage, is there any way to access external SD cards? My app normally relies on being able to automatically backup data to external SD cards in the event the tablet dies or is broken. Is there…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-15T16:07:34.8933333+00:00
Phunction 206 Reputation points
edited a comment 2024-05-31T06:31:12.02+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 69,921 Reputation points Microsoft Vendor
0 answers

Webrequest populate UserAgent and Headers

asp net version 2.0 asp.net forms with vb.net Dim strData As String = String.Empty Dim wr As HttpWebRequest = Nothing Dim wrRes As HttpWebResponse = Nothing wr = DirectCast(WebRequest.Create(URi),…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,612 questions
asked 2024-05-31T01:20:28.4933333+00:00
icm63 0 Reputation points
commented 2024-05-31T06:15:40.6466667+00:00
Lan Huang-MSFT 26,761 Reputation points Microsoft Vendor
1 answer

ArgumentNull Exception in .NET Framework 4.8 "System.Security.SecurityElement.FromString(String xml)"

I get an "ArgumentNullException" from the .NET Framework 4.8, when the calling code makes a Code-Access Policy "Demand" request (attribute usage see below) The program is a WinForms application. The stack-trace is: at…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 questions
asked 2024-05-22T12:50:11.1666667+00:00
Liedtke, H 0 Reputation points
commented 2024-05-31T05:59:59.5466667+00:00
Jiale Xue - MSFT 38,101 Reputation points Microsoft Vendor
1 answer

How can I change BackgroundColor of CustomLabel in Selected Action State Event CreateCustomLableNavigationState method Similar to ListviewItemSelection Event

<ListView x:Name="listView" ItemsSource="{Binding ItemList}" RowHeight="43" Margin="0,-5,0,0" CachingStrategy="RecycleElement"> <ListView.ItemTemplate> …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,305 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
773 questions
asked 2024-05-30T14:41:47.06+00:00
G, S 0 Reputation points
answered 2024-05-31T05:58:18.93+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 37,191 Reputation points Microsoft Vendor
0 answers

how to fix this -An error occurred while accessing the file from the web. Please try downloading and opening the file locally.

I'm trying to configure automatic updates in via appinstaller, I had configured my appinstaller and when I open that I'm facing this issue. here's my appinstaller: <?xml version="1.0" encoding="UTF-8"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-05-30T11:26:34.6333333+00:00
Vaibhav Methuku 80 Reputation points
commented 2024-05-31T05:55:56.2566667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,356 Reputation points Microsoft Vendor
1 answer

Maui MediaPicker.Default.CapturePhotoAsync windows doesn't display camera

When I run the app is the VS 2022 on Windows 10 the MediaPicker.Default.CapturePhotoAsync method displays the camera and allows me to capture a photo. When the app is published and installed on Windows 10 the MediaPicker.Default.CapturePhotoAsync method…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,866 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,018 questions
asked 2024-04-30T16:15:24.1733333+00:00
Grant Schaffer 25 Reputation points
commented 2024-05-31T05:44:51.6+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,356 Reputation points Microsoft Vendor