Microsoft Q&A

.NET

21,874 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

21,874 questions with .NET-related tags

Sort by: Updated
0 answers

How can I get an IUpdateEntry from a DbContext for a object that is read?

Hi all; I need to create a DbUpdateConcurrencyException and pass it the IUpdateEntry for the object I just had returned by dbContext.Events.FirstOrDefaultAsync(e => e.Id == entity.Id) I am throwing it if the rowversion has been updated over the value…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
633 questions
asked 2023-12-07T23:30:25.3266667+00:00
David Thielen 1,636 Reputation points
1 answer

Which should I use, Blazor WebAssembly or Blazor Server?

I'm trying to decide which option to choose. I plan to develop two applications using Blazor. The first one is intended to be a wiki-type application. The second one is an online manager for the Palladium RPG (specifically for Macross/Robotech RPG),…

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,213 questions
asked 2023-12-06T15:19:46.75+00:00
Laurent Guigon 226 Reputation points
commented 2023-12-07T23:03:14.89+00:00
Bruce (SqlWork.com) 49,051 Reputation points
0 answers

Will VS and Maui ever get a designer??

Hot reload is anything but Hot. Sometimes it does something but more often than not it does not. Then I am to determine if the change I wanted didn't happen because Hot Reload just decided not to do anything or perhaps my change was no good. VS is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,207 questions
asked 2023-12-07T20:44:58.8566667+00:00
Lloyd Sheen 1,261 Reputation points
commented 2023-12-07T21:54:18.7766667+00:00
Lloyd Sheen 1,261 Reputation points
2 answers

Blazor server app - sign out - reload warning messge after 230 seconds

we have a asp.net core mvc web application and added blazor server components and deployed to Azure App Service (Windows) its showing reload warning after 230 seconds. can anyone help/advise to resolve this issue?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,323 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.
1,213 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,074 questions
asked 2023-11-30T14:02:20.6733333+00:00
Manokaran, Murugesan (Muru) 22 Reputation points
commented 2023-12-07T21:48:11.3933333+00:00
brtrach-MSFT 12,181 Reputation points Microsoft Employee
1 answer

MAUI Blazor support for Azure Communication Services

After reviewing the Azure Communication Services Documentation for making one-to-one video calls between two users I did not see any support for MAUI Blazor. What is the current recommended approach for building a video call application using Azure…

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
544 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.
1,213 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,207 questions
asked 2023-11-30T04:05:32.8633333+00:00
74682213 0 Reputation points
commented 2023-12-07T21:44:55.9666667+00:00
brtrach-MSFT 12,181 Reputation points Microsoft Employee
1 answer

Getting CORS from Angular client when connecting .Net6 API for Azure SignalR service in default mode.

I am using Anular10, Azure SignalR service in Default mode and .Net6. API is connecting with connectionstring and return is Success. When Angular is connecting to API endpoint, it is showing CORS error. I have used .Net AzureSignalRSDK package and…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,323 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
111 questions
asked 2023-11-27T05:58:03.95+00:00
Saumyabrata Bhattacharya 21 Reputation points
commented 2023-12-07T21:25:46.2433333+00:00
brtrach-MSFT 12,181 Reputation points Microsoft Employee
0 answers

cannot change my Checkbox.

