Log out when the browser or tab is closed (Asp Net + Mvc + Framework 5.4.1)
Hello, I would like my project to log out when closing the browser (Edge) or when closing the Tab that contains it. The program is in ASP.NET with MVC and Framework 4.5.1. Now I have inserted this script in _Layout.chtml <script…
Developer technologies | ASP.NET | Other
How to Add Constructor Parameters to a Widely Used Class Without Breaking Existing Code
**I have a class in a C# ASP.NET project that originally looked like this: ** public This class is used in many other places across the solution — hundreds of usages like this: var Now, I need to modify the constructor to accept a parameter (e.g., a…
Developer technologies | ASP.NET | ASP.NET Core

Debugging VBA
I am a beginner in VBA programming, I am writing a function to retrieve the cell value from another file. However, I made a lot of attempts but still cannot get it work. May I know where can I get assistance?
Developer technologies | Visual Basic for Applications
Visual Studio Constantly Hangs and Freezes or Restarts Itself Randomly
I am using Visual Studio 2019. I have 64 gb of ram, use 1tb NVMe drives, 12 core 4.10 GHz processor, Windows 10 OS. And even with this decent machine, Visual Studio hangs and freezes very often. I am a programmer by trade, I code at least 8 hours a day…
Developer technologies | Visual Studio | Other
Android Emulator is not able to load URL
Hi Team, I’m currently using the Android Emulator within Visual Studio 2022 and facing consistent issues accessing the application's APIs. The emulator is unable to reach the endpoints, and when I attempt to load the URLs through the mobile browser…
Developer technologies | .NET | .NET MAUI
Starting release version of an app crashes VS consistently
I have a UWP app. When I start the debug version from VS, everything is flawless. When I try to start the release version (i.e., the .Net Native version), VS shows the following error, then crashes. This is 100% reproducible. I tried half a dozen times…
Developer technologies | Visual Studio | Debugging
AppService isn't exposed after packaging to .msix
I have an Avalonia app targeting Windows desktop (thus, WinUI3 app). From that project, I reference a UWP Runtime Component which handles calls to an AppService Lastly, using a WAP project, I package the app into a .msix package, which declares in its…
Developer technologies | .NET | .NET Runtime
Please help me enable location services in my app targeting Android 15 (API level 35)
I need you help how to show this at my .net maui app . Its .NET 9 - Android 15 - API 35
Developer technologies | .NET | .NET MAUI
Implementing mTLS Between Two Apps Using ASP.NET
Guidance is requested on implementing mTLS between two applications using ASP.NET MVC in C#. or any .net code. The setup will involve a handshake between the server app and client app, developed in a localhost environment, utilizing OpenSSL or another…
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | ASP.NET | ASP.NET API
Developer technologies | ASP.NET | Other
Portal returns updated results while the API returns outdated ones
I have created a GPT4 model in Azure OpenAI Service, and I want to add data source which is Azure AI Search (Cognitive Search Service). The problem is at the time of deployment i cannot see any data source adding option, it is deployed first and then…
Azure AI Search
Developer technologies | ASP.NET | ASP.NET API
Azure OpenAI Service
How to import an externally-generated AES key into a TPM2 using TSS.NET
Using TSS.NET on Windows 11 with .Net Core 8.0, I've been trying to import an externally-generated (via System.Security.Cryptography) AES key into the TPM on my system. Devices in this system will use this same TPM-protected AES key to encrypt &…
Developer technologies | C#
Vehicle Tracking System
Dear Community Members, I’m working on a **Vehicle Tracking System** project using **ASP.NET Core Web API (version 8)** for the backend and **Angular** for the frontend. I have no idea how the actual tracking devices work or how to integrate them,…
Developer technologies | ASP.NET | ASP.NET Core
How to Use Cube.js API with .NET Core Application? Facing "Query Param is Required" Error
Hello, I am trying to integrate the Cube.js API into my .NET Core application. My goal is to fetch data from Cube.js using a custom query. However, I keep encountering an error and can't seem to get the integration working. Here’s the method I…
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Other
I can't find the Blazor Web Assembly option, I only see two options the Blazor Web App and the standalone Web Assembly application but none of them give me the ASP .NET Core Hosted option, why?
I do have a question related to this topic because I want to start a project with the Blazor WebAssembly App template but it is no longer only those two that you mention. according to a video it should look like this: I would like to know if the way I…
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Developer technologies | C#
Issue with connection to the database through VS code
Hi, My Python code is supposed to access a database and perform a check, but the behavior is inconsistent — sometimes it works, and other times it doesn’t. I’m not sure what’s causing the issue. I’ve already added retries, delays, and other safeguards. I…
Developer technologies | Visual Studio | Debugging
System.ArrayTypeMismatchException when using System.Text.Json with .NET Framework 4.7 in MSTest
Hi, I'm currently using .NET Framework 4.7 along with MSTest (all packages are up to date). I'm trying to deserialize a JSON string using System.Text.Json as shown below: using System.Text.Json; private static JsonSerializerOptions GetOptions() { …
Developer technologies | .NET | Other
Visual Studio Code - unable to change the size of a window
Hello, I have a code written by python that allows me to access web (via Selenium) but I cannot change the window size even though it´s not headless mode. Because of that I don´t see all elements and I cannot click them. For example I had to make…
Developer technologies | Visual Studio | Debugging
Visual studio code github copilot not connecting to Azure MCP server
I followed the below documentation to connect Azure MCP server in VS Code, to use it in Github Copilot chat agent…
Developer technologies | Visual Studio | Setup
I cannot contact Visual Studio support.
I am trying to get assistance from the live chat support for installation at the following link. Despite my repeated attempts since last week, I have never received any response. https://visualstudio.microsoft.com/vs/support/
Developer technologies | Visual Studio | Setup

i can't execute program in visual studio without administrator account after changing the assembly name
Hi, after windows updates, I can't execute program on visual studio (Debug/Release) without administrator account after changing assembly name. changing version name of assembly name is able to execute program without administrator account. ex) Device…