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

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

.net-6.0
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
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
52 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
1 vote
1 answer
61 views

Rebuild skip all project in Visual Studio 2022

I do not understand why Visual Studio skips all the projects to do rebuild of the solution. The output console only shows that the projects were skipped. I have tried deleting the bin, obj and .vs ...
rub's user avatar
  • 13
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
0 votes
2 answers
85 views

Need help to replace a switch in C#

I have a console application in .NET 6 that receives one argument, and based on that, has to decide which operation will be executed. At first, I had all the operations as static methods and ...
DevSurferPTPXO's user avatar
0 votes
2 answers
46 views

How to use Enumerable.Aggregate without getting CS0411 error

There are two DTO records: public record struct DateHour(int Hour, double? Value); private record struct HourSnapshot(uint TotalSeconds, double? Value); I have another method which works with enum. I ...
Anthony Voronkov's user avatar
0 votes
0 answers
61 views

Found multiple publish output files with the same relative path. while publising ASP.NET Core 6 project

In .NET Core 6 where when publishing with Web Deploy via Visual Studio 2022, I get the following error: Error: found multiple publish output files with the same relative path: There is no issues ...
Hemanth Reddy's user avatar
0 votes
1 answer
23 views

AppKit.NsWindow error on .NetMAC OS application after migration from Xamarin.MAC

I have Xamarin.MAC native application built with C# language. Since the Xamarin support is stopped, I have to migrate it to .Net MAC OS. But I am not seeing the AppKit.Window in the .Net MAC OS. In ...
Roshil K's user avatar
  • 2,683
1 vote
1 answer
63 views

Is it possible to use ProtectedLocalStorage without regular .NET Core?

Seems like an obvious upgrade from regular localstorage, but I've only seen it used with Blazor. I'm using ASP.NET Core 6.0 MVC. Should I just put this in my program.cs? builder.Services.AddScoped<...
andreaskev's user avatar
0 votes
0 answers
61 views

ASP.NET Core 6.0 Web API : cannot context switch to another account to start an executable

I have an ASP.NET Core 6.0 Web API that runs on IIS 7. The application pool is running under an account local to the machine but not the local system, call it 'local-system-web-account'. I am trying ...
Josh's user avatar
  • 10.5k
1 vote
1 answer
49 views

Unexpected System.BadImageFormatException: Index not found That is Fixed with Restart

I have an ASP.NET Core 6 MVC web application hosted on IIS that all of a sudden started throwing the following exception: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of ...
Sal's user avatar
  • 5,478
-1 votes
1 answer
53 views

EntityFramework pretends to have updated a row but it doesn't

I wrote an InsertOrUpdate() method which uses my EntityFramework dbcontext and I want the method to be able to receive an object and then either insert a new row or update an existing one if it exists ...
Val's user avatar
  • 1,657

15 30 50 per page