TotechsStrypper
✅ DbContextOptionsBuilder.UseMongoDB is not referenced after use AspNetCore.HealthChecks.MongoDb
As above I recently added
AspNetCore.HealthChecks.MongoDb
to my project and the code below stop working
What i'm currently using (Without the package AspNetCore.HealthChecks.MongoDb
)
Error
14 replies
How find file in Docker?
This is my Dockerfile:
I’m having trouble with the
programminglanguage.js
file. This file contains master data, which my ASP.NET Core app uses during initialization to seed data into the database migration. Everything works fine in my development environment, but when I run the project in a Docker environment, the file can't be found.
When I run docker compose build
, the service builds successfully. However, when the project runs in Docker, I encounter the following error:
Here’s the code I’m using to read the file for seeding during migration:
In Docker, the issue seems to stem from the relative file path not being resolved correctly. I’d appreciate any help in resolving this so the app can find the file in the Docker environment.8 replies
Dealing with collection type in MongoDb provider efcore
I recently tried out the new provider for EF Core (MongoDb)
The model I got
When I insert the programming language with the versions list mongodb add the new document just fine
But when I try to retrieve data from the database
there's an exception below
3 replies
Blazor net 8 InteractiveServer mode problem
I have .net 8 blazor app that enable the following
When I run the app localhost the all the button interactions are responds just fine,
When I deploy the app to azure, Some button work some don't especially this one with the logic
1 replies
❔ UWP NavigationCacheMode enable cause app to crash
Our team is currently developing a Proof of Concept (PoC) application that requires the use of
NavigationCacheMode.Enabled
. This is to maintain the scroll position of the list from the previous page and for connected animation purposes. However, we are encountering an issue where the application crashes upon navigation, returning the following exception message:
Link repository: https://github.com/Strypper/Petaverse
Branch: master
Page that crash: FosterCenterPage.xaml
Steps to reproduce
1. Navigate to any of the FosterCenter
in the Home
page
2. Inside foster center page select a member
3. When successfully navigated to the member page please press the back button to navigate back to the foster center page
4. Application navigate back to foster page and then crash with the below Exception and stack trace
Exception
Stack trace
2 replies
❔ Style auto apply to all target controls
I recently created this xaml style, I don't why UWP apply that thing to all the navigation view
I only use it when I set the Style property to
StoreNavigationViewStyle
what going on?
The style
The control got affected
2 replies
❔ Service layer design
This is my interface
and here are my the
ServiceSuccess
and ServiceError
basically they are just return information.
My question is for FindAll
, FindById
and FindAllByUserGuid
should I return the same a the rest as OneOf<ServiceSuccess, ServiceError>
and attached the data in ?8 replies