Getting right view from two razor libraries
I'm writing ASPNET Core web page. I created two razor view libraries and in each one I created file List.cshtml and controller: WebPage.Users List.cshtml UsersController.cs WebPage.Clients List.cshtml ClientsController.cs Both controllers…
Getting Invalid http header / Invalid Data when trying to GET
I am getting an Invalid http header when I try to implement a GET in C#. This GET works when I try it in Postman. But when I run the program, I get the error message below. This is what the code looks like: public static void getObjects(string…
Deploy asp net
Hello i am new at using asp net .. I have created website using asp net web app (.NET Framework) i don't not wanna add it on server i wanna work with it locally but not on same laptop i have created it on, is that possible to deploy it locally and use…
Microsoft.NET on Microsoft Windows 10.
The following commands were suggested for repairing damage to IIS 10, caused by typing in "ServiceModelReg -i" at the Microsoft Windows 10 ( Home ) Edition command prompt ( in elevated mode ): cd\Windows\Microsoft.NET\Framework64\v4.0.30319…
How to migrate App Service to an Azure Function?
We want to change App Service to an Azure Function but we have old apps that point to the .....azurewebsites.net url. How can we do this and preserve the current url of the app or redirect from the app service link to the new azure function endpoint.
I would like to set the AddMicrosoftIdentityWebApp based on the request url (B2E, B2C) type to achieve authentication in Statup.cs
he code we are trying in ConfigureServices(IServiceCollection services) method in Statup.cs //Based on request type the code should pick the configuration needed…
Logging CRUD operations ASPNET Core, AspNetUsers, AspNetUserRoles
Hi, I want to log and create UI where logs of CRUD operations could be viewed. It can be which user updated what fields or columns The Users are ASPNETUSERS Can we get such logging ? I am using EF ASP.Net Core MVC Thanks, Regards.
I have issue with while column of datatable is false in columndef
Hi, My issue is when I set false in datatables "visible": @(User.IsInRole("Admin") ? "true" : "false") when it is false it throws error while editing the model from edit.cshtml since automatic null value…
HttpClient.PostAsync - System.Net.Http.Formatting exception
I am running a .NET Standard 2 project. I have added the Microsoft.AspNet.WebApi.Client (5.2.7) package. My call to HttpClient.GetAsync are working fine, but as soon as I try HttpClient.PostAsync, HttpClient.PostAsJsonAsync (or event the PutAsync…
Web Application Without Model
Is there any other way to create an ASP.NET Web Application .NET Framework (as Frontend) without using a Model class? I'm using ASP.NET Core Web Application as Backend.
access shared folder from Tow IIS server.
i am using .net core 3.1.18 web api hosted in IIS. i have load balancer hosting the api on two windows server. i am writing a file since i need to access the file from from two server i am using UNC path for folder sharing. i need to access a shared…
Asp.net get visitors screen
I need get visitors screen I want to see and watch visitors screens real time I searched very long but I not found any document If there is any document or sample code related to this subject, can you post it ?
UDP receive in asp.net web application SignalR
I want to receive a realtime data in a web application and display that realtime data in web form. I have heard about the signalR. I tried to put UDP receive codes as shown below in the hub class. But it gives error . Please suggest any solution so that…
.Net Core SignalR 1.1.0 (GET /hub) call showing performance issue in Application Insights (AI).
.Net Core SignalR 1.1.0 (GET /hub) call showing performance issue in Application Insights (AI). Min time - 19 sec, Max time - 1.2 hours When client calls SignalR hub Send method (Hub method which broadcast messages to all connected clients), SignalR…
SaaS (.net core) and Azure Ad B2C - What is the best approach to handle user defined authorization policies?
Hi there, I'm trying to find the best (or most common) approach to a feature implementation. Scenario: A multitenant WEB app (SaaS) using Azure AD B2C as the identity provider. The SQL database will have an user table with some columns that…
Classic asp Comapatibilty
Hi, Is it possible for you to confirm if Classic asp is supported in below mentioned windows instances or not? windows 2012 instance windows 2016 instance windows 2019 instance Thank You Debasish Nandi
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…