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,685
questions
0
votes
0
answers
3
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 ...
0
votes
0
answers
28
views
How to implement biometric authentication in ASP.NET with a generic USB scanner? [closed]
I'm a web developer working with ASP.NET, and I've recently been given a project involving a training platform. The details of the platform are irrelevant; the issue is that the stakeholders decided ...
0
votes
0
answers
19
views
How to show preview of a pdf document of type application/octet-stream via pdf.js
I have a service endpoint delivers pdf documents via api calls and it delivers file in application/octet-stream format. in my application I want to consume this api to get the file and need to return ...
-1
votes
0
answers
22
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 ...
-2
votes
0
answers
41
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
0
answers
13
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
0
answers
12
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
19
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
62
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
33
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 ...
-1
votes
0
answers
28
views
Writing a C# function to generate JSON [closed]
I have the following string that I need to convert to a C# class I can use in an ASP.NET WebForms project to replace the values with dynamic data:
{ "customerData": { "firstname": &...
-2
votes
0
answers
16
views
Stack between too many data and database for insert [closed]
I used action filter for all api actions in asp.net core. I want save the all of them. But api response is too long. I want use a stack in memory cach and add new data to stack and response request. ...
0
votes
0
answers
22
views
ASP.Net - query Informix Database without client installation
Looking to connect to an IBM Informix database from a ASP.Net application. Is this possible with nugets/references without any SKU or client package installation?
I see that this is possible with JDBC ...
2
votes
1
answer
33
views
SqlException error after POST request to restful API
Code
public IActionResult CreateVacancy([FromBody] VacancyDTO vacancyDTO)
{
if (vacancyDTO == null)
return BadRequest(ModelState);
var existed = _vacancyRepository.GetVacancyByTitle(...
0
votes
1
answer
19
views
ASP.NET Web Forms GridView and SqlDataSource - how to divide the Sum of an Count?
I want to divide an SUM of SqlDataSource with the COUNT of an other SqlDataSource, in an GridView?
How is that Possible?
-1
votes
0
answers
20
views
How to configure MassTransit with RabbitMQ to listen to events from other microservices? [duplicate]
I have a microservices system. Microservice-A wants to publish some events and Microservice-B needs to listen to those events. In this microservices system, the same event will be coded in both ...
-1
votes
0
answers
63
views
Select and update and view a seat form 200 seats in Cinema App (Book a Seat) [closed]
I'm developing a cinema app in ASP.NET MVC using Entity Framework for my class as a last course project but I'm struggling a bit in how to update a seat in a matrix of 200 seats.
I have Movie, Seat ...
-1
votes
0
answers
23
views
How to "manually" check if user already logout from Identity Server? [closed]
We are planning to use Server Side Session and be able to logout user session from other device. Everything was fine until one of our old application which maintain its own session, the application ...
1
vote
1
answer
23
views
.NET Core and framework share particular session variables by SystemWebAdapter
Our ASP.NET Webforms projects have many session variables. Per SystemWebAdapter, I need to list of them by AddJsonSessionSerializer in Application_Start.
Is it possible that I can limit them to that ...
-1
votes
0
answers
17
views
How can I show all results of an aspx table on one page or export to csv?
Currently I am manually copying and pasting the results from the following website into a spreadsheet on a daily basis:
https://registers.maryland.gov/RowNetWeb/Estates/frmEstateSearch2.aspx
Obviously,...
0
votes
1
answer
48
views
Dotnet EF: Where to put db related Methods? [closed]
I have just started working on a dotnet CRUD application and was wondering where the db methods should go. We have learnt how to use a seperate container class for each model, which has methods like ...
0
votes
0
answers
27
views
ASP.NET Webforms integration with Azure AD
I have an ASP.NET Webforms application running on .NET 4.7.2 that serves multiple clients. One of these clients has an Azure account and they want to authenticate in our application using their Azure ...
-3
votes
0
answers
41
views
Data is not updating in the database after successful returning the updated rows [duplicate]
I login to my website and go to profile to update details and after clicking the edit button it redirects to the register page where registration and update operation happens. But it's not updating ...
0
votes
0
answers
8
views
Visual Studio, typing a comment /* etc */ very odd behaviour in aspx files
My Visual Studio 2022 community edition is behaving unusually when entering comments inside .aspx files, that should look like this.
/*
* This is a comment
* This is another line
*
*/
I've tested ...
0
votes
0
answers
34
views
Can't add migration in ASP.NET 8.0 with using MySQL [closed]
This is the error I get:
The exception 'Option 'sever' not supported.' was thrown while attempting to find 'DbContext' types. For the different patterns supported at design time, see https://go....
0
votes
0
answers
25
views
How to implement a conditional one-to-one relationship with Identity/Entity Framework/ASP.NET Core
I am having trouble determining how to implement the following scenario in an ASP.NET Core Web API using Identity and Entity Framework:
If an AppUser is given the Performer role when it is created, ...
0
votes
0
answers
5
views
AspNetCoreGeneratedDocument.Areas_Admin_Views_Product_Add.ExecuteAsync() in Add.cshtml
enter image description here
enter image description here
Web Errro Page
enter image description here
Hello, even though the information is correct, I am getting a NullReferenceException error.
The ...
0
votes
1
answer
8
views
Image uploader in Ck Editor 4 can't see loaded image
I am using Ck editor to edit my description field. When I click upload a file, its ok but ckeditor doesn't render image on textarea.
This is my config function that I use in _Layout.cshtml
<...
0
votes
1
answer
25
views
Resolving InvalidOperationException when Passing ViewBag Content List to Partial View in ASP.NET MVC
When I call the partial view inside normal view, I'm getting this error;
InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'System.String', but this ...
0
votes
1
answer
19
views
Automated Elastic Beanstalk deployment of dotnet application fails on both CodePipeline and GitHub Actions, but works manually
I'm trying to set up automated deployment of my .NET Core API application to an existing EB environment. I'm currently deploying manually via the AWS Toolkit (Publish to AWS) extension for Visual ...