Content
Blazor Server - How to get the latest uploaded file?
Hi there, In my Blazor Server application, I am uploading an Excel like this; public async Task<int> UploadStocksFile(IFormFile file) { var untrustedFileName = file.FileName; var totalRows = 0; var duplicates = 0; …


How to fix "WriteCodeFragment" error when build .net core
When I run .net core api project "6.0" on mac I got this error " usr/local/share/dotnet/sdk/7.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(5,5): Error MSB4018: The "WriteCodeFragment" task…


Json bringing back unwanted properties
WebAPI Core (.Net 6) I have a Model class which contains multiple properties. The properties can have empty values. Only the ones i need should be produced. public class ClientFocus { public string? Item {get; set;} public string?…


Blazor Reconnection Issue After Locking Smartphone
I'm experiencing a problem with my Blazor Server application and I need your help. When I access my website on a smartphone and lock the device for some time, upon unlocking it, seems that the Blazor connection gets lost at that moment and tries to…




form responses showed in website
How do I make a website that uploads automatically the answers of a form?


When Microsoft will release Entity Framework 6.x (.NET Full framework) having Microsoft.Data.SQLClient support?
We are migrating our .NET Full framework 4.8 based Data Access Layer projects from System.Data.SQLClient to Micosoft.Data.SQLClient. While it is very straightforward for AD0.NET based projects, we do have some projects where we are also using EF 6.0. As…


VB.NET Entity Framework Using multiple databases
I'm trying to setup Entity Framework 6 in my VB.Net desktop application. I can get it working fine using Production database, but, this is a program where you can login to either production or the test database. When I created the model, I set it up to…


System.Net.Http.UnsupportedMediaTypeException: 'No MediaTypeFormatter is available to read an object of type 'IEnumerable`1' from content with media type 'text/html'.'
I am getting Unsupported Media Type Exception whenever I am doing a get request on MVC side on [http://localhost:52541/Employee/Index] . Please check my code and help me to solve the issue EmployeeController.cs from MVC using System; using…


.net maui change Android and iOS overview icon
In .net maui Android when the "Overview" button in clicked an Icon is shown. How do I change that icon ? On iOS how to change the ".NET" to something else ?:


How to fix bug of iOS of KeyboardOverlapRenderer
AppDelegate.cs KeyboardOverlapRenderer.Init(); After opening the website with webview function, when inputting with the text keyboard, it is difficult to enter the content as it rises above the content. AppDelegate.cs: public override bool…


No forms appearing in custom template VS 2022 Mac or PC
I have been looking over the material for the new templating engine, https://learn.microsoft.com/en-us/dotnet/core/tutorials/cli-templates-create-item-template and https://github.com/dotnet/templating/tree/main, and have created a .template.json file…


Identity Server 4 Not Login Showing 403
I am getting error after clicking login 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied. In development mode it working fine but after publishing the project…


I need to hold the selected ListView Item in a temporary variable.
I need to hold the selected ListView Item in a temporary variable so that the user can Cancel an Edit operation and the ListView Item will revert back to its original values. I can't understand why Temporaryselectedudf changes to the SelectedUdf value.…


How to fix "The target process exited without raising as CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core"
My application console application is build on .net core 7 and gave error when running on docker container, several other console applications running properly but one gave problem. Docker container logs given below: Targer OS is linux. I have tried…


How do I fix the error: "Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'dotnet-aspnet-codegenerator-design, Version=7.0.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'."
The above error happens when I try to create a scaffold for the identity, I have installed all the necessary packages that are needed for code generation but it still keeps giving me the same output. I also tried rebuilding the project and restarting…


Xamarin Forms: Implement push notification tapping on android platform
I have implemented push notification on my Xamarin forms application using FCM. My code [Service(Enabled = true, Exported = true)] [IntentFilter(new[] { "com.google.firebase.MESSAGING_EVENT" })] public class FirebaseNotificationService :…


Maui android debugging exception in correct situation
Hello all in the middle of debug stepping in a correct situation suddenly I got this ex. what this mean and what I need to do. Thank you very much.


C# ASP.NET MVC - How to retrieve all values from a from that can have unknown input field count
I have a simple form, that allows the user to edit a drop down list that exists within another form. In this the user can view the current drop down list values, edit them, delete them or create more. This opens this form in a modal: Here you can edit…
ChannelFactory resolving an address for a different tenant
We have a multi tenant architecture in the cloud. I have noticed a strange behavior where often App1 of tenant 1 calls App2 of tenant 2. This is not a frequent behavior and happens few times a day. Below is a generic code snippet that calls App2 from…