I am missing something. I have a property IsChecked. public partial class NewLecturePageViewModel(IAppService appService, IDataService<User> dataService, IAuthenticationService authenticationService) : BaseViewModel { [ObservableProperty] …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,207 questions
asked 2023-12-07T21:24:45.51+00:00
Eduardo Gomez 2,911 Reputation points
1 answer

Web Request gets terminated in the browser when the response data size limit gets exceeded certain limit.

I have an ASP .NET Core Web API that is hosted in Azure App service & the API is about to retrieve the large data from the server to the client. When I call the API from the Angular client App the request succeeds (returning a 200 status code) but…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,780 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
757 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,074 questions
asked 2023-12-05T11:47:02.34+00:00
Mathankumar Rajendran 20 Reputation points
answered 2023-12-07T21:05:56.0233333+00:00
Bruce (SqlWork.com) 49,051 Reputation points
1 answer

Where is my physical file?

Hello, I am back at visual programming after a number of years so iOS and Android are new to me. I am trying to creat an app to store some data and then hopefully recall it later. The following code creates a file and I can open it within the app, but I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,207 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.
9,497 questions
asked 2023-12-07T10:43:58.7633333+00:00
Paul Sanders 0 Reputation points
commented 2023-12-07T20:56:03.9133333+00:00
Lloyd Sheen 1,261 Reputation points
1 answer

Net maui send mail by server how to set background Image ?

I have seen codes as like as above but I could not understand what is server and need reference ? I have some text that also I need background image but I could not manage it can you help me thanks //// Create file attachment …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,207 questions
asked 2023-12-06T22:39:39.3266667+00:00
Sami 566 Reputation points
answered 2023-12-07T20:22:06.3133333+00:00
Bruce (SqlWork.com) 49,051 Reputation points
2 answers

simple question on Views

hi all, I have a sample project (NET 8, ASP.NET Core MVC) and I added a few Controllers and Views. Controllers: Home Controller, Group1Controller, Group2Controller Views: Home folder: Index.cshtml, Privacy.cshtml Group1 folder: Index.cshtml Group2…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,780 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,061 questions
asked 2023-12-07T18:40:22.73+00:00
elsvieta 206 Reputation points
answered 2023-12-07T20:16:56.6933333+00:00
Bruce (SqlWork.com) 49,051 Reputation points
1 answer One of the answers was accepted by the question author.

Stop timer when Quiz is completed

Here is my quiz app ,the current functionality is to capture if question is correct or wrong and give a score 9/10 , 10/10 etc and display the user "Questions incorrectly answered with answers:" Now I added timer too ,please suggest on how to…

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,213 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,207 questions
asked 2023-12-06T16:59:09.46+00:00
Maui Learner 120 Reputation points
edited the question 2023-12-07T20:07:12.4666667+00:00
Maui Learner 120 Reputation points
0 answers

When will .NET 8 (Early Access) be available on Azure Government?

Currently .NET 8 (Early Access) is available on Azure Commercial. I like to know when will .NET 8 (Early Access) be available on Azure Government?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,323 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,780 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,074 questions
asked 2023-12-07T00:52:36.1866667+00:00
Arman Ghazanchyan (Contractor) 0 Reputation points
commented 2023-12-07T19:56:30.2133333+00:00
Grmacjon-MSFT 13,041 Reputation points
0 answers

code snippet for BindableProperty

I am creating a BindableProperty snippet, so far, I have this. CodeSnippet Format="1.0.0"> <Header> <Title>BindableProperty</Title> <Shortcut>bp</Shortcut> <Description>This will create a…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,108 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,207 questions
asked 2023-12-06T17:09:40.53+00:00
Eduardo Gomez 2,911 Reputation points
edited the question 2023-12-07T19:13:02.4366667+00:00
Eduardo Gomez 2,911 Reputation points
0 answers

Xamarin.Essentials.Vibration.Vibrate(milliseconds) not working.

We have upgraded our device to Android 13 but our app is still targeting to Android Api 29. There is some dependencies due to which we are not targeting the 33 API version. After upgrade Vibration stops working which was working with Android 10 OS is…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,208 questions
asked 2023-12-07T17:54:09.0166667+00:00
anubhav tyagi 0 Reputation points
2 answers One of the answers was accepted by the question author.

Difference between "private instance fields" and "private fields"

According to this Microsoft document, specific conventions for naming have been written, and the meaning of the following two items is not clear to me. 1: Use camelCase for method arguments, local variables, and private fields. 2: Private instance…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,323 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.
9,497 questions
asked 2023-12-05T16:44:14.7166667+00:00
Reza Jaferi 271 Reputation points
commented 2023-12-07T17:25:12.9433333+00:00
Bruce (SqlWork.com) 49,051 Reputation points
1 answer One of the answers was accepted by the question author.

What is a proper way decode frame ot image bitmap

Dear Gurus! I use RtspClientSharp for receiving frames from the remote Ip camera in Blazor server Application. And now I need to convert the received frame to a bitmap (imageByte in the next expression) for use as a source in the <img> tag ,…

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,213 questions
asked 2023-12-04T08:02:57.6066667+00:00
A Terentiev 45 Reputation points
commented 2023-12-07T17:20:31.68+00:00
A Terentiev 45 Reputation points
0 answers

Flyout behavior

I was able to make the flyout on desktop to be always opened. FlyoutBehavior="{OnIdiom Desktop=Locked, Phone=Flyout}"> this is ok, but if we take a look at this app the user has the ability to close it in…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,207 questions
asked 2023-12-07T00:02:34.49+00:00
Eduardo Gomez 2,911 Reputation points
commented 2023-12-07T17:11:42.6866667+00:00
Eduardo Gomez 2,911 Reputation points
0 answers

We have System.Configuration.ConfigurationManager 5.0.0 nuget package and Microsoft.Data.SqlClient 4.1.0 nuget package configured in an azure function to establish the connection with database. For that we are trying to run await sqlConnection.OpenAsync(

We have System.Configuration.ConfigurationManager 5.0.0 nuget package and Microsoft.Data.SqlClient 4.1.0 nuget package configured in an azure function to establish the connection with database. For that we are trying to run  await…

Azure SQL Database
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,713 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,780 questions
asked 2023-12-07T12:30:15.85+00:00
Soubhagya Patra 0 Reputation points
commented 2023-12-07T17:04:45+00:00
MuthuKumaranMurugaachari-MSFT 18,341 Reputation points
0 answers

Unable to debug on iOS device

Not entirely sure if this is a result of my upgrade to .net 8 or not but I am not been able to debug on my iOS device any longer. I see the app deploy and the splash screen comes up for 20 seconds then the debugger stops and the app on the phone closes.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,207 questions
asked 2023-12-05T22:34:48.7433333+00:00
Daniel Manchester 0 Reputation points
commented 2023-12-07T16:53:48.67+00:00
Daniel Manchester 0 Reputation points