Questions tagged [asp.net]

ASP.NET is a Microsoft web application development framework that allows programmers to build dynamic web sites, web applications and web services. It is useful to use this tag in conjunction with the project type tag e.g. [asp.net-mvc], [asp.net-webforms], or [asp.net-web-api]. Do NOT use this tag for questions about ASP.NET Core - use [asp.net-core] instead.

0 votes
0 answers
2 views

Can we handle the directory browsing requesting via IHTTPHandler in asp.net?

Can we handle the directory browsing requesting via IHTTPHandler in asp.net, as I have some requirement when the clicks on browse directory, at that time it should first land into a handler so that i ...
user avatar
0 votes
0 answers
12 views

What is the approach to add MFA (TOTP based) for a .NET core project which is not using the ASP.NET Core Identity?

I have a .NET Core 6.0 api project that is not using ASP.NET Core Identity. The authentication is performed using JWT: builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) ...
user avatar
  • 6,249
0 votes
0 answers
30 views

Why toolbars element for my GridView DevExpress do not show?

I want to export my gridview into Excel. I'm using this GridView, and I want to add toolbars element. However it doesn't show me the element. Can anyone give me any suggestion on how to solve this ...
user avatar
0 votes
0 answers
19 views

Where can I declare a primitive in ASP.NET so all threads get their own versions of the primitive?

I'd like that every thread that runs in my ASP.NET application runs with a primitive that's unique to it's thread. Ideally I'd like to not have to declare or pass any object to the thread. I'd just ...
user avatar
0 votes
1 answer
25 views

MakeGenericMethod throws VerificationException: Method MyClass.Calculate: type argument CityList'violates the constraint of type parameter 'TResult'

MakeGenericMethod in the below code throws VerificationException: Method MyClass.Calculate: type argument CityList'violates the constraint of type parameter 'TResult' public class ...
user avatar
-1 votes
0 answers
22 views

IIS does not update .aspx files on save, while using UNC path as physical location

Reproduced this behavior on every ASP.NET app we have. If the app is located on the local VM disk, it behaves as expected. -> on file change, VBCS compiler does incremental runtime compilation, and ...
user avatar
0 votes
1 answer
29 views

CI / CD pipeline for legacy ASP.NET Web Forms application

I am taking over a legacy ASP.NET Web Forms application written a long time ago. The application does not come with a .csproj file or a VS .sln file. All DLL libraries are simply added to the bin ...
user avatar
  • 37
0 votes
0 answers
18 views

Entity Framework - multi faceted search query issue

I'm having an issue with a query that does multi-faceted search. could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by ...
user avatar
  • 361
0 votes
0 answers
14 views

hash and salt problem when using IPasswordHasher<User> and BCrypt algorhitm

I faced problem with hashing, salting and verifying password in ASP.NET. I am creating a new User and then using hashing method. But when I try to get some resources which requires Authorization and I ...
user avatar
  • 3
0 votes
3 answers
36 views

How to turn a EF Core/LINQ query into a List<SelectList>?

I have the following Category Model: public class CategoryDTO { public int Id { get; set; } public string Name { get; set; } public List<SelectList> WarehouseNames { get; set; } } ...
user avatar
  • 21
0 votes
1 answer
28 views

How to fetch group memberships from an AAD group

I'm trying to fetch all group memberships from an AAD. I have to name of the parent group I want to look for, but I need to fetch the users that are in sub groups of that parent. I've tried may things ...
user avatar
-1 votes
0 answers
15 views

NullReferenceException: Object reference not set to an instance of an object in Controller [duplicate]

enter image description here this snippet of my code captures the controller being used however, for some reason I can't pass the identity controller to the same, it understands as if the "return&...
user avatar
0 votes
0 answers
23 views

Problem after transferring files to another system (error NETSDK1)

After I import the files from another system to my system, I get the following error Severity Code Description Project File Line Suppression State Error NETSDK1005 Assets file 'C:\Users\...
user avatar
0 votes
1 answer
31 views

The image is not displayed when sent to email

string html = "<img src=data:image/png;base64,i0KGgAD34DtaA..........*>"; //*very long SensMail(mailaddress,html, System.Text.Encoding.UTF8); public static void SensMail(string sendTo,...
user avatar
  • 1
0 votes
0 answers
35 views

How do I ask a user for registration before he reserves a seat?

I am developing an airline ticket reservation system project where a passenger can search and reserve flights, but I want the passenger to signup before reserving a flight. Here is my view file which ...
user avatar

15 30 50 per page
1
2 3 4 5
24595