ASP .NET Core IIS Deploy IIS AspNetCore Module Error: CLR worker thread exited prematurely
I give IIS every feature in windows, but if your have advice please share me. Anyway I want deploy on IIS Lan server. But i cant. I working on two days this problems. I dont know how can fix this.I us...
- Modified
- 29 Apr at 08:0
HTTP Error 500.0 - ASP.NET Core IIS hosting failure (in-process) in Dot net core 3.1
**I had checked all possible ways to Solve this error like 1. installed dot net core 3.1 runtime environment 2. set AspNetCoreHostingModel as OutProcess But still getting this error when i'm trying t...
- Modified
- 28 Apr at 09:20
Why does a zero-length stackalloc make the C# compiler happy to allow conditional stackallocs?
The following "fix" is very confusing to me; the scenario here is conditionally deciding whether to use the stack vs a leased buffer depending on the size - a pretty niche but sometimes-necessary opti...
- Modified
- 27 Apr at 19:4
Entity Framework Core : LINQ advise needed on better approach using include for relational tables
I have a question about Entity Framework Core and using LINQ. I would like to get the other table details while accessing the `Clients` table. I can get them using below code. There are a total of aro...
- Modified
- 27 Apr at 04:7
Not Able to Parse ServerEventMessage from ServiceStack to C#
I Am able to get first level of JSON but not second. I am getting JSON from Here - ``` var client = new ServerEventsClient(baseUri) { OnMessage = e => analysedata(e), }.Start(); ``` And in this f...
- Modified
- 27 Apr at 07:3
LINQ to SQL not supported in .net 5.0?
My project used .NetFramework 4.6.2 with "LINQ to SQL" query from MSSQL. A class define all tables which are needed query in database and inheritance to DataContext(System.Data.Linq). Recently, I am g...
- Modified
- 7 May at 07:27
WeakReference returns wrong object
I've noticed a strange behavior in one of our applications recently. ``` Exception=System.InvalidCastException: Unable to cast object of type 'System.Data.SqlClient.SqlTransaction' to type 'System.Byt...
- Modified
- 31 May at 06:16
Crbug/1173575, non-JS module files deprecated. chromewebdata/(index)꞉5305:9:5551
I just created a new project and have run it for the first time using or + . The result in Chrome is: > The site can't be reachederr_connection_refused I checked the option at the breakpoints for "E...
- Modified
- 16 Aug at 17:25
ServiceStack.Redis relationship between RedisSentinelWorker and RedisPubSubServer
I'm curious what is the relationship between RedisSentinelWorker and RedisPubSubServer. From what I've observed the library holds at most 1 active sentinel connection even if there are more sentinel ...
- Modified
- 20 Apr at 16:0
ServiceStack.Redis authentication Redis Sentinel + Redis
It is not obvious how to correctly authenticate with: - - when using the ServiceStack.Redis solution. [According to the docs](https://github.com/ServiceStack/ServiceStack.Redis/wiki/Authentication) ...
- Modified
- 20 Apr at 15:7
ServiceStack API aspnet core with Azure AD B2C returns 401 for request even with bearer token
I have a working ServiceStack API that authenticates against a AzureAD tenant. We are trying to move this to start using Azure B2C. The application is build with c# and runs on net 5.0. I've managed...
- Modified
- 19 Apr at 11:45
ServiceStack Validation/Serialization
I have an application built on ServiceStack and razor (no MVC). The application has a class with an integer field. When I enter an integer with thousand separator(comma) from a web page that allows me...
- Modified
- 18 Apr at 04:38
How to use C# 9 records with EF Core?
I am using ASP.NET Core 5 Web API and I am trying to use the new [C# records](https://devblogs.microsoft.com/dotnet/c-9-0-on-the-record/) as my model classes. But I am getting an EF Core error about t...
- Modified
- 17 Apr at 12:13
How To Get Configurable Cache Duration on Service Methods With ServiceStack?
I was using `CacheResponseAttribute` on one of the Get methods in the service like `[CacheResponse(Duration = 60)]`. But I want this cache duration to come from a config file so I can set it to be dif...
- Modified
- 16 Apr at 22:1
CA1416. How to tell builder that only platform is Windows?
`dotnet run` (on windows) causes `warning CA1416: This call site is reachable on all platforms. 'WellKnownSidType.WorldSid' is only supported on: 'windows'.` My program is designed to run only on wind...
Could not load file or assembly MySql.Data, referencing two files in exception
Searched SO but can't find a solution that works. In Visual I've got a main project. It uses another project (ProjectA) that compiles to a DLL. That project uses Servicestack ORMLite 4.5.14. I've also...
- Modified
- 15 Apr at 15:0
System.drawing.common the type initializer for 'gdip' threw an exception
This is my code to add a picture to a worksheet. I get the picture as a byte from the database. .Net Core framework version is 2.2.104. This is an API project. In my locale, the code works well. I use...
- Modified
- 5 Dec at 13:39
SonarQube test coverage .NET 5
I want to show test coverage for my .NET 5 unit tests in my local SonarQube instance (on Windows). ``` dotnet sonarscanner begin /k:"MyProject" /d:sonar.host.url="http://localhost:9000" /d:sonar.logi...
- Modified
- 14 Apr at 07:4
How to fix: Add a reference to ".NETFramework,Version=v4.7.1" in the "TargetFrameworks" property of your project file and then re-run NuGet restore?
And yes, I have tried all similar QAs and nothing helped. What I have tried, none helped: 1. Delete bin/ & obj/ 2. Delete project.assets.json 3. Delete .vs/ 4. Reset entire git repo 5. Clean nuget ca...
- Modified
- 13 Apr at 09:27
BlazorInputFile - Synchronous reads are not supported
I am trying to use SteveSanderson's BlazorInputFile [package](https://github.com/SteveSandersonMS/BlazorInputFile) to upload files in a Blazor WASM app. (Server/Client setup). I installed the package...
Nlog Configuration with ServiceStack using NLog.Web.AspNetCore properties (${aspnet-user-identity} , ${aspnet-request-url}, etc.)
I am trying to get ServiceStack's Nlog configuration to work with NLog.Web.AspNetCore properties but when properties such as ${aspnet-user-identity} are used inside the nlog.config file, they always r...
- Modified
- 12 Apr at 09:36
Using IActionResult with Azure Functions in .NET 5?
After migrating my Azure Functions project to .NET 5, it has started wrapping my responses in a weird wrapper class. For instance, consider the following endpoint: ``` public record Response(string So...
- Modified
- 11 Apr at 13:11
File in use when publishing asp.net site with servicestack
When publishing my Asp.net Core ServiceStack site using WebDeploy with the AppOffiline rule to IIS I sometimes get an error that the main dll file is locked by another process. After troubleshooting, ...
- Modified
- 9 Apr at 19:52
The "correct" way to create a .NET Core console app without background services
I'm building a simple .NET Core console application that will read in basic options from the command line, then execute and terminate without user interaction. I'd like to take advantage of DI, so tha...
- Modified
- 8 Apr at 01:53
EF Core trying to drop index that doesn't exist
Experiencing an error when running a migration attempting to modify a column from being nullable to not-null. My model class looks like this: Previously, `SaleId` was of type `Guid?`. Here is the mode...
- Modified
- 16 May at 18:25