anti-forgery tokens implementation in asp.net web api
Can any one help me with anti-forgery tokens implementation in asp.net web api and AngularJS. how do we maintain the forgery key in web api to validate the key for every request. Please provide the full example.
How to invalidate ".AspNet.Cookies" cookie on logout?
I have a .net application deployed to Azure. A penetration test finding called "Session Not Invalidated After Logout" is found. When an API Get request is sent along with .AspNet.Cookies while user is logged in, a successful response is…
how to pass C# DataTable to JQuery DataTable
I am trying to send data from a C# DataTable to a Jquery DataTable, but I am not sure how. Here's my code, but it is not working. public ActionResult StudentList() { TestViewModel tvm = new TestViewModel(); List<Student> students =…
get user ip address not deployment system ip address
Hello I want to get and show in Label1 user system name and ip address not deployment machine ip address how to get that i tried this but its taking depoyment ip address i want user machine ip string hostName = Dns.GetHostName(); …
![](https://techprofile.blob.core.windows.net/images/ZXe74VOTGUC0onT7eaZQmg.png?8D9259)
SSO OAuth with Username And Password
I have a Web Application whose Admin portal developed in Asp.net Webforms with some domain and the Public portal of the same is in Asp.NET 8 (.NET CORE) with some other domain. The database is same for both and currently I do login with Username and…
Mysterious Error log from IdentityClient when using DefaultAzureCredential
2024-02-27 23:08:54.995 ERROR 54214 --- [ main] c.a.i.implementation.IdentityClient : Could not invoke the MSAL Broker. Ensure that the azure-identity-broker library is on the classpath. java.lang.IllegalStateException: Could not invoke…
adding model based controller gives me an error in MVC 5
I am trying to add model based controller, according to a tutorial: https://learn.microsoft.com/en-us/aspnet/mvc/overview/getting-started/introduction/accessing-your-models-data-from-a-controller I tried reinstalling Visual studio, tried deleting…
Classic ASP support clarification
I am needing to get some verification for my job on whether classic asp is still being supported by Microsoft. Also, is their a way to find the end of life date for classic asp? I will need to provide some form of proof online. I am asking because when I…
Single File Deployment
We are producing single-file executables for our console app which is not working with the native dll methods at runtime. I’ve always tested it locally without the publish and it still works fine. “IncludeNativeLibrariesForSelfExtract” is set in the…
How to troubleshoot the exception, Could not create TLS secure channel?
Hello there, I have this C# code that consumes a SOAP WS and it was working properly for years. However, since recently it started to throw the following exception: The request was aborted: Could not create SSL/TLS secure channel. Basically it imports…
Why is the blazor css isolation not working?
I have an AppLogin.razor component and its css file is AppLogin.razor.css. They are working fine. I have a UserLogin.razor component and its css file is UserLogin.razor.css. The working mechanism is as follows When you login from the AppLogin.razor…
How to read pdf,jpeg,gif document using tesseract OCR with C# asp.net MVC
Currently we have one page and this page contains one file-upload and one submit button, then the user will select a file from file-upload and submit the pdf,jpeg,gif file. Now my requirement is the user will upload pdf,jpeg,gif read the content of the…
Call from one MVC5 project method to another MVC5 project method not loading aspx page
Hi, I have two projects, MVC5-1 and MVC5-2. Both are using .net 4.7.. I have installed MVC5 on both. I am trying to call a controller method from MVC5-2 (ShowMBStest())from MVC5-1. There is a method in MVC5-2 that calls an x.aspx page. I can see it…
![](https://techprofile.blob.core.windows.net/images/MxBLrky2rESG0hes4GqOKQ.png?8D92C1)
Deployment issue
Hi, What is the reason below, when deploying the project? System.AggregateException: One or more errors occurred. ---> Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed. Check the Output window for more details. ---…
Authorization - MSB4018 The "GenerateStaticWebAssetsPropsFile: task failed unexpectedly
Creating a project which has individual User Accounts Authorization... Steps. In the Authentication type input, select Individual User Accounts Update-Database Error... Severity Code Description Project File Line Suppression…
![](https://techprofile.blob.core.windows.net/images/cQ9dvXlMgEyrsdQDCUONWg.png?8DB3C1)
![](https://techprofile.blob.core.windows.net/images/cQ9dvXlMgEyrsdQDCUONWg.png?8DB3C1)
webservice service System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
I am currently encountering an issue with a web service. The server-side field MinimumOrderAmount is of type double, and in my receiving program, I have defined it as decimal. When the server sends a value of 9999999999 for MinimumOrderAmount, my program…
How to receive selected radio button values in the controller in ASP. Net Core 6 MVC
I am working on asp.net core 6.0 MVC. On the view, I have four radio buttons and would like to get the selected radio button value in the controller and process further based on the selected value. I have created a view model to pass data between the…
Why is the logon_user variable blank when a user has windows 11 PC ?
We have a asp.net application. This uses windows authentication and reads the LOGON_USER variable to check if the current user is allowed access etc. This all works from users using a windows 10 PC, but when the user has a windows 11 PC the LOGON_USER…
AppShell- Failed to Navigate Back, Ambiguous routes matched for.... but i've only registered routes once
I am building an Xamarin Forms app for iOS and Android. I registered my routes in AppShell.xaml.cs globally like this: **-AppShell.xaml.cs-** Routes.Add(nameof(HousingFolderPage), typeof(HousingFolderPage)); Routes.Add(nameof(HousingFolderDetailsPage),…
REGISTRATION AND LOGIN PAGE USING ASP.NET WITH C# LANGUAGE
Using an ASP web form, design a registration and login page that meets the following requirements; 1. Password is hashed/encrypted in the database 2. Include a notepad file of your database table.