Skip to main content

Questions tagged [.net-6.0]

For questions about Microsoft's .NET application development framework that are specific to version 6.0+ of the framework. Use only If your question are version-specific

1 vote
0 answers
22 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
71 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
29 views

In one of the cshtml files,namespaces can not be found

I am using visual studio 2022 .net 6. All the other cshtml files within the same project are not showing any issues. Only in one cshtml file, the namespaces are not able to be found. All the ...
Hchavan's user avatar
0 votes
1 answer
45 views

How to populate CreateGroupViewModel

I'm having trouble with inputting value into a ViewModel as it keep returning null after the value is inputted via cshtml. Value I input in cshtml After hitting confirm CreateViewModel.cs public ...
Trung Đặng Đức's user avatar
0 votes
0 answers
24 views

I am trying to use gRPC between .NET 6.0 as a service and .NET 4.7 as Client side. I am getting an error on the Client side it doesnt support HTTP2

I have a solution built on .NET 6.0 and I want to use its functions from another solution restricted to .NET 4.7. I am getting an error when using GRPC on the client. The first trial was on .NET 6.0 ...
Seif Elkady's user avatar
0 votes
0 answers
19 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
42 views

Microsoft.AspNetCore.Server.Kestrel.Core vulnerability issue - fix

what is the latest version of "Microsoft.AspNetCore.Server.Kestrel.Core" in the series of 6 like Version="6. * . *" In nuget gallery it is not available any thing later than v2.2.0 ...
pingpong2020's user avatar
0 votes
0 answers
47 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
83 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
-1 votes
0 answers
57 views

Convert Windows Forms to .NET 6 [closed]

I'm migrating my Windows Forms application to .NET 6. I was able to do the migration without any problems, however in Visual Studio, when I press SHIFT + F7, I can't open forms in design mode that ...
Ednilson Teixeira's user avatar
0 votes
0 answers
18 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
36 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
0 votes
0 answers
29 views

ASP.NET Core 6 Web API : password popup on new server

We are moving to a new Windows Server 2022 and when using Swagger, some users are experiencing a popup window asking for username and password when trying to run an operation. Others are able to run ...
Webbert's user avatar
  • 63
0 votes
1 answer
43 views

WebOptimizer cache busting not working on Azure

I am using ASP.NET Core Web Optimizer. It has cache busting feature that will append a unique string to the end of script or CSS links. A sample of the appended string is like this: ....script.js?v=...
Ashutosh Gupta'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

15 30 50 per page
1
2 3 4 5
395