Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

ASP.NET MVC app on .NET 4.7.1 has origin set to null in request header or not found (but expected origin is set to domain url)

An ASP.NET MVC web app on .NET 4.7.1, when accessed in Chrome browser, the request header has no origin. The request header should have origin set to domain name. When I access first time, it redirect ...
user3497702's user avatar
0 votes
0 answers
14 views

An item with with the same key has already been added

I am following a tutorial of model-first approach in ASP.NET MVC in which I am using ADO.NET Entity Model Data, empty EF designer model and when generating the database after defining it's properties ...
Yash Gupta's user avatar
0 votes
1 answer
23 views

An unhandled exception occurred while processing the request when Scaffolding an Entity

To give you some context: I am currently working on a simple CRUD Scaffolded MVC table. And I am having trouble Implementing the Relationships. Simple independent tables work just fine as is just ...
yzkael's user avatar
  • 99
0 votes
0 answers
77 views

Why does this ASP.NET MVC controller hang the AppPool in IIS?

This is in C# ASP.NET MVC 5 with Entity Framework 6, .NET 4.8, MySql, IIS. I seem to be getting a race condition here: LogErr("set AppAgent start"); _AppWebsite = db.Websites ...
EamonnM's user avatar
  • 2,271
0 votes
0 answers
38 views

Trouble updating Entity Framework

To give you some context: I am trying to workout how to make EF Core work and failing miserably I might add. I am currently stuck on a problem that just I don't know why it isn't working out. I just ...
yzkael's user avatar
  • 99
-1 votes
1 answer
69 views

How to change page icon color in browser tab

Fontawesome free icons are used as page icons like <html><head> <link rel='icon' href='https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/svgs/solid/pen-to-square.svg'> </...
Andrus's user avatar
  • 27.6k
0 votes
0 answers
27 views

Azure B2C Logout Implementation in ASP.NET Core MVC and ASP.NET MVC applications

I'm currently working on multiple applications using different frameworks: two ASP.NET MVC applications on legacy .NET, and one ASP.NET Core MVC application. All of these applications use Azure AD B2C ...
Hamza Ali's user avatar
  • 390
0 votes
0 answers
25 views

Can't get "prompt=login" working after upgrade to Startup.cs logic

As part of an app upgrade I needed to make several upgrades(Dot.Net 4.5 > 4.8, Owin and OpenIDConnect. I'm not very familiar with that part of the application, so the code changes below were ...
bregia's user avatar
  • 75
0 votes
0 answers
31 views

Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'IdentityServer

Getting error on running Run that says: Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'IdentityServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. ...
Oleksandr Svyrydov's user avatar
1 vote
1 answer
51 views

Where to add validation attributes in ASP.NET Core 8: Model or DTO?

I'm learning ASP.NET Core 8 and trying to understand the best practices for applying validation attributes to data. I have a situation where I'm using both a model and a DTO in my project. For example:...
Ninja_Tuna's user avatar
0 votes
0 answers
31 views

Chart.js Panning Not Working in ASP.NET MVC Application Using chartjs-plugin-zoom

I'm developing an ASP.NET 8 MVC application where I'm using Chart.js to display two real-time line charts: one for "Penetration Depth" and another for "Hydrophone Audio Levels." I’...
dylan DA's user avatar
0 votes
1 answer
19 views

I need to use underline tool option for my ckeditor used in .net mvc project

I used this ckeditor cdn <script src="https://cdn.ckeditor.com/ckeditor5/39.0.1/classic/ckeditor.js"></script> When I use this code in js for ckeditor creation with toolbar ...
PK CREATIONS's user avatar
0 votes
1 answer
71 views

How to deploy Azure CI/CD to deploy solution that has 2 sqlproj

I have CI/CD pipeline that deploy .Net MVC Web App to web Server. The release task has "D:\Deployments\sqlpackage-win-x64-en-162.2.111.2\sqlpackage.exe" /a:publish /targetservername:test....
user3497702's user avatar
1 vote
1 answer
36 views

In a .NET design, how to combine services (dependency injection) and object with constructors?

We are redesigning an ASP.NET MVC application that has business logic in helpers. We want it to have DI services (passed to controllers by dependency injection). We have 2 concepts that we don't ...
roberth's user avatar
  • 962
-1 votes
1 answer
44 views

CS1061 Why can't I use "ToList" [closed]

UserTypeList = new List<UserTypeMV>(); foreach (var usertype in new DatabaseLayer.Pro_Database().UserTypeTables.ToList()) { UserTypeList.Add(new UserTypeMV() { ...
Erik's user avatar
  • 1
0 votes
1 answer
34 views

Don't show the success message by using toastr.js after deleting the category with the sweetalert2.js, just showing the error: toastr is not defined

I want to show a successful delete message by using toastr.js when any user will click on the delete button, first it will show alert, so I use sweetalert2.js, but after confirming delete in ...
Maruf Hasnat's user avatar
1 vote
1 answer
24 views

Can't edit the category by id, after creating the category on the same modal by one Upsert Action in Asp.net MVC

The problem is after successful creation, when I hover the Edit button, the link is correctly showing but when I click on the Edit button it is showing Add New Category that means create feature, ...
Maruf Hasnat's user avatar
0 votes
0 answers
40 views

How to generate SOAPRequest using Input C# Object and Deserialize SOAP response into C# OutputResponse Object

I am trying to achieve these 2 things: Generate SoapRequest from this Input C# object Deserialize Big SoapResponse into C# object I have tested the Input SOAPRequest in Postman. I have directly ...
Rita's user avatar
  • 11
0 votes
0 answers
17 views

Custom Authorize attribute that checks if user has a particular username or is in roles

How can I make an AuthorizeAttribute that checks if user is in string containing groups and usernames. I've tried the following but it does not work. [AttributeUsage(AttributeTargets.Class | ...
Nikola's user avatar
  • 105
-1 votes
0 answers
71 views

Showing letters instead of years

var cantidadEmpleadosContratadosPorAno = empleados .GroupBy(empleado => empleado.FechaContratacion.Year) .OrderBy(grupo => grupo.Key) .Select(grupo => new ...
Rodrigo Bonilla Barreda's user avatar
0 votes
0 answers
15 views

Dynamic images loading very slowly

This streams images from a DB to the top of a _Layout just below the Navbar, so they have to be reloaded each time the user navigates to a new page - but it's very slow, almost one second per image. ...
gchq's user avatar
  • 1,725
0 votes
1 answer
46 views

Github for Visual Studio 2022

I couldn't log in to Github from Visual Studio 2022 to upload the code to Github. I researched, but couldn't find a solution. I also took down Visual Studio to save it but it didn't work, so I came ...
Tân Phan's user avatar
0 votes
1 answer
56 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 ...
H22's user avatar
  • 159
0 votes
1 answer
33 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 ...
DonDavid12's user avatar
0 votes
1 answer
100 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 ...
Himanshu Kumar Sinha's user avatar
0 votes
0 answers
34 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 ...
Jason S's user avatar
0 votes
1 answer
32 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 ...
Rita's user avatar
  • 11
0 votes
1 answer
60 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 ...
user3497702's user avatar
0 votes
0 answers
40 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 ...
Misko's user avatar
  • 129
0 votes
1 answer
38 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: ...
alex1923's user avatar
0 votes
1 answer
49 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 ...
onurkaygn's user avatar
0 votes
0 answers
32 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 ...
user15622687's user avatar
-1 votes
0 answers
33 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 ...
ruffin's user avatar
  • 17.3k
1 vote
1 answer
44 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 ...
DarkW1nter's user avatar
  • 2,941
0 votes
1 answer
53 views

.NET MVC Azure Pipeline deployment - IISWebAppManagementOnMachineGroup not working as intended

I'm trying to deploy my .NET Framework MVC app to VM, using Azure Pipelines. Relevant code: - task: IISWebAppManagementOnMachineGroup@0 inputs: IISDeploymentType: ...
guidempty's user avatar
1 vote
1 answer
28 views

Merging File Upload and Template Creation Messages in ASP.NET Web API with RabbitMQ

I am developing an application using ASP.NET Web API and Angular with two main functionalities: File Upload: Users can upload files, and upon successful upload, the server generates URLs for these ...
PASHA's user avatar
  • 47
0 votes
0 answers
25 views

ASP.NET MVC partial view rendering so slow

I am working on an ASP.NET MVC web project on .NET 4.7.2. When I click on a dynamically generated menu in _Layout.cshtml, it navigates to the corresponding page. However, the first request sent for ...
김태군's user avatar
0 votes
0 answers
12 views

How to render Emoji or other special symbols in C# coming from YouTube RSS Feed

How to display strings below with a smiley face or other sybmbols in C# View coming from YouTube RSS Feed: Have you ever seen THIS on TOUR? 😳 media:titleNEAR ACE from Caitlin Clark 🔥</media:...
Dmitri's user avatar
  • 716
0 votes
2 answers
78 views

.NET 8 IFormFile always return null

When uploading a file in a form post operation, the IFormFile parameter always returns null. When I try it with the basic project version in a simple operation, it reads the file and does not return ...
erayyal's user avatar
0 votes
0 answers
22 views

Adding an IIS Self-Signed Certificate to a Windows Container for a legacy ASP.NET MVC application

I am developing a Windows container for my legacy ASP.NET MVC application (on .NET 4.8) and have successfully built and deployed it using Docker. However, I am facing issues when trying to add a self-...
user3732708's user avatar
0 votes
1 answer
32 views

Why does partial returns duplicate partial view on error

I have a .net MVC project that renders a partial view. The button should append a a partial using jquery which is working, but the issue happens when i send the form. code for appending the HTML: ...
aRtoo's user avatar
  • 1,892
2 votes
2 answers
51 views

How to get route value of action attribute in controller?

I have the action method defined like below: [Route("example-page")] public ActionResult MyAction() { // I want to use "example-page" in here, like a query parameter. ...
Flynetcan's user avatar
0 votes
1 answer
70 views

How to display hierarchy with bootstrap rows - columns

I currently have a flat list that represents multilevel hierarchical data, then convert it to hierarchy. But when trying to display it in a vertical diagram like manner I'm at total loss as the ...
Alexeir7's user avatar
-1 votes
0 answers
30 views

How to obfuscate javascript file using .net core mvc web application in visual studio 2022

I am working with .net core mvc 6 (cshtml) application, where i have a module, in which i have one javascript file, and i want to obfuscate that javascript file. builder.Services.AddWebOptimizer(...
user24192006's user avatar
0 votes
0 answers
11 views

Coravel has issue with cron values

I'm trying to implement the Coravel library in my project; however, I have difficulty getting it to work correctly with 'cron' values. It works for every second cron expression (* * * * ) or ( * * * 4)...
Odw Mai's user avatar
  • 17
0 votes
0 answers
13 views

ASP.NET MVC web app solution folder has codetemplate cs.t4 for controller, view, area, etc and how to check whether it is used?

An ASP.NET MVC web app on the .NET Framework 4.7.1 has codetemplate cs.t4 in its solution folder, for controller, view, area, etc. How to check whether it is used? Please advise
user3497702's user avatar
0 votes
1 answer
28 views

Dynamic filter for data in Datagrid on ASP.NET side

I have an ASP.NET page with Ajax and a datagrid (datatables). The datagrid has search fields in the columns. For the normal search field, the data from the data source is filtered as follows: myData = ...
nonPro's user avatar
  • 3
0 votes
1 answer
27 views

Sending the value of the toggle checkbox to controls in ASP.NET MVC

I have the onoffswitch-checkbox style, if I do not write "class=form-control", the controller returns a null value. Class=form-control was used in all the examples and video explanations I ...
Serdar's user avatar
  • 3
0 votes
1 answer
36 views

Html.HiddenFor assignment

I am trying to assign a value after the user clicks a button. My element is initialized using Html.HiddenFor as follows. @Html.HiddenFor(model => model.WirelessServices[Model.WirelessServices....
Zyorhist's user avatar
1 vote
0 answers
42 views

SignalR client keeps sending empty objects messages to server(How to track and log them)

As you can see in the picture, the client keeps sending empty objects messages to the server every 10 seconds, and I want to log these messages. How can I track it? By logging these messages, I can ...
AmirHosseinMp02's user avatar

1
2 3 4 5
4026