Category "asp.net"

Getting contacts from Exchange instead of Outlook

I am currently developing an application to be used internally only at work. I need to get the currently logged in user's contacts to use in the application and

Making database mdf work across different computers

I know this is kind of a stupid question but it gives me a lot of problems. Me and my partners in college projects have a lot of issues making the database mdf

IFormFile always return null in asp.net core 2.1

Here's how I upload file my Api action : [HttpPost] public async Task<BaseListResponse<MediaStorageModel>> MediaBrand(IFormFile file, int brandId)

sql server net_address

I have 2 applications in IIS which are calling same database. When I am executing the stored procedure which has below query, it returns 2 net_addresses every

Add new item to List object C#

I want to add new object to a list: My code: List<geo_tag> abc = new List<geo_tag>(); abc.Add(new geo_tag() { latitude = 111, longitude = 122, unit

ASP.NET not sending session cookie

What would cause ASP.NET to not send a session cookie to the client? I've noticed that, first of all, "ASP.NET_SessionId" cookie is set in both the Request.Coo

Is there a way to skip MediatR Pipeline?

I would like to cache some responses from CommandsHandlers. I Already did this using IPipelineBehaviour, but only 5% of my requests really must have cache, and

.Net Core 2.1 - Cannot access a disposed object.Object name: 'IServiceProvider'

I just migrated .NET Core 2.0 to .NET Core 2.1. Everything went fine, but when I try to login now I get the folowing error: $exception {System.ObjectDispos

ASP.NET_SessionId cookie for asp.net webform based website need GDPR compliance

I have a website which where developed in asp.net webform few years back & due to GDPR compliance i am not sure ASP.NET_SessionId cookie need user explicit

AutoMapper - Trying to flatten my object property to string but getting an error

I am trying to map my ProductDto to Product class. I get an error when mapping the string property in ProductDto class to a Brand property in the Product class.

The instance of entity type cannot be tracked because another instance of this type with the same key is already being tracked

I have a Service Object Update public bool Update(object original, object modified) { var originalClient = (Client)original; var modifiedClient = (Cli

ASP.NET Core MVC (2.2) Error Middle-ware not triggering error pages

In my ASP.NET Core MVC (2.2) app I have completed the setup for a global error handling class. I inject this class in the Startup.cs of my project by using app.

Error adding migration when data models are in a separate assembly

I've just setup new projects, Pegasus (my main web application) and PegasusEntities (my database objects). My Pegasus start-up code includes the following. buil

Bootbox does the same for "ok" and "cancel" callback. It does the same for prompt as well

Bootbox closes and stays on the same page. It should redirect to a different page onClick and "ok" after that. It is an MVC application and redirects to Index a

How to download file on browser from Dotnet core endpoint

I have a react front-end and the dotnet core web API project on the back-end. I have an endpoint on which a client can request a file using fileId from my react

Connector/net does not support server versions prior to 5.0 after downgrading connector/net and mysql server version

Hi I believe there have been some similar topics regarding connector/ net not supporting server versions prior to 5.0. I have been trying add in a connection

Xamarin forms set Picker SelectedItem

I am working with a xamarin Forms. I am using Picker for DropDownList. How can I set selectedItem to Picker? My code <Picker x:Name="VendorName" Title="Se

Need help populating an ASP.net gridview using JSON datasource in c#

I have to create a gridview that is automatically populated with JSON. I have created the JSON folder, it works fully, i can save data to it no problem. The i

WindowsImpersonationContext & Impersonate() not found in ASP.Core

I had the following in a .NET Framework 4.0 assembly: var newId = new WindowsIdentity(duplicateTokenHandle); WindowsImpersonationContext newId = ImpersonatedIde

Could not load file or assembly... An attempt was made to load a program with an incorrect format

I am having issues with a dll that I made reference to in a visual studio website project. It works fine on my local machine. The file is in the bin folder of t