Restrict access to Web API using Blazor WASM
I'm working on a project for a financial application and after a lot of thought decided to create a web API (using JWT) and, initially, a Blazor frontend. Eventually we will add mobile apps. So my first idea was to use Blazor WASM. Then thinking about…
How to dispose variables in Custom Http Client Handler?
Team, I have made an api in .net core 3.1 and created a custom HTTP Client Handler to manage dynamic certificates per http call but unable to understand the procedure to write and execute dispose pattern. Startup.cs--> …
Get-IISCentralCertProvider : Object reference not set to an instance of an object.
Powershel help says this should work but i get the following error import-module WebAdministration Get-IISCentralCertProvider Get-IISCentralCertProvider : Object reference not set to an instance of an object. At line:1 char:1 …
access website hosted in IIS on windows 10 from any pc
Hello ... i have created my website using asp net web app (.Net framework) it is my first one i wanna deploying it locally and give the access from another pc in different place (not on same network to use it ) but i don not understand a lot in this part…
Sending ajax post to mcv action
Hello I am developing an Asp.net Core Mvc application in which I need to send , as usual, some data from an ajax call to an MVC action. The ajax code is as follows : **function ShowHideAttivita(model, idriga) { var dati =model; var idcommessa =…
Asp.net core 3.1 ajax response Forbidden 403
My Asp.net core 3.1 Application working fine in Gen3 VPS Windows server 2012 r2 IIS V8.5. I have purchase Gen4 VPS Windows server 2016 IIS V10 and same application moved in this server. whenever I call ajax, response are always "forbidden 403".…
Changing Form Fields / Model Design
Hello and sorry to bother you, I just have a question that has been on my mind for quite some time. In my mind I would like to develop a form to take ads, classified ads to be clear, so the basic model should include something like: public class Ad{ …
Do we need dependency injection in MVC, how does it help?
Hi, What is the advantage of using dependency injection. I have to work on a project using constructor dependency injection. The service interface is passed to controller constructor. Even the service has constructor. How does this work? I…
Custom Identity Storage Provider
Building my own custom storage provider for identity core. Could someone please tell me the necessary storages to implement? So far, I have implemented UserStore methods. Is it necessary to also implement RoleStore in order to use SignInManager?…
deploy asp.net on IIS Locally
hello i have a question regarding deploying asp net website on IIS locally ... in my website i have connection to my database where GridView1.DataSource = SqlDataSource1; but it keeps give me this error ... Cannot open database "Test"…
ASP.NET Core 5 with IdentityServer4: in loop after the login
I have my new project with ASP.NET Core 5 and ASP.NET Core Identity. I want to add AddOpenIdConnect with IdentityServer4. I have other projects already in place that they are working fine and up and running. Then, I copied the code and paste in my new…
How can I execute a batch/exe/ps1 files on client from the server?
I have a web appllication made using ASP.net. I have a function to start the process from my web app. System.Diagnostics.Process process = new System.Diagnostics.Process(); process.StartInfo.FileName = Server.MapPath("~/ScriptFiles/" +…
Error in Converting Text to Speech for Chinese Language using MS Speech SDK 11
Hi, We have a web service developed using .Net Framework 4.0 and hosted in IIS v10.0.17763.1 on the Windows Server 2019 Version 1809 (OS Build 17763.1697). In this project, I wanted to convert Chinese language text to audio speech using…
Sample code Asp.Net Core Datatables Jquery pagination MVVM Services
Hi, I would like a template sample code to get started, with Asp.Net Core CRUD operations with search pagination , master detail pages. Dependency Injection CODE FIRST ENTITY Framework Datatables Jquery I have a solution developed on…
win2016, php dns query fails unless first run as admin
Hi all, setting up a new 2016 server. I have an old php 5.4.10 install that was copied from a 2008 server. I also have a clean install of php 7.4.9. Both of them were failing on doing a simple dns query (dns_get_record) when called as a webpage thru…
Creating a server in Windows server 2019 for Mobile Digital Video recorders
Dear Sir/Madam, I have asked a similar question sometime ago, and I realised, that I have not provided all the necessary details. Which I apologise for We have Windows Server 2019 on an Amazon Web Service instance (Can change to another Windows…
What is "localhost:44313"
I have an ASP.NET project working with IIS on Azure. In Web.config I have <add key="Url" value="https://localhost:44313" /> and there is a call in the C# code WebRequest request = WebRequest.Create(sURL); where sURL =…
Redis stack trace does not appear in Kubernetes Pod Log! Why not?
I have an ASP.NET core 3 web app I'm trying to debug in an Azure Kubernetes pod. I could look at the kubernetes pod log and see my System.Console.WriteLine statements inside of my ConfigureServices functions and everything looked great -- including my…
Runnin SSRS Report from Razor Page
I have created a Razor Page containing a form which will be filled by user & then user will try to generate report from SSRS. I have two questions: How can I pass the parameters to SSRS report? How can I save generated report (in Excel) in…
Can .Net Core MVC application be deployed on Windows Server 2008
Hi, There is .Net Core MVC Application and wanted to deploy that to Windows Server 2008. Can I know if that's possible? If its not possible what are all the alternatives. Thanks, Ramya