Passing ViewModel with Dictionary properties to View throws NullReferenceException
I have a ViewModel that includes two Dictionary properties, Genres and Producers, which I want to send to the View. However, when I try to loop through the Dictionary properties in the View, I get a NullReferenceException error. The data appears to be…
Converting ASP.NET MVC Framework csproj Question
Hello - I have a few different ASP.NET MVC projects that build on .NET Framework 4.8 I want to convert to the new SDK style csproj format. I was able to convert it over fine, but once I try and publish the project, all of the DLL files are not located…
How to invalidate .AspNet.ApplicationCookie Cookie in ASP.NET MVC 4.6.2
Hi Sir/Madam I have web application using ASP.NET MVC 4.6 version. In Startup, I am creating ApplicaitonCookie like below app.UseCookieAuthentication(new CookieAuthenticationOptions { AuthenticationType = "ApplicationCookie", ExpireTimeSpan =…
Windows service HttpClient with HTTPS support
Hi.I have a **Windows service** that makes calls to an http web page via an **HttpClient **object. Now the website is HTTPS but when I call the https page it gives an "Unauthorized" error. I am using Visual Studio 2013 with .NET Framework 4.5.
Compression and Encryption of files while sending over network
Is compression and encryption mandatory when sending files over the network using ASP.NET, or does the ASP.NET web service handle these tasks by default?
Autocomplete list Selection using Key Up/Down in Textbox and Scroll should move in asp.net c#
When pressing the up or down keys in an autocomplete textbox, if dropdown options are available, the selection should move through the values, and the scroll should adjust accordingly, moving from top to bottom or bottom to top based on key…
Multiline asp:textbox (into a asp:gridview) auto adjust it's height according to the amount of text
Hi forums, I would like to consult about a issue I am facing. I have a gridview where there is a textbox that is filled from a SQL DB when such info is called from a click event, but I want to adjust the height according to the amount of text is pushing…
valdiate gridview data using asp.net c# code behind on button click
Hello This Is my MS sql data /****** Object: Table [dbo].[Table_11] Script Date: 09/22/2024 19:00:36 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Table_11]( [ID] [int] IDENTITY(1,1) NOT…
Debugger is not hitting breakpoint set in SharePoint 2010 application code in Visual Studio
I have my SharePoint 2010 application code in Visual Studio. I did clean, rebuild and deploy solution. I have done "Attach to Process" w3wp.exe files in the debug, but debugger is not hitting breakpoint when trying to work on UI. IIS reset is…
Migration from .NET 6.0 to .NET 8.0: Compatibility and Considerations
Hello everyone, We have a solution with a vast number of projects, and we are aiming to migrate some of the components to .NET 8.0. Before proceeding with the migration, we want to ensure that we will have full compatibility and support for it. Our App…
Performance issues in Session State
Hi. We are running a .Net Framework 4.8 mvc web application with redis session state setup. We are experiencing performance issues and the profiling we have done indicates that session state, specifically GetSessionStateItemAsync, is waiting for long…
ContosoPizza.http file not being created
When following the tutorial for creating a web API project, on page 3, part 4, i enter the following command: dotnet new webapi -controllers -f net8.0 however it does not create the ContosoPizza.http file as the guide states it should. Please advise…
how to return value from popup table to the C# asp.net code
Hi, On clicking a button on UI, we have to show a dialog or Popup Table on the center of the screen asking user to enter integer value of area(Mandatory) when one condition is met, then user clicks Ok(which has captureAreaVal() function in my script as…
Azure app service reverts to previous version
I have blazor web app I'm deploying to Azure App service using VS2022 Preview publish feature. I have upgrade my project target framework to .NET 8. And I have my publish setting target framework to .NET 8. However after publishing the app the…
Replicating ASP.NET Request Validation Behavior in .NET 8 for Automatic Input Validation ?
In our current ASP.NET Framework 4.7.2 application, we utilize request validation to automatically check for potentially malicious input by setting requestValidationMode to 4.0 in the web.config file. This ensures that requests are validated for…
Issue with an earlier well functioning AppService
Hello Team, I would like to ask your help in a technical issue. I am creating an AI chatbot flaskbased application , where using mostly open source libraries. For semantic search and ranking I am using FlashRank library…
when get data from procedure exist on PostgreSQL it show not exist although it exist?
I create stored procedure on PostgreSQL as below CREATE OR REPLACE PROCEDURE app_sec."app_perm_sp_pkg$get_all_tenants"( IN p_tenant_cur refcursor, OUT p_status integer, OUT p_status_desc text) I try to get data by call sp from PostgreSQL…
DriveItem AdditionalData Patch method with error in Graph Api
I'm creating an API with ASP.NET Core that accesses a list/drive with the graph api and at some point I need to update an item that was created in the drive library to add an ID (which is a custom column), but I'm getting an invalid request error, can…
Calling a Web Api from a WCF client
Yes , I know its kind of weird . I have a web app running with 4.5 Framework. It has some Wcf clients configured in web.config to access the usual soap services. Now I am in a situation where I need to call some Web Api ( whose implementation I don't…
Use Enter key press for focus change and check input before submit form
I have a asp.net form content dropdownlist, textbox and button. I want to implement Enter key press to change focus and check input before submit form. I use onkeyup="EnterPressFocusChange(this, event)" for change focus and…