Gett customerid from token in backend Webapi
Goal: How to get customerid from token when you are located at backend webapi. Background: Today, you get your token from backend and it will be sent to frontend. The token alreadly contain the customerid. In order to use customerid as a filtration…
Deploy an ASP.NET Core-Web-API (.NET 5, Visual Studio 2019) to IIS
Dear all, I'm trying desperately to deploy an ASP.NET Core-Web-API (.NET 5) to IIS. I use Visual Studio 2019. To test server setup (ASP.NET Core Hosting Bundle 5.0.15) I created an ASP.NET Core-Web-App and deployed it via file system, it works. …
Converting Openssl signing to .NET 6
ASP. NET 6 MVC application invokes openssl for signing using openssl rsautl -sign -in rasi.bin -inkey riktest.key -out allkiri.bin How to convert this to .NET 6 so that invoking openssl is not required? riktest.key is text file containing …
ASP.Net Core API Error ( Multiple constructors accepting all given argument types have been found)
Hi Y'all, If someone could please help me with the below issues? I built a Web API using ASP.Net Core (from Microsoft Tutorial). When calling the API, I got this error below: The error can be read here: …
What phisical architecture for asp.net core microservices application
Hi! We have an asp.net core microservices architecture deployed on single Windows Server/IIS web server and we are using Ocelot as API Gateway. We should soon make our application available to 400 users at the same time, so we're assuming it's best…
.NET Core 2.1 Keeps Coming Back After Uninstall
We have a development VM with some apps installed such as Visual Studio 2019 and SQL Server Management Studio 18.6. Our weekly security scans are showing that .NET Core 2.1.30 is installed, which is at end of life and should be removed. I manually…
Processing when startup fails(Asp.net Grpc Service)
<Problem> 1 Create a project with the C # Asp.net grpc service template. 2 Modify Program.cs as follows. Register the function in app.Lifetime.ApplicationStarted.Register for the process you want to execute after starting the server. …
Referal Links and Points system
Hello Good day every one I have a website that students enter and book a lecturer using there accounts, i want to add a feature that make the students able to send a referral links to another students and when that new student (student B) book at…
C# Lambda - short spelling
Hello, How can I write the below code shorter, how to optimize? Maybe without function name GetDeviceWhiteParameterSet(); Directly. ? means can be null, right? [XmlAttribute("length")] public double? Length { get; set; } private double…
WCF Error: Could not find default endpoint element that references contract 'IvSecurityAuthenticationPermissionService'
Using VS 2019 and .net 4.8 and WPF, I’m setting up a new solution which was a copy of an existing solution that’s been working great for 7 years. We have frameworks with a lot of stuff including security, and WCF support so it’s easiest to copy a…
Can we configure a gRPC server to share a port with a Kestrel-hosted ASP.NET Core 6 website?
I'm looking at gRPC as a potential replacement for WCF. (Side note: I'm saddened to witness the demise of WCF.) A nice feature of WCF was that it could be integrated with a website project and could share a port with the website. But a quick glance…
Using EF: Need help to insert DateTime value into Date ( Database )
Hi, This is my table, Models: SFATender using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; using…
how to add digital signature in pdf using asp net c# without mvc. I want full code as I am new to asp.net
Hello, I want to upload pdf file. After uploading file, I want to sign that pdf file using my Digital Certificate which is in Pen Drive format attached to my Computer.
About team development
There are two developers to develop a web app. One uses visual studio,creating asp.net core project. The other uses java language in IDEA. Can these two developers cooperate to develop the same web application? What should they do?
Conditional remote validation in Razor Pages
Hi @Zhi Lv - MSFT , I have to validate a field based on another fields input. If Field A is not empty, then Field B should be filled out. Currently this form is inside a tab, so when i do the javascript validation it is navigating to the first tab…
Calling the controller from the TS file within a project created using 'ASP.NET Core with Angular project template'
Hi All, I have a question and could anyone please help me with? I create an application using 'the ASP.NET Core with Angular project template' provided on Microsoft site. https://learn.microsoft.com/en-us/aspnet/core/client-side/spa/angular I would…
asp.net 6 React User.Identity.Name
We are migrating to React .net 6 from 5. Our apps are internal and we use windows authentication. No issue with this in previous versions getting user.identity.name in a controller with react. I understand the dev environment is working differently. I…
net core 3.1 deploy iis https HTTP Error 502.3 - Bad Gateway A connection with the server could not be established
I am deploying an api in .net core 3.1 in a vpn in windows server 2019 with iis. When making the http request, only the api works correctly. when I add the https address it fails for both http or https error 502 - Web server…
Login details Code Error
Sir, I have studied and tried to put login page but it shows code error please tell me the correction sir It shows error: System.InvalidOperationException: 'The connection is already and also code error private void button14_Click(object sender,…
CS2015 ~\6.0.201\Sdks\Microsoft.NET.Sdk.Web\analyzers\cs\Microsoft.AspNetCore.Analyzers.dll is a binary file instead of a text file
When i try to compile my asp.net core 5.0 application i am getting this error -Error CS2015 'C:\Program Files\dotnet\sdk\6.0.201\Sdks\Microsoft.NET.Sdk.Web\analyzers\cs\Microsoft.AspNetCore.Analyzers.dll' is a binary file instead of a text…