201,252
questions
0
votes
0
answers
8
views
Decrypting ASP.NET 8 authentication cookie
ASP.NET 8 MVC application uses cookie authentication defined in startup.cs:
services.AddDataProtection().PersistKeysToFileSystem(new DirectoryInfo(@"Voti"));
services....
0
votes
1
answer
24
views
ASP.NET MVC / Razor : using date picker with string field
I have the following "date" fields in my model that are representing as a string:
I have the following in my view:
My question is how do I get cast the string properly to fit the date ...
0
votes
0
answers
43
views
Format of the initialization string does not conform to specification - using same string for EF that worked for SqlClient
I am transitioning from code that uses Microsoft.Data.SqlClient to Microsoft.EntityFrameworkCore in .NET Core 8.0. I have a connection string that successfully connects to a local SQL Server Express ...
0
votes
0
answers
28
views
Image crops when Scrolling ASP.NET MVC
I have an image cropping when data is more than the actual page (if that makes sense). When I scroll, I want the image to always be in the background regardless of whether it is being scrolled.
The ...
0
votes
1
answer
88
views
How to handle a array of Json object in Cosmos db using C#
I am working on an API which just add a record in a document which has the below JSON body.
My problem is the Status always shows null in CosmosDB.
I am sure the I am not handling the class definition ...
0
votes
0
answers
26
views
Migration to .Net 3.1 Controller calls are redirected to Login
Recently migrated .Net 2.2 website to .Net 3.1 (On my way to .Net6 or 8)
It's a website built with razor pages and a handful of controllers. Another application calls these controllers to read in ...
0
votes
0
answers
24
views
How to translate Workday SoapUI API calls into Postman and C# / .NET with same endpoint but different operation?
I am working on API project using Workday APIs. Based on the data given by Workday, I could test API calls from Soap UI and get responses back.
Here under this Workday Revenue Management Module, we ...
0
votes
1
answer
54
views
Azure CI/CD build Pipeline fails refers old Microsoft.Data.SqlClient.SNI 1.1.0 but it was updated to 3.0.2 in feature branch
The .Net Framework 4.7.1 MVC Web App Azure Build pipeline fails and give the following error. The Microsoft.Data.SqlClient.SNI.1.1.0 Nuget is updated 3.0.2 in feature branch and when I create pull ...
0
votes
0
answers
28
views
IIS "Disable HTTP/2" option still gets h2 requests
we have some old app we are supporting. There is a functionality which allows uploading photos. However, in some cases (specially using larger, multiple files), some requests end in ...
-3
votes
0
answers
23
views
Empty Report In Fast Report [closed]
I use Fast Report. I have a specific condition. If this condition is met, I want to print a blank report with no columns or rows
I am Trying
Data.Visible = false
GroubHeader.Visible = false
...
0
votes
1
answer
30
views
ASP.NET: Webpage doesn't update upon refresh after code changes
The project is run without debugging. The web app only updates upon refresh for code changes in Index.cshtml. Changes in controller .cs files are not reflected in the page upon refresh.
Scenario:
...
0
votes
1
answer
47
views
Unable to Update Enum Property in Entity
I am having trouble updating the enum property in my Question entity. Below are the relevant parts of my code and error message:
The tag helper 'option' must not have C# in the element's attribute
...
0
votes
0
answers
27
views
Entity Framework Save data that exceeds 50kb issue
Details:
Entity Framework 6.4.4, using Owin and OData. (not sure if that helps with explaining).
Asp.net Mvc project, using .net framework 4.7.2 (limitation of legacy projects that cannot be updated ...
-1
votes
0
answers
30
views
How to change SSL port for https with an ASP.NET MVC application deployed on IIS in an Azure VM?
I've inherited an older ASP.NET MVC project deployed to an Azure VM, and I'd like to make a duplicate website on the VM so I don't test by deploying to production.
Ideally I'd like to take what's ...
1
vote
1
answer
43
views
User always fails authentication after a successful login when using Identity alongside SSO
I have a requirement to allow users to authenticate either by SSO or Identity login.
I can get either working on their own but when trying to allow both I get this:
SSO works as expected and the user ...