TotechsStrypper
TotechsStrypper
CC#
Created by TotechsStrypper on 10/9/2024 in #help
✅ Test keep returning 503 while postman give 200
No description
16 replies
CC#
Created by TotechsStrypper on 10/1/2024 in #help
✅ DbContextOptionsBuilder.UseMongoDB is not referenced after use AspNetCore.HealthChecks.MongoDb
Thanks you for bring the MongoDB.EntityFrameworkCore and the Microsoft.EntityFrameworkCore to my attention I update them to the latest version and 3 of them work perfectly
14 replies
CC#
Created by TotechsStrypper on 9/21/2024 in #help
How find file in Docker?
solution
FROM mcr.microsoft.com/dotnet/sdk:8.0 as build
WORKDIR /app
EXPOSE 80

COPY TotechsThunder.sln TotechsThunder.sln
COPY src/LightningLanes/API/LightningLanes.csproj src/LightningLanes/API/LightningLanes.csproj
COPY src/LightningLanes/Core/LightningLanes.Core/LightningLanes.Core.csproj src/LightningLanes/Core/LightningLanes.Core/LightningLanes.Core.csproj
COPY src/LightningLanes/Jobs/LightningLanes.HangfireJobHost/LightningLanes.HangfireJobHost.csproj src/LightningLanes/Jobs/LightningLanes.HangfireJobHost/LightningLanes.HangfireJobHost.csproj
COPY src/Features/GitHubFeatures/Logics/Logics.csproj src/Features/GitHubFeatures/Logics/Logics.csproj
COPY src/Features/GitHubFeatures/Tests/Tests.csproj src/Features/GitHubFeatures/Tests/Tests.csproj
COPY src/Technologies/Technologies.csproj src/Technologies/Technologies.csproj
COPY src/Projects/Projects.csproj src/Projects/Projects.csproj
COPY src/Contracts/Contracts.csproj src/Contracts/Contracts.csproj
COPY src/IdentityServer/IdentityServer.csproj src/IdentityServer/IdentityServer.csproj
COPY src/Gateway/Gateway.csproj src/Gateway/Gateway.csproj

RUN dotnet restore TotechsThunder.sln

COPY src/LightningLanes/API src/LightningLanes/API
COPY src/LightningLanes/Core/LightningLanes.Core src/LightningLanes/Core/LightningLanes.Core
COPY src/Contracts src/Contracts
WORKDIR /app/src/LightningLanes/API
RUN dotnet publish -c Release -o /app/src/out

FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /app
COPY --from=build /app/src/out .
ENTRYPOINT [ "dotnet", "LightningLanes.dll" ]
FROM mcr.microsoft.com/dotnet/sdk:8.0 as build
WORKDIR /app
EXPOSE 80

COPY TotechsThunder.sln TotechsThunder.sln
COPY src/LightningLanes/API/LightningLanes.csproj src/LightningLanes/API/LightningLanes.csproj
COPY src/LightningLanes/Core/LightningLanes.Core/LightningLanes.Core.csproj src/LightningLanes/Core/LightningLanes.Core/LightningLanes.Core.csproj
COPY src/LightningLanes/Jobs/LightningLanes.HangfireJobHost/LightningLanes.HangfireJobHost.csproj src/LightningLanes/Jobs/LightningLanes.HangfireJobHost/LightningLanes.HangfireJobHost.csproj
COPY src/Features/GitHubFeatures/Logics/Logics.csproj src/Features/GitHubFeatures/Logics/Logics.csproj
COPY src/Features/GitHubFeatures/Tests/Tests.csproj src/Features/GitHubFeatures/Tests/Tests.csproj
COPY src/Technologies/Technologies.csproj src/Technologies/Technologies.csproj
COPY src/Projects/Projects.csproj src/Projects/Projects.csproj
COPY src/Contracts/Contracts.csproj src/Contracts/Contracts.csproj
COPY src/IdentityServer/IdentityServer.csproj src/IdentityServer/IdentityServer.csproj
COPY src/Gateway/Gateway.csproj src/Gateway/Gateway.csproj

RUN dotnet restore TotechsThunder.sln

COPY src/LightningLanes/API src/LightningLanes/API
COPY src/LightningLanes/Core/LightningLanes.Core src/LightningLanes/Core/LightningLanes.Core
COPY src/Contracts src/Contracts
WORKDIR /app/src/LightningLanes/API
RUN dotnet publish -c Release -o /app/src/out

FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /app
COPY --from=build /app/src/out .
ENTRYPOINT [ "dotnet", "LightningLanes.dll" ]
8 replies
CC#
Created by TotechsStrypper on 9/21/2024 in #help
How find file in Docker?
my bad it's a json file not a js file
8 replies
CC#
Created by TotechsStrypper on 5/12/2024 in #help
Dealing with collection type in MongoDb provider efcore
Exception
System.InvalidOperationException: Type of ExtraElements member must be BsonDocument or implement IDictionary<string, object>.
at MongoDB.Bson.Serialization.BsonClassMap.SetExtraElementsMember(BsonMemberMap memberMap)
at MongoDB.Bson.Serialization.Attributes.BsonExtraElementsAttribute.Apply(BsonMemberMap memberMap)
at MongoDB.Bson.Serialization.Conventions.AttributeConventionPack.AttributeConvention.Apply(BsonMemberMap memberMap)
at MongoDB.Bson.Serialization.Conventions.ConventionRunner.Apply(BsonClassMap classMap)
at MongoDB.Bson.Serialization.BsonClassMap.AutoMapClass()
at MongoDB.Bson.Serialization.BsonClassMap.AutoMap()
at MongoDB.Bson.Serialization.BsonClassMap.LookupClassMap(Type classType)
System.InvalidOperationException: Type of ExtraElements member must be BsonDocument or implement IDictionary<string, object>.
at MongoDB.Bson.Serialization.BsonClassMap.SetExtraElementsMember(BsonMemberMap memberMap)
at MongoDB.Bson.Serialization.Attributes.BsonExtraElementsAttribute.Apply(BsonMemberMap memberMap)
at MongoDB.Bson.Serialization.Conventions.AttributeConventionPack.AttributeConvention.Apply(BsonMemberMap memberMap)
at MongoDB.Bson.Serialization.Conventions.ConventionRunner.Apply(BsonClassMap classMap)
at MongoDB.Bson.Serialization.BsonClassMap.AutoMapClass()
at MongoDB.Bson.Serialization.BsonClassMap.AutoMap()
at MongoDB.Bson.Serialization.BsonClassMap.LookupClassMap(Type classType)
3 replies
CC#
Created by TotechsStrypper on 8/2/2023 in #help
❔ Create new project in folder
the test project should live inside that folder
21 replies
CC#
Created by TotechsStrypper on 8/2/2023 in #help
❔ Create new project in folder
I like this
21 replies
CC#
Created by TotechsStrypper on 8/2/2023 in #help
❔ Create new project in folder
21 replies
CC#
Created by TotechsStrypper on 8/2/2023 in #help
❔ Create new project in folder
21 replies
CC#
Created by TotechsStrypper on 7/23/2023 in #help
❔ Microsoft.AspNetCore.Http.Features deprecated how to use IFormFileCollection?
I don’t have access to my computer today but I will tried out your reference soon enough.
34 replies
CC#
Created by TotechsStrypper on 7/23/2023 in #help
❔ Microsoft.AspNetCore.Http.Features deprecated how to use IFormFileCollection?
I don't know making the Application is an asp type is a gamble or not
34 replies
CC#
Created by TotechsStrypper on 7/23/2023 in #help
❔ Microsoft.AspNetCore.Http.Features deprecated how to use IFormFileCollection?
this is so messed up
34 replies
CC#
Created by TotechsStrypper on 7/23/2023 in #help
❔ Microsoft.AspNetCore.Http.Features deprecated how to use IFormFileCollection?
my application project is a class library
34 replies
CC#
Created by TotechsStrypper on 7/23/2023 in #help
❔ Microsoft.AspNetCore.Http.Features deprecated how to use IFormFileCollection?
DAMN!!!
34 replies
CC#
Created by TotechsStrypper on 7/23/2023 in #help
❔ Microsoft.AspNetCore.Http.Features deprecated how to use IFormFileCollection?
this is tightly to ASP
34 replies
CC#
Created by TotechsStrypper on 7/23/2023 in #help
❔ Microsoft.AspNetCore.Http.Features deprecated how to use IFormFileCollection?
Oh crap
34 replies
CC#
Created by TotechsStrypper on 7/23/2023 in #help
❔ Microsoft.AspNetCore.Http.Features deprecated how to use IFormFileCollection?
34 replies
CC#
Created by TotechsStrypper on 7/23/2023 in #help
❔ Microsoft.AspNetCore.Http.Features deprecated how to use IFormFileCollection?
34 replies
CC#
Created by TotechsStrypper on 7/23/2023 in #help
❔ Microsoft.AspNetCore.Http.Features deprecated how to use IFormFileCollection?
Even IFormFile is not available
34 replies
CC#
Created by TotechsStrypper on 5/23/2023 in #help
❔ Service layer design
ah no, you return a direct object data. I still others giving some thought on this
8 replies