nauvran
nauvran
CC#
Created by nauvran on 2/8/2023 in #help
❔ iHttpClientFactory in net 461
Having some issues building my project in a Azure DevOps pipeline after I tried to use ihttpclientfactory to deal with socket exhaustion and so on Getting this lovely message and I can't figure out how to handle it Package Microsoft.Extensions.Http 3.1.32 is not compatible with net461 (.NETFramework, Version=v4.6.1). Package Microsoft.Extensions. Http 3.1.32 supports: - netcoreapp3.1 (.NETCoreApp, Version=v3.1) netstandard2.0 (.NETStandard, Version=v2.0) One or more packages are incompatible with .NETFramework, Version=v4.6.1.)
59 replies
CC#
Created by nauvran on 1/23/2023 in #help
✅ DevOps .net core publish error
I'm using a DevOps setup with nugets pushed to artifacts, this works fine for the older projects But when I try and build this new project I get a "error NU1301: unable to load the service index for source https://api.nuget.org/v3/index.json I have permissions to the artifacts so it's not that. Thanks in advance
212 replies
CC#
Created by nauvran on 1/10/2023 in #help
❔ Ef tracking issue
I'm getting a "instance of entity cannot be tracked because another instance with the key value {productNo:10492} is already being tracked}" I have asNoTracking on my dB call, I've tried to detach all entities but there are none I've tried to remove as many relationships with the productNo as I can and nothing works
21 replies
CC#
Created by nauvran on 12/22/2022 in #help
❔ data is null. method or property cannot be called on null value
Everything but the ID is nullable on both the database and the model I've not set fluent api or the model up with all of the database tables values but it can't be the issue, can it? All I'm currently trying to do is just get a list of my object
24 replies
CC#
Created by nauvran on 12/7/2022 in #help
✅ testing EF CRUD functions
Is it worth trying to do? And if so should I mock the database and use unit tests or should i make integration tests? Most of the calls are fairly simple with a few relationships, there is however at least one function with a more complicated relationship between 6 tables where parts have to be converted to a viewmodel
16 replies