All Questions
27,331
questions
0
votes
1
answer
10
views
.ASPXAUTH cookie not being read by sub application
I have an asp.net v4.7.2 web app setup at, my.example.com in IIS. It uses asp.net Forms Authentication. It's Web.Config:
<httpCookies requireSSL="true" />
<authentication mode=&...
-2
votes
0
answers
35
views
In C# which library is faster to use read and write Excel or CSV? [closed]
I'm an intern, and right now I have an Excel sheet assignment.
I therefore need the data to be retrieved from an Excel sheet or CSV file. I now use the Microsoft.Office.Interop.Excel library, however ...
0
votes
2
answers
40
views
Deserialize JSON objects do different class names
I am using System.Text.Json to deserialize objects from an external API call in C#. I have created the classes for the data and is very straight-forward.
public class DocumentListRoot
{
...
0
votes
2
answers
21
views
How to pass a parameter from one partial view to another
I have a partial view of users with a shop details page. I have added a partial modal to mark users as sickness. This is my partial view of the users:
@model Shop
<div class="mb-3 d-flex ...
0
votes
0
answers
18
views
IIS 10 Configuration .Net Core/Angular and .Net Framework ASPX.Net issue
I am setting up a new Windows 2019 server with IIS 10.
I am trying to configure two web applications within the server.
One is a .Net Core/Angular 16 application, the other is a .Net Framework ASP.Net ...
0
votes
2
answers
42
views
Id not binding in controller
Im doing a dontnet website and am having issues with a method in my controller. This is the method in my user controller to allow users to view all their timecards. I tried logging to the terminal and ...
-1
votes
1
answer
40
views
Calling javascript function in .cshtml file
I am calling a Javascript function which is in a .js file from a .cshtml file as in
.js file code:
var LoginForm = document.getElementById("LoginForm");
var RegForm = document.getElementById(...
1
vote
1
answer
18
views
How to use IRouteConstraint in FastEndpoints
Anyone know how to use IRouteConstraint in FastEndpoints? I have a existing class implemented IRouteConstraint and want to reuse it when I migrate to FastEndpoints? (I use it to parse hashids)
0
votes
1
answer
33
views
Why my ASP.NET razor page app cannot access a specific endpoint?
I have an issue with my ASP.NET app where it cannot access a specific endpoint. It throws a 502 error in Azure and a request timed out on my local machine. The endpoint I want to access is the ...
-3
votes
0
answers
25
views
Authentication and Authorization issue [closed]
How can I configure authentication and authorization for an ASP.NET Web API (running on "legacy" .NET framework)c#?
Just a simple and an efficient way to do it, I keep find configurations ...
1
vote
1
answer
35
views
.NET Firebird client connection error, System.BadImageFormatException
I keep catching the following exception when trying to open a Firebird SQL connection. I suspect there may be an issue with the connection string I have supplied.
System.BadImageFormatException: 'An ...
0
votes
0
answers
20
views
Can't read template path after deploying
This is my source code structure:
src
├── Application
│ ├── Adapters
│ │ ├── MailSender
│ │ │ ├── MailTemplates
│ │ │ │ ├── file1.xml
│ │ │ │ ├── file2.xml
│ │ │ │ └── file3.xml
│ │ │ ├── Interfaces
│ ...
1
vote
1
answer
44
views
What is the default ASP.NET http/https launch profiles (launchSettings.json) server and how do I configure it?
For the last few years, the default launch profile for ASP.NET Core projects are http or https (beside IIS Express). I can't find any info on what exactly is launched (is it Kestrel?) or how do I ...
1
vote
0
answers
24
views
Does `ReadAsMultipartAsync` use preloaded buffer data?
If I use Request.Content.LoadIntoBufferAsync() to limit the buffer size, does Request.Content.ReadAsMultipartAsync() read the content from this preloaded buffer, or does it read the content fresh?
...
0
votes
0
answers
15
views
.NET framework IIS Irregular Session Expiry
I have a website hosted on IIS and an SQL Server on a separate server. However, we're encountering sporadic session expiry issues when users navigate the website, leading to frequent logouts.
<...