3,435 questions with ASP.NET tags

Sort by: Updated
2 answers

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.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
asked 2024-07-19T13:35:25.67+00:00
Bala Subrahmanya Gopal Jataprolu 0 Reputation points
commented 2024-07-23T06:18:51.57+00:00
Lan Huang-MSFT 29,001 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,732 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
asked 2024-07-16T11:05:41.7266667+00:00
Abhishek, Burra 30 Reputation points
accepted 2024-07-22T08:42:14.65+00:00
Abhishek, Burra 30 Reputation points
2 answers

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 =…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
956 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,730 questions
asked 2024-07-21T12:00:18.0066667+00:00
Saeed Ahmad 20 Reputation points
commented 2024-07-22T08:00:29.85+00:00
Saeed Ahmad 20 Reputation points
1 answer

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(); …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
asked 2024-07-10T07:54:33.8233333+00:00
RAVI 1,056 Reputation points
commented 2024-07-22T01:19:59.1466667+00:00
Lan Huang-MSFT 29,001 Reputation points Microsoft Vendor
2 answers

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,732 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,457 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,146 questions
asked 2024-07-18T11:09:23.7433333+00:00
Siddhant Singh 5 Reputation points
answered 2024-07-18T15:56:13.1466667+00:00
Bruce (SqlWork.com) 62,546 Reputation points
0 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,457 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,915 questions
asked 2024-02-28T07:14:20.6233333+00:00
Ian Lee 5 Reputation points
commented 2024-07-18T13:55:42.11+00:00
Amrata Dhankhar 0 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

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…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,730 questions
asked 2024-06-10T10:18:57.1966667+00:00
David Kamushadze 20 Reputation points
edited the question 2024-07-18T10:03:18.6833333+00:00
Rakesh Gurram 5,930 Reputation points Microsoft Vendor
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,457 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
321 questions
asked 2024-06-25T16:47:25.2166667+00:00
Derrick Pine 0 Reputation points
edited the question 2024-07-18T09:56:29.5533333+00:00
Rakesh Gurram 5,930 Reputation points Microsoft Vendor
0 answers

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,732 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,457 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
asked 2024-07-12T13:48:15.5533333+00:00
Siddhant Singh 5 Reputation points
edited the question 2024-07-18T09:45:22.9233333+00:00
Rakesh Gurram 5,930 Reputation points Microsoft Vendor
0 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,457 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,730 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
321 questions
asked 2024-07-12T14:24:34.8133333+00:00
Kuler Master 266 Reputation points
commented 2024-07-18T04:57:23.8966667+00:00
Tiny Wang-MSFT 2,476 Reputation points Microsoft Vendor
1 answer

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,732 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,457 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,527 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,730 questions
asked 2024-02-25T21:05:38.5766667+00:00
Haneen Al-fakhry 5 Reputation points
commented 2024-07-18T04:27:09.24+00:00
Akkarapol Utbuawong 0 Reputation points
2 answers

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…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,495 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,730 questions
asked 2023-11-11T21:00:28.0866667+00:00
coder rock 296 Reputation points
commented 2024-07-18T03:35:12.0433333+00:00
winironteam 36 Reputation points
2 answers

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…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
asked 2024-06-14T03:01:54.9366667+00:00
iqworks Information Quality Works 276 Reputation points
answered 2024-07-17T17:33:15.2166667+00:00
AgaveJoe 27,936 Reputation points
4 answers One of the answers was accepted by the question author.

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. ---…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,732 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,146 questions
asked 2022-11-11T06:32:00.9+00:00
Peter_1985 2,586 Reputation points
answered 2024-07-16T22:56:57.32+00:00
Paolo Guccini 0 Reputation points
2 answers One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,457 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
asked 2023-04-11T16:50:10.4266667+00:00
Dean Everhart 1,536 Reputation points
accepted 2024-07-14T15:13:43.7733333+00:00
Dean Everhart 1,536 Reputation points
0 answers

webservice service System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp; 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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,732 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,730 questions
asked 2024-07-04T03:09:31.28+00:00
Xu Li 5 Reputation points
commented 2024-07-09T02:29:22.95+00:00
Lan Huang-MSFT 29,001 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,457 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
asked 2024-07-08T20:44:31.4166667+00:00
Sherpa 241 Reputation points
answered 2024-07-08T21:04:19.22+00:00
AgaveJoe 27,936 Reputation points
1 answer One of the answers was accepted by the question author.

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…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
asked 2024-07-08T11:04:40.38+00:00
Greg Booth 1,316 Reputation points
accepted 2024-07-08T16:23:26.5366667+00:00
Greg Booth 1,316 Reputation points
1 answer

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),…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,328 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,730 questions
asked 2023-03-26T23:28:07.2466667+00:00
Nabil 6 Reputation points
commented 2024-07-07T18:26:48.8433333+00:00
Danilo Barcellos 0 Reputation points
1 answer

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.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,435 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,495 questions
asked 2023-07-06T03:24:27.7833333+00:00
Mickey- Darling 0 Reputation points
answered 2024-07-07T15:47:14.8533333+00:00
Evans Obodai 0 Reputation points