Content
Linq query and violation of inserting null in database
Hello All, I have the following two model classes: public partial class EmployeeInfo { public int EmployeeInfoId { get; set; } public string LastName { get; set; } = null!; [DisplayName("First Name")] public string FirstName { get; set; } =…


Fix database errors in visual studio
The code for selection of a row in data grud view doesnt work for me (Microsoft visual studio 2019)


'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.)
I want to receive and display push notifications on my iPhone/iPad but I get the following message in Visual Studio for Mac: 'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.) I use .NET…


How to convert xml to style so that browser can render html from xml when using RSS
I have downloaded a app called MessageBoard and trying to configure RSS Feed to output serialised data to browser. The result display a error message with code written in xml format. This XML file does not appear to have any style information associated…


LINQ query to validate the selected day is not in a list of other dates
Hi , I want to validate a selected date that does not fall in a list of dates from other table. Basically when user selects a date from calendar,i need to validate that date is not in list of dates fetched from a table. How can i acheive this via LINQ…


Failed to compile third-party dynamic libraries using AOT in the MAUI(Andriod) project?
Create a MAUI APP project with VS2022(Version 17.4.4) install TencentCloud.dll from nuget; direct publish project, it takes very long,long time; about three hours. finally compiler…
How to use UIWebView in the Xamarin.Forms iOS part?
Hi, I have a Xamarin.Forms application. I integrated Airwatch SDK (WorkspaceOne.Forms) into the iOS part. Now, I am trying to app tunneling with Airwatch SDK. For this reason I have added ModernHttpClient Handler to all of the HttpClients on my project.…


.net upgrade assistant added net7.0-windows for asp.net MVC webapplication during migration
When I used .net upgrade assistant tool convert my webapplication with asp.net MVC with .cshtml views of .net framework 4.8 to migrate to .net 7 then the tool included .net 7-windows as the target framework. this is the same case for projects of type…
Xamarin Form Add Multiple Binding
Please I need help. I have my Xamarin Form app that works very well with DataBinding to its View Model named OrderDetailViewModel. But today I have to add another DataBinding field in line 10 Binding OrderStatusMessage that is bind to its Xaml.cs file…


Failed to create release build in iOS due to bitcode issue of Plugin.Firebase in .net MAUI having dotnet 7.
Have implemented fcm push notification in MAUI having .net version 7 from the below link : https://cedricgabrang.medium.com/firebase-push-notifications-in-net-maui-ios-2f4388bf1ac. For testing , creating release build to test on…


Unable to connect to .NET 7 GRPC service on running on Linux App Service
I have a GRPC service written in .NET 7. It works without issue locally. To publish it to an app service, I followed the instructions at https://github.com/Azure/app-service-linux-docs/tree/master/HowTo/gRPC/.NET/.NET%207 It says it's working. I get…


"dotnet" is not recognized
I have installed a fresh Windows10, and downloaded the "dotnet-install.ps1" from Microsoft: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script And I ran it with a powershell window: > .\dotnet-install.ps1 -Channel 7.0…


Session is not clearing after signing out from application razor pages
Hi, I want to clear my sessions,once i logout from my application. Now when i logout from application and click the back button,its navigating to the previous page. My logout button is given as a menu in _Layout page like this <li…


Executing Stored Procedures based on condition in Razor Pages
Hi, I have a function that executes two stored procedures based on a condition. Stored procedure for the first condition works fine, but stored procedure for the second condition fails. public async Task<JsonResult>…


.NET Core API Framework Warning
Hi All, I am developing an application using .NET Core with angular client. I am exporting the data to excel and generating the file in C# .NET Core. I am using a nuget package for the same. After installing the nuget package in the project I am getting…


how to replace retired flashupload functionality with fileupload for single image in asp.net?
how to replace retired flashupload functionality used for uploading multiple images with fileupload for uploading single image in asp.net? Since flashplayer has reached end of support, I need to replace with existing alternative of fileupload control by…


Why does the onclick event not work, in my razor pages hosted blazor component, in .net 7.0?
I've used the following code in multiple blazor web assembly applications hosted on a razor pages page under .net 5.0 and .net 6.0 before now. An application I was forced to upgrade to .net 7.0 has rendered the onclick command completely useless What…


There were deployment errors. Continue? (MAUI - Android Emulator Problem)
I am new to MAUI. when I run the android emulator this error popup. But with windows Machine, it works fine. I reinstall visual studio and it still shows this error. Please Help me to solve this problem or give alternative solutions.…


When Wpf datagrid apply group, the application becomes very slow.
My wpf application is build with .net framework 4.5.2, when datagrid apply group, in some computers the wpf application becomes very slow, but other computers do not have this problem. If the wpf application build with .net framework 4.8, all computers…


.net core 7 web api very slow first call more that 32s
Hi, I have a problem in EF7 with core 7 web api. The first call take more that 30s and the second call take 60ms what is good. Any solution for that? Thanks

