ASP.NET Core MVC pass a url parameter to the POST
Hi all; I have a Blazor Server app. It uses the ASP.NET Identity Library which is ASP.NET Core MVC. I am trying to pass a parameter to login so a URL like /identity/account/Register?follow=uniqueId gives me the parameter follow=uniqueId. In…
Download Files in Razor Pages without submitting the form (Edit page)
Hi, I want to download my uploaded files in razor pages edit screen. I dont want to submit the form or refresh the page upon clicking on the download button. Could anyone please advice me how to acheive this?
AKS deployed application to access on-prem server
Hi, I want to connect to on-prem sql server from a .net application which is deployed in AKS. We already have Azure relay/hybrid connection setup for the same, but that requires azure app service. I am looking for options to connect from AKS deployed…
How to pass input data from one page to another page property
Register.cshtml <form method="post"> <div class="mb-3 row"> <div class="col-md-4"> <label for="CountryCode" class="form-label">Country Code</label> …
How to resolve SignalR Hub connection issue from Client side Javascript code
I have web application developed in .NET 5.0. This web application calls Web APIs to fetch information from SQL DB. Web and API applications are two separate applications hosted in Azure. I want to push some real time data every 2 minutes to all clients…
Custom Hybrid Connection Manager
Hi, I would like to know if we can have a custom hybrid connection manager in .net core code. I would like to connect to on-prem sql server from a cloud deployed .net solution. I am using Azure app service /Relay/Hybrid Connection for the same. I would…
How to pass the input data from one page to another
Register.cshtml.cs using FaceAdminApp.Auth; using FaceAdminApp.DTOs; using FaceAdminApp.Models; using FaceAdminApp.Services; using FaceAdminApp.Utilities; using FaceAdminApp.ViewModels; using Microsoft.AspNetCore.Mvc; using…
metadata_storage_path error in .NET with Azure AI Search.
Right now from my post api I am storing the address like UploadEmailAsync() in Azure Queue. I have tried saving it with and without JSON format but path which we use for Filters in Azure AI Search requires the base64 converted link. Right now i have…
How to use SystemWebAdapter SessionClient to share only registered keys and ignore the others
I am learning how to migrate a large .net framework application to .net core and am happy with the tooling provided by SystemWebAdapters and RemoteAppClient. The framework application uses session state extensively and it looks like the default behaviour…
How to dynamically change the port listened by Webserver in. NET when the Webserver is running
I created a NET 8 Console Application to create a WebServer and make it a Windows Service, in Program.cs, the code implementation is as follows var webOptions = new WebApplicationOptions() { Args = args, ContentRootPath =…
How to publish asp.net with angular application?
I was following this tutorial: https://learn.microsoft.com/en-us/visualstudio/javascript/tutorial-asp-net-core-with-angular?view=vs-2022 But when I publish my app, either to a remote IIS server or locally into a folder, the angular project is not…
How to setup Blazor Server with Blazor WASM with gRPC for virtual IIS application?
Hi, I have simple Blazor Server without static files. It is only falling into Blazor WASM with static files using FallBackTo. There is gRPC an its Controller mapped on the main endpoint. Everythig is working on https://localhost. Once I try to deploy…
Error when uploading CSV files to Azure blob storage using ManagedIdentity with C# and GraphQLAPI. "Total size of resourceFiles is using 147% of available space after processing."
Hello All, I have created a console app using C# where I try to fetch the data from GraphQLAPI and store the data in csv files. post that it would be uploaded to the Azure blob storage using ManagedIdentity. This complete code work fine in my local VS…
ManagedIdentityApplication.AcquireTokenForManagedIdentity("api://AzureADTokenExchange") giving error in local machine.
Hi, I am implementing the "Federated Identity Credential" along with User Managed identity in .net core 3.1 web api. Getting the error code: "managed_identity_unreachable_network" with error message "A socket operation was…
sending an email with attachment in .net core console application
I need to send an email with attachment in .net core console application. The part of sending an email is working. The attachment part is not working. I have this code: public void sendEmail(List<string> toList) { string from =…
Encountering 'WebSocketException (0x80004005): The server returned status code '404' when status code '101' was expected' when signalr client starts a hub connection.
We have a .net core signalr client trying to establish a connection to signalr hub web application and a signalr service. The client successfully connects to the hub and signalr service, but fails when attempting to start the websocket transport to the…
Azure Function .Net8 Json Deserialization Error
I'm developing an azure function in .Net8 which is a migration from a .net6 in-process function. The code always breaks while trying to deserialize a json object that comes within the EventGridEvent.Data which triggers the function, the deserialization…
Persist all releated to exceptions metrics, while sampling everything else
We are trying to collect all metrics related to exceptions (request, dependency, trace) without sampling) without sampling, to provide a better debug experience. According to…
I am getting System.InvalidProgramException error when upgraded the application from .NET 3.0 to .NET 8.0
I have upgraded Npgsql package from version 4.1.5 to version 8.0.2 that is required for .NET 8 upgradation but I am getting the following error after deployment of the service on the development environment and performing the health check for…
Content Security Policy Violations happening for whitelisted domains only for Netherlands and Switzerland users.
I have a csp policy where I have whitelisted all the domains from which I want to load the content to my application and have added only default-src directive which is fallback to all the other directives. I have tested the policy on lower…