.net core api creation isuess &fixes | System.InvalidOperationException: Unable to resolve service for type

Error: response status is 500 Response body Download System.InvalidOperationException: Unable to resolve service for type ‘Crowdrob.BAL.Interfaces.IOrderItemsService’ while attempting to activate ‘Crowdrob.API.Controllers.OrderItemsController’. at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ThrowHelperUnableToResolveService(Type type, Type requiredBy) at lambda_method10(Closure, IServiceProvider, Object[]) at Microsoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider.<>c__DisplayClass6_0.<CreateControllerFactory>g__CreateController|0(ControllerContext controllerContext) Solutions: Issues coming because you forgot to add the services into the program.cs file: builder.Services.AddScoped<IOrderItemsService, OrderItemsService>(); builder.Services.AddScoped<IPaymentService, PaymentService>();   Issues: Cannot insert […]

.net core api creation isuess &fixes | System.InvalidOperationException: Unable to resolve service for type Read More »

Asp.net core mvc code first approach migration issues & fixes| failed executing DbCommand| LTER TABLE DROP COLUMN failed | Cannot find the object “tablename” because it does not exist

Issues: Failed executing DbCommand (68ms) [Parameters=[], CommandType=’Text’, CommandTimeout=’30’] DECLARE @var0 sysname; SELECT @var0 = [d].[name] FROM [sys].[default_constraints] [d] INNER JOIN [sys].[columns] [c] ON [d].[parent_column_id] = [c].[column_id] AND [d].[parent_object_id] = [c].[object_id] WHERE ([d].[parent_object_id] = OBJECT_ID(N'[tblOrders]’) AND [c].[name] = N’Id’); IF @var0 IS NOT NULL EXEC(N’ALTER TABLE [tblOrders] DROP CONSTRAINT [‘ + @var0 + ‘];’); ALTER TABLE

Asp.net core mvc code first approach migration issues & fixes| failed executing DbCommand| LTER TABLE DROP COLUMN failed | Cannot find the object “tablename” because it does not exist Read More »

502 bad gateway nginx | .NET location: /usr/share/dotnet No frameworks were found

You must install or update .NET to run this application. Architecture: x64 Framework: ‘Microsoft.AspNetCore.App’, version ‘8.0.0’ (x64) .NET location: /usr/share/dotnet No frameworks were found. Learn about framework resolution: https://aka.ms/dotnet/app-launch-failed Solution: Steps1: sudo apt remove dotnet* sudo apt remove aspnetcore* sudo apt remove netstandard* sudo rm /etc/apt/sources.list.d/microsoft-prod.list sudo apt update sudo apt install dotnet-sdk-8.0 Step2:  

502 bad gateway nginx | .NET location: /usr/share/dotnet No frameworks were found Read More »

Top Website Builders to Help You Make Your Own Website

In today’s digital age, having a professional website is crucial for any business or individual looking to establish an online presence. With the numerous website builders available, it can be overwhelming to choose the right one for your needs. In this article, we will explore the top website builders that can help you create your

Top Website Builders to Help You Make Your Own Website Read More »

Next.js App

How to Convert Next.js app in Android app using Capacitor

Converting a Next.js app into an Android app using Capacitor involves several steps. Capacitor is a cross-platform runtime that allows developers to build web applications using technologies like Next.js and then deploy them as native mobile apps. 1. Node.js and npm: Ensure Node.js and npm are installed on your machine. 2. Next.js App: Have a Next.js web application ready that

How to Convert Next.js app in Android app using Capacitor Read More »

“Building Cross-Platform Mobile Apps with Next.js, Firebase, and Capacitor: A Comprehensive Guide”

“Discover the perfect blend of Next.js, Firebase, and Capacitor for building cross-platform mobile apps. This guide takes you through the entire process, from project setup to seamless deployment. Unleash the power of server-side rendering, Firebase’s real-time features, and Capacitor’s cross-platform capabilities. Whether you’re a seasoned developer or new to mobile app development, this comprehensive guide

“Building Cross-Platform Mobile Apps with Next.js, Firebase, and Capacitor: A Comprehensive Guide” Read More »

Scroll to Top