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,708
questions
0
votes
0
answers
7
views
How to create a custom object from a register page
I want to create a Department object that doesn't exist yet an assign it a AppUser along side a Person object then add it to database during the registration process with .net 6.0 ef identity ...
0
votes
0
answers
7
views
Connecting to Azura sql server usign visual studio code on mac
So i'm started to learn .NET CORE API and i have stopped at how to connect it to a database.[[enter image description here](https://i.sstatic.net/M6o9bSYp.png)](https://i.sstatic.net/9QDt2RvK.png)
**
...
0
votes
0
answers
7
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 ...
-3
votes
1
answer
29
views
getting an error "cannot assign void to implicitly type variable" [closed]
IWorksheet TestActiveSheet = fpSpread1.AsWorkbook().ActiveSheet;
var image = TestActiveSheet.Cells["A2"].InsertPictureInCell(@"D:\Tmp\Image.png");
image.Sizing = SizingMode....
-1
votes
1
answer
21
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....
-1
votes
0
answers
26
views
web.config to block ip address ranges [closed]
I have a GoDaddy site that I have noticed the last few months that now 95% of my web traffic is scanning from Chinese ip addresses. I've tried putting in a security section to filter them out, but it ...
0
votes
0
answers
35
views
Passing a model to a view in ASP.NET MVC 5 [duplicate]
When I hit a breakpoint in the Update method shown below, all of the properties of model are populated with values that are not null. The user enters the values on the Index view. They are seen in the ...
0
votes
0
answers
18
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
36
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
20
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
14
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 ...
-2
votes
2
answers
36
views
Hyperlink inside of a Label [closed]
I'm trying to add a hyperlink inside of a label in an Intranet application. This application is only visible inside of our company, and I want to be able to allow the user to click on part of the ...
0
votes
0
answers
19
views
I want to download a folder on clicking on link button in ASP.NET VB [closed]
I want to download a folder on clicking on link button.That folder must be contain one excel and another folder with some image document in asp.net vb
I want to download a folder without zipping.
I ...
0
votes
0
answers
17
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
17
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'...