Content
LINQ and VB 2015 : Select Distinct in Sub-List of Objects...
Hi, this is a simple example about my task. I have a List of Objects, let's say a group of Persons and each Person has a Property which is a List of other type of Objects, let's say Colors. I'd like to get a Distinct List of all Colors kept by all…
Multiple types of Distributed Cache in ASP.NET Core
I would like to use Redis and In-Memory for IDistributedCache dependency injection. Is this possible? If so, how would you go about configuring this in Startup.cs?


Blazor default template application issue
Hi all. in the default template application of blazor when clicking the button the count variable is increasing by 1. but when navigate to other component and then return to the Counter component the count value is reset to 0 what changes I need to do in…
issue in opacity of the parent form and panel
Hi , my other problem is there is a scenario in which i have a form named child which is opened inside a panel of a form named father . what i am trying is when i press F2 on my keyboard a new form opens asking for current date . at this moment i want…
System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing.
Hi, Everybody!... I am trying to parse the following XML…
Azure Cognitive Search - Spell Checker Implementation in C#
I am looking for implementing spell checker for the azure cognitive search in C#. For now I have reviewed the spell checker link from the official Microsoft documentation: https://learn.microsoft.com/en-us/azure/search/speller-how-to-add But there's no…
Custom Filters (CustomAuthenticationAttribute) in MVC CORE
I created custom filter in MVC5, please suggest if there is some equivalent in MVC…
JWT Bearer Authentication Load to API fails
I created API with JWT Token , I know I need to pass credentials but just for test purposes I used get method instead of post. https://github.com/KalyanAllam/VisitsApi Where Auth Controller generates the…
Error while trying to debug Xamarin app iPhone. MT1007: Failed to launch the application:Invalid Service Error
I am trying to debug my xamarin.iOS application in my iPhone. Visual studio 2022 17.7.4 Xamarin iOS : 16.4.0.15 xCode : 13.3.1 mac OS: Monterey 12.6.7 iPhone version (where the app is to be debugged) : iphone 12, 16.6.1 error MT1007: Failed to launch…
dotnet monitor to prometheus metrics
I get no results from the /metrics url. How can I get metrics to work?
VS 2022 .net6 core C#. Application.StartupPath is different at run time.
Hi, I am trying to capture my project home directory: string exeFolder = Application.StartupPath; While i test app i am getting path with MyPath"bin\Debug\net6.0-windows". in result i cannot access my report folder with reports. Is there a…
ArgumentNullException on add-migration com.
Hello, I'm still on my app dev which is a Blazor Wasm with it's API (developped with .Net core 7.0) and I try to create an EF Core migration, but I've got an issue. N.B.: I use environment variables to set my connection string (to change it…


Environment Variable : ArgumentException: Format of the initialization string does not conform to specification starting at index 0
Hello Houston, I've got a problem! I read somewhere that we can utilize an environment variable to configure the connection string, and we can provide new values in CI/CD pipelines. Consequently, I modified my appsettings.json file to rely on an…


Image inside a DataGrid in a FixedDocument Error
I have created this small demonstration project to highlight a problem I have encountered when working with an Image within a DataGrid created in C# and then utilised within a FixedDocument.…
Seed Data without entity (join table)
Hello, I've this configuration in my DBContext class : modelBuilder.Entity<Topic>() .HasMany(t => t.Keywords) .WithMany(k => k.Topics) .UsingEntity(j =>…


How to get all active session of the logged in user in .net core mvc
I'm currently working on a .net 7 mvc project. How can I get all the active sessions of a logged in user in .net core mvc. This is my setup currently: builder.Services.AddDistributedSqlServerCache(options => { options.ConnectionString =…


Adorner Not showing
Hope you can help. I am continuing to try and learn WPF and my current test project (which I have simplified significantly to demonstrate my problem) is to display an Adorner on a window when a button is clicked to open a new Window. When this window is…
Not remembering source control plug-in (Git)
Since the last release, Visual Studio 2022 is not remembering the source control selection. Every time a project is opened, I must open the options dialog, go to Source Control, and select Git from the "current source control plug-in." Once I…
Visual Studio Community Version 17.7.4 Http Test 401 Errors
Since upgrading my Visual Studio Community edition to Version 17.7.4, I noticed that the method of sending requests in an http test document has changed in the UI from a green play button to a “Send Request” link. More importantly, since this update all…
How do i add a chart to a window form?
I'm trying to create a real-time graph of variables I'm monitoring from a PLC. I want to use the chart in a vb windows form .net. I saw some examples online using the chart control. the chart control in visual studio 2022 is greyed out. I saw some notes…