❔ Errors when everything looks ok.

So, I'm dumb a aspnet api, with controllers, using sqlite. There are no syntax errors in the code, since it compiles, but when I try to do anything(any request), the same giant error appears. Error given on the file.
93 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
wdym?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
but it created the file for me
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
if (!optionsBuilder.IsConfigured) {
optionsBuilder.UseSqlite("Data Source=LocalDatabase.db");
}
}
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
if (!optionsBuilder.IsConfigured) {
optionsBuilder.UseSqlite("Data Source=LocalDatabase.db");
}
}
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
wdym?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
I'm setting up 2x, just to be sure.
builder.Services.AddDbContext<SqliteContext>(opt => {
opt.UseSqlite("Data Source=LocalDatabase.db");
});
builder.Services.AddDbContext<SqliteContext>(opt => {
opt.UseSqlite("Data Source=LocalDatabase.db");
});
Like that
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
again, wdym? sry for being an idiot
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
but that wouldn't configure it?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
but that doesn't solve it though
Sun「無用」
Sun「無用」OP2y ago
Same error
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
it's still an error, lol same thing
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
then what am I supposed to do?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
I didn't what. translate to dumb language
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
already open
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
that's not a command lol
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
add-migration and the other one is not a command.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
I'm not crazy to use vs. I like my memory
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
again, not on visual studio
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
vscode with cmder console
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
? add is not a command
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
ef is not a command
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
yes
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
I'm dumb but not that much
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
again, ef is not a command * Você pretendia executar um programa .NET, mas dotnet-ef não existe. which translates to dotnet ef doesn't exist
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
no thx. like I said, I like my memory
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
I just googled it dotnet tool install --global dotnet-ef --version 7.0.0 I'm not installing vs for no reason
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
vs is not
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
update doesn't work
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
In your pc, not in mine mine already gave me a blue screen bc of vs I'm not gonna use it again
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
nice app, microsoft
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
again, i'm not that dumb. it is clearly applying that migration
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
line 4. I'll do it again, to prove to you
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
it didn't open, but it's an error
Sun「無用」
Sun「無用」OP2y ago
there
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
what migration file.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
I didn't even touch in any of those, not made by me
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
for what reason. it didn't work twice
Sun「無用」
Sun「無用」OP2y ago
literally same stuff
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
I'm just gonna use a dictionary, I'm probably not solving it anyways.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
django was better at this, ngl... it worked
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
Django Project
Django
The web framework for perfectionists with deadlines.
Home - Django REST framework
Django, API, REST, Home
Sun「無用」
Sun「無用」OP2y ago
asp net but 4python
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
I dunno, I'm using a dictionary now
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
Sun「無用」
Sun「無用」OP2y ago
types. it needs types and it's way too hard to do anything even to do a hello world page
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Sun「無用」
Sun「無用」OP2y ago
then dotnet is unstable, lol
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server