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.
asp.net
374,711
questions
-1
votes
0
answers
20
views
Bootstrap 5 Sidebar With ASp.net MasterPage
I want to have Bootstrap 5 Sidebar fixed for all child pages of asp.net project.
Any examples? need to arrange contents as below in Master Page:
<head>
<body>
<asp:...
0
votes
0
answers
22
views
How to load the excel data in grid without using OLEDB driver?
Our application is going to deploy in Azure Environment as a PAAS. Hence we can not install any driver. Therefore looking for any substitute which can able to load dataset in grid without using OLEDB ...
0
votes
2
answers
49
views
Is there a way to run a method when the site is loaded, but not when it posts back (asp.net + vb.net)
Method using Handles MyBase.LoadIm trying to populate a drop down list with all times of the day in intervals of 30 minutes, instead of hard coding it, I made a loop which does create and add to the ...
0
votes
0
answers
20
views
How do I constrain Databound CheckBoxLists
I have a six check box lists to select products (two are shown below). All of the data resides in a table, so I iterate through all of the checked boxes to construct a SELECT statement which in turn ...
1
vote
1
answer
49
views
How to delete the rows of datatable1 having different ID while compare with the datatable2
Given the first data table having master data and the second table having the needed data IDs, I need to delete the rows from the first table which are not present in the 2nd table. I am trying to use ...
0
votes
0
answers
16
views
Do I need to create a custom authentication handler for my integration tests in .NET if I use KeyCloak in my application?
I'm currently working on a .NET application that uses Keycloak for authentication. For my integration tests, I want to avoid actually connecting to the Keycloak server to keep the tests fast and ...
-1
votes
1
answer
39
views
If Migration is not sent to the database, UseExceptionHandler Middleware will not work. Why?
I added a new property in a entity class. I didn't create migration. After that, I tried to use UseExceptionHandler middleware. It successfully triggered error action method but the view didn't appear....
0
votes
0
answers
32
views
The Web API responds to the browser before the await Task.Delay finished executing
I'm working on an OWIN ASP.NET Web API 2 application which uses Autofac.
I ran into some issues because some code after await is never executed when the client app (browser) is cancelling the request.
...
0
votes
0
answers
50
views
ASP.NET / VB.NET: compile errors when migrating to .NET 4.8
I have tried to migrate my ASP.NET solution written in VB.NET from .NET 4.0 to .NET 4.8 and organize my solution by creating projects.
The new project has been created using Visual Studio 2019 -> ...
0
votes
1
answer
35
views
Adding a RequiredFieldValidator causes the 'jquery' is not a valid script name. The name must end in '.js' error
I have a problem inside an asp net application where I get the 'jquery' is not a valid script name. The name must end in '.js' error when I try to add an asp:RequiredFieldValidator element inside an ...
0
votes
0
answers
21
views
Integration Tests with Custom Authentication in ASP.NET Core Returning 401 Unauthorized
Description:
I'm setting up integration tests for an ASP.NET Core application using the minimal hosting model in .NET 6. I am trying to mock the authentication process using a custom authentication ...
0
votes
0
answers
31
views
SpaProxy not launching on local docker environment. npm start not working inside container
Launching the SPA proxy...
Error on Docker logs:
fail: Microsoft.AspNetCore.SpaProxy.SpaProxyLaunchManager[0]
Failed to launch the SPA development server 'npm run start'.
System.ComponentModel....
0
votes
0
answers
21
views
'Skip navigation doesn't have an inverse navigation configured' error when migrating
I am working on a C# Web API project and when attempting to Add-Migration, I keep getting this error:
Unable to create a 'DbContext' of type ''. The exception 'The skip navigation 'Class.Staffs' doesn'...
0
votes
1
answer
23
views
An error occurs when extracting data from a list in a child SharePoint site
Good day. When working with SharePoint, I encountered the need to update a field in the list, for this purpose I use the Microsoft Graph library version 4.54 for c#. I have a method for this:
{
...
0
votes
0
answers
13
views
Could not load file or assembly 'Entities' or one of its dependencies. An attempt was made to load a program with an incorrect format
I'm upgrading a solution have three projects the ASP.NET Webservices from ASP.NET 4.0 to version 4.8 but keep apear this error
Could not load file or assembly 'Entities' or one of its dependencies. An ...
0
votes
0
answers
49
views
The instance of entity type 'ApplicationUser' cannot be tracked because another instance with the same key value for {'Id'} is already being tracked
I have an app that uses the entity framework. I have 2 DB contexts, one for the live sql database and another using InMemory for users to demo the site without changing the live db. The problem is ...
1
vote
2
answers
102
views
.NET 8 converts uppercase Turkish 'I' to lowercase 'i' instead of 'ı'"
I'm working with .NET 8 and encountering an issue with character conversion in Turkish text. According to Turkish language rules, when converting uppercase 'I' to lowercase, it should become 'ı'. ...
-1
votes
1
answer
25
views
JWT with Identity .NET 8
I have a project in asp.net core with identity from .NET 8. Everything is going well, I added roles for the user (eg Admin, User) only that when I authenticate through the exitpoint at the '/login' ...
0
votes
0
answers
35
views
How do I get the Annotation points to be set based on one of the value of X-axis and Y-axis (not the coordinate value)?
I am working on a Blazor Project Web App (Hybrid). Currently, I'm trying to create a stats card that has a graph on it. To make it more nicer, I wanted to add an annotation point on the graph to look ...
1
vote
1
answer
43
views
C# Model property values are uninitialized when private, yet work when public
My class:
public class LinkQueryOptions2
{
private string url { get; set; }
private bool isMobile { get; set; }
}
My API method:
[HttpPost]
[Route("")]
public void GenerateLink([...
0
votes
2
answers
54
views
Navigation Dropdowns in ASP.NET Core 8.0 Razor Pages - How to prevent opening new pages?
I am developing an ASP.NET Core 8.0 application using Razor Pages. I have implemented a dynamic navigation menu that needs to be consistently displayed across all pages of my application. The ...
0
votes
0
answers
34
views
Is it Possible to Implement Token-based Authentication Based on User UPNs(m365 account without password) in a Web Application?
I'm developing a web application where I only have users' UPNs (User Principal Names). I need to obtain individual tokens for each user based on their UPN without prompting them with an additional ...
0
votes
0
answers
34
views
System. ArgumentNullException: Value cannot be null. (Parameter 'uriString')
I have just created a .NET 8 API and I'm experiencing an error "System.ArgumentNullException: Value cannot be null. (Parameter 'uriString')" related to authentication when making calls to ...
-1
votes
0
answers
32
views
ASP.NET How to pass a value to another site?
I have two separate websites. The main site requires a login. A menu on my website should redirect the user to a different website and pass to it the username of the logged in user. I have the ...
-1
votes
1
answer
65
views
Cannot add multiple same objects to DB, only distinct are saved. .NET EntityFramework
I have a template of exercise with name, description and amount of sets. I want to create multiple objects of Exercise * amount of sets. For example I have template [{ "name" : "Legs&...
0
votes
1
answer
26
views
ASP.NET Gridview hyperlink with 2 parameters not working
I have a asp.net gridview in which I want VIEW option. Based on SAPID and CandidateID it should redirect to that respective page. But while passing that 2 parameters, I am unable to redirect with ...
0
votes
1
answer
26
views
For an ASP.NET WEB FORMS web application, check if the web server has the latest version for any specific aspx/ascx pages on any redundant web server
Our team works in a project where the customer manually deploys (copy/paste) the updated release we provide (ascx, aspx, dll, etc.) for the ASP.NET WEB FORMS web application we are developing.
...
0
votes
0
answers
61
views
Server Error in '/' Application.An unhandled exception occurred during the execution of the current web request
My admin site is not working however my live site is working properly and also i checked the connection string also in both the application - CMS and My project. So below mention is my error when i ...
0
votes
0
answers
86
views
How can I improve performance and increase the speed of processing data so that it takes short time read and process 500,000 records
I'm having a .net core console application that reads parts of the JSON files stored in a folder the part of the JSON that I'm reading contains greater than 500,000 records in it, I'm able to read all ...
0
votes
0
answers
89
views
Why would stop/starting IIS fix this Socket issue?
I have a Signalr web app that is using sockets to interact with a server application I can't control (nore have a source code / a protocol for). Each Signalr client sends a command to a Signalr Hub ...