TrattTratt
TrattTratt
CC#
Created by TrattTratt on 6/4/2024 in #help
ASP.NET core, Access Table that is defined in another project
I have defined and created a table ("Files") in another project than the project i wanna access the data from, is that even possible? Cuz I cant do _context.Files, bec the context doesent have Files bec its defined in another context in another project.
19 replies
CC#
Created by TrattTratt on 6/3/2024 in #help
ASP.NET core, send more data with formData
No description
47 replies
CC#
Created by TrattTratt on 5/6/2024 in #help
Where to store passwords and ApiKeys for production ASP.NET
Hi, im new to publishing web apps in asp.net core and I dont understand where to store my connectionstring and my ApiKeys. Someone was saying Environment Variables like the one ASPNETCORE_ENVIRONMENT is set like so I made them exactly like that by selectiong my project => properties => debug => set env var. But then someone else said that environment variables is not for production, is there different types of environment variables? Im so lost. ChatGPT said yesterday environment variables is for production, today it sais its only for development.
24 replies
CC#
Created by TrattTratt on 5/4/2024 in #help
Set image value in an input field ASP.NET core
No description
5 replies
CC#
Created by TrattTratt on 4/14/2024 in #help
asp.net 7 core mvc Roles not working.
No description
1 replies
CC#
Created by TrattTratt on 4/6/2024 in #help
I get Invalid Token at ConfirmEmailAsync(user, token)
I get an error: Invalid Token. Ive tried with and without Encode and decode, what Im I doing wrong? var token = await _userManager.GenerateEmailConfirmationTokenAsync(viewModel); token = WebEncoders.Base64UrlEncode(Encoding.UTF8.GetBytes(token)); var result = await _userManager.ConfirmEmailAsync(viewModel, token);
17 replies