Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
30 views

Unable to send a local image that isn't under wwwroot to openai using its new .NET library

I have an ASP.NET Core 6 Web API with the new official library from OpenAI (https://github.com/openai/openai-dotnet). What I'm trying to do, is to use a local image file to OpenAI. The file isn't ...
Moshe Az's user avatar
0 votes
0 answers
26 views

Any pitfalls in upgrading a WPF application from .Net 6 to .Net 8?

We're looking to upgrade some large WPF solutions from .Net 6 to 8, and my understanding is that the process should be straightforward (changing the projects' target framework). But are there any ...
Andrew Stephens's user avatar
0 votes
0 answers
42 views

Populate a many to one relationship and how to show data input only once but increment if the date in the input are the same

I am currently working on a web project that required user to input a group of value for each person in a department per day then display it in two other index for day and month. I'm having problems ...
Trung Đặng Đức's user avatar
-1 votes
1 answer
46 views

C# WPF Change Text Event From TextBox

i have a problem. I made a new class called "LetterBox" this class inherits from TextBox everything is working for now. But here comes the problem: I need the Event or Function that "...
Aquedus's user avatar
  • 23
0 votes
1 answer
29 views

Can't load System.Net.WebHeaderCollection

.net 6.0 project, it throw the exception can't find a dll version 6. this is the error: System.AggregateException: One or more errors occurred. (Could not load file or assembly 'System.Net....
user2282331's user avatar
0 votes
0 answers
20 views

AsyncWebserver_Teensy returns invalid status line

Problem My teensy is connected to 4 Serial devices and I use the Webserver provide access to them over a local network. I have a Raspberry Pi that is requesting data from the Webserver in multiple ...
Marius's user avatar
  • 23
0 votes
1 answer
75 views

403 from Azure only in a specific endpoint with specific version of the API

We developed a middleware service Web API app in .NET 6 with several endpoints and deployed it to Azure. We get a strange error with an endpoint that implements a POST method. If we change the version ...
oiradIta's user avatar
0 votes
3 answers
84 views

How to let HostedService run after host started?

I have a .NET 6 console app. Program.cs code: using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using System.Threading; using ...
ahdung's user avatar
  • 379
0 votes
0 answers
25 views

How to version web models and service layer in .net 6.0 API? [closed]

We recently started writing REST API in our API project and implemented API versioning using asp.versioning package. We are currently only versioning controllers and service layer. The problem is with ...
Aswin Francis's user avatar
0 votes
0 answers
48 views

BinaryFormatter exception when trying to Get non-existing preference key in SettingsProperty in System.Configuration.ConfigurationManager

using System.Configuration; var provider = new LocalFileSettingsProvider(); var context = new SettingsContext(); var attributes = new SettingsAttributeDictionary(); var attr = new ...
Balle's user avatar
  • 67
0 votes
1 answer
84 views

How does ObservableCollection/INotifyPropertyChange work when object is changed

I have a situation where in one view model some properties on an object are updated. In another view model, I subscribe to a message and then update a collection with this new object, e.g.: ...
WSC's user avatar
  • 978
0 votes
0 answers
20 views

How to use the intelmkl.redist.win Nuget package in an .NET 6 project with Excel.DNA?

I am working on a .NET 6 project and using Excel-DNA (version 1.8.0). I want to integrate some functionality from Intel MKL. Intel provides a NuGet package for redistributing the native libraries, ...
Freakazoid's user avatar
0 votes
1 answer
37 views

How to create a custom object from a register page

I want to create a Department object that doesn't exist yet an assign it a AppUser along side a Person object then add it to database during the registration process with .net 6.0 ef identity ...
Trung Đặng Đức's user avatar
1 vote
1 answer
40 views

How to insert a custom object into an User using foreign key

I'm currently having problem with displaying a custom object property because the program doesn't seem to insert the associated value from the table with appropriate foreign key. Here are the codes ...
Trung Đặng Đức's user avatar
0 votes
1 answer
41 views

How to use razor renderer in .NET 6?

In my .NET 4.8 Web API application, I take an externally received HTML formatted string and convert it to a .cshtml file using Razor Engine, then append it to my page with JavaScript. I do this using ...
Emre Ceylan's user avatar

15 30 50 per page
1
2 3 4 5
240