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; } =…


Entity Framework 框架问题
dbcontext不同的实例,savechanges被互相影响怎么回事


Unable to Delete document using One drive API in C#
I am unable to delete a document by using one drive API in ASP.Net(c#) if the document is open. How to check the document is already open by using one drive API. Please help.


iOS application getting crashed "Could not set up parent class, due to: Invalid generic instantiation"
In a .Net MAUI project app is getting crashed when I am deploying it on device. below is the exception I am getting Any idea why this is happening always?


I'm getting code first approach validation error can you help me
I add error massege and I update database with (datanase-update -Force).but not working error massege. why ?


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.…


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…


Java.Lang.IllegalArgumentException Message=No view found for id 0x2 (unknown) for fragment ShellItemRenderer{8ff985} (8d59f552-5e3e-48c3-a91e-e50041b57719 id=0x2)
I am using Version VS 17.5.0 Preview 2.017.5.0 Preview 2.0. In this when I debug it with my mobile it gives me error Java.Lang.IllegalArgumentException Message=No view found for id 0x2 (unknown) for fragment ShellItemRenderer{8ff985}…


Button click event is not firing
Greetings again dear experts. I have an .aspx page with two sections One section allows our users to enter records displays existing records for update. The second allows users to preview the records, whether insert or update before submitting to the…
iText7 PDF generation help needed
Hello friends, In my Blazor Server application, I am generating a PDF like this. But requirements changed, I need to insert a table and logo like this sample. How can I manage it? InkedScreenshot 2023-01-31 at 19-47-25 Purchase Order -…
How to find pc is hacked or not
i nee to know my pc is haced or not


How should a service exit to prevent an error?
I'm developing a Windows service in C#, .NET 6.0 following the instructions on https://learn.microsoft.com/en-us/dotnet/core/extensions/windows-service The service runs as expected, but when I stop the service, it logs an error A task was…


how to fix AutoFixture.ObjectCreationExceptionWithPath: AutoFixture was unable to create an instance from AutoMapper.IMapper
i have below code for xunit testing in asp .net core using AutoFixture.Xunit2;using AutoMapper;using FluentAssertions;using Moq;using MyRBV.AppService.Cars;using MyRBV.AppService.Contract.Cars;using MyRBV.DomainService.Cruds;using…


How to convert existing solution to use Shell
I have a solution that does not use Shell. I would like to change it so that it uses shell. I created a new solution and copied the AppShell.xaml and .cs. I changed the namespace to the correct namespace. I then changed the app.xaml.cs to: …


What is projectname.iOS file which is huge in size created using Xamarin ios shown inside payload
When we create IPA in Xamarin using visula studio and we check the contents of the IPA using below method. Create IPA. Change the extension of IPA from .ipa to .zip Payload folder will get created In the Payload folder Projectname.iOS file will be…


Get an ILogger instance for App Insights from ServiceCollection in a WebForms .NET Framework application
We want to get an ILogger instance so that it can be passed to other library. We tried below, but the ILogger instance does not log into Application Insights. It logs into Event Viewer successfully. We have added the necessary packages i.e.…


Why do I get a resource not found when disabling Hot Reload
If I disable hot reload I get a Gray950 resouce not found. This is such an indication of the major problems that VS 2022 has. There is no relationship between the two. The only reference that I could find about Gray950 is that it is a resource used in…


HttpClient fails to establish SSL connection with server configured with RSA 4096 key.
I am using .net framework 4.7 in WinForms application and using HttpClient for SSO login, When I call server url with using HttpClient then initial handshaking fails with following error. The request was aborted: Could not create SSL/TLS secure…


Why I can't Fake-Mock "System" in .net core 6.0(VS Enterprise 2022)
Why I can't Fake-Mock "System" in .net core 6.0(VS Enterprise 2022), I don't know what happened? I was trying to use "using System.Fakes; " , But it alert "missing an assemly reference" after following …


Net Maui when I clicked ( 3 times ) the button multiple page ( 3 times ) comes that has to be only one page..
Net Maui when I clicked ( 3 times ) the button multiple page ( 3 times ) comes that has to be only one page.. any solution ? Thanks